Prometheus Exporter


Prometheus Exporter is a component that collects metrics from a Kubernetes cluster and exposes them in a Prometheus-compatible format. It allows you to monitor cluster health, node load, and resource status.

Accessing the Exporter
Copy link

Exporter access details are available in your Hostman dashboard → Kubernetes → click on the cluster → Dashboard.

Public exporters require basic authentication to access metrics.

Example request to a public exporter:

curl -u admin:'password' -s https://k8s-exporter.hostman.dev/exporter_id/service/metrics

Endpoints and Metrics
Copy link

Two types of metrics are available:

  • node_exporter provides node-level metrics such as CPU usage, memory consumption, disk operations, and network traffic.
  • kube_state_exporter provides Kubernetes object metrics, including the state of pods, deployments, replicas, nodes, and other resources retrieved from the Kubernetes API.

Public endpoints:

  • Node metrics:
https://k8s-exporter.hostman.dev/exporter_id/node-exporter/metrics
  • Kubernetes metrics:
https://k8s-exporter.hostman.dev/exporter_id/service/metrics

exporter_id is the unique exporter identifier available in the dashboard.

Implementation Details
Copy link

Exporters are available in two modes:

  • Public, accessible over HTTPS with basic authentication
  • Private, accessible within a private network

Ports:

  • 9100 for node_exporter
  • 9308 for kube_state_exporter

For clusters with three master nodes, metrics must be collected from each node separately.