mirror of
https://github.com/ClusterCockpit/cc-metric-collector.git
synced 2025-04-19 19:21:41 +02:00
* DiskstatCollector: cast part_max_used metric to int * Add uint types to GangliaSink and LibgangliaSink * Use new sink instances to allow multiple of same sink type * Update sink README and SampleSink * Use new receiver instances to allow multiple of same receiver type * Fix metric scope in likwid configuration script * Mention likwid config script in LikwidCollector README * Refactor: Embed Init() into New() function * Refactor: Embed Init() into New() function * Fix: MetricReceiver uses uninitialized values, when initialization fails * Use Ganglia configuration (#44) * Copy all metric configurations from original Ganglia code * Use metric configurations from Ganglia for some metrics * Format value string also for known metrics * Numa-aware memstat collector (#45) * Add samples for collectors, sinks and receivers * Ping InfluxDB server after connecting to recognize faulty connections * Add sink for Prometheus monitoring system (#46) * Add sink for Prometheus monitoring system * Add prometheus sink to README * Add scraper for Prometheus clients (#47) Co-authored-by: Holger Obermaier <holgerob@gmx.de> Co-authored-by: Holger Obermaier <40787752+ho-ob@users.noreply.github.com>
27 lines
792 B
Markdown
27 lines
792 B
Markdown
## `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
|
|
|
|
```json
|
|
{
|
|
"<name>": {
|
|
"type": "prometheus",
|
|
"address" : "testpromhost",
|
|
"port" : "12345",
|
|
"port" : "/prometheus",
|
|
"interval": "5s",
|
|
"ssl" : true,
|
|
}
|
|
}
|
|
```
|
|
|
|
- `type`: makes the receiver a `prometheus` receiver
|
|
- `address`: Hostname or IP of the Prometheus agent
|
|
- `port`: Port of Prometheus agent
|
|
- `path`: Path to the Prometheus endpoint
|
|
- `interval`: Scrape the Prometheus endpoint in this interval (default '5s')
|
|
- `ssl`: Use SSL or not
|
|
|
|
The receiver requests data from `http(s)://<address>:<port>/<path>`. |