2022-02-25 14:46:29 +01:00
## `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",
2022-02-28 17:26:28 +01:00
"path" : "/prometheus",
2022-02-25 14:46:29 +01:00
"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>` .