mirror of
https://github.com/ClusterCockpit/cc-metric-collector.git
synced 2024-11-10 04:27:25 +01:00
792 B
792 B
prometheus
receiver
The prometheus
receiver can be used to scrape the metrics of a single prometheus
client. It does not use any official Golang library but making simple HTTP get requests and parse the response.
Configuration structure
{
"<name>": {
"type": "prometheus",
"address" : "testpromhost",
"port" : "12345",
"port" : "/prometheus",
"interval": "5s",
"ssl" : true,
}
}
type
: makes the receiver aprometheus
receiveraddress
: Hostname or IP of the Prometheus agentport
: Port of Prometheus agentpath
: Path to the Prometheus endpointinterval
: Scrape the Prometheus endpoint in this interval (default '5s')ssl
: Use SSL or not
The receiver requests data from http(s)://<address>:<port>/<path>
.