mirror of
https://github.com/ClusterCockpit/cc-metric-collector.git
synced 2025-10-29 16:15:06 +01:00
873 B
873 B
prometheus sink
The prometheus sink publishes all metrics via an HTTP server ready to be scraped by a Prometheus server. It creates gauge metrics for all node metrics and gauge vectors for all metrics with a subtype like 'device', 'cpu' or 'socket'.
Configuration structure
{
"<name>": {
"type": "prometheus",
"host": "localhost",
"port": "8080",
"path": "metrics"
}
}
type: makes the sink anprometheussinkhost: The HTTP server gets bound to that IP/hostnameport: Portnumber (as string) for the HTTP serverpath: Path where the metrics should be servered. The metrics will be published athost:port/pathgroup_as_namespace: Most metrics contain a group as meta information like 'memory', 'load'. With this the metric names are extended togroup_nameif possible.