Add documentation for fetching metrics on Caddy HTTP and Prometheus (#2853)
This commit is contained in:
parent
9148871608
commit
a96f85c847
|
@ -156,7 +156,7 @@ configuration options.
|
||||||
* [postgresql_extensible](./plugins/inputs/postgresql_extensible)
|
* [postgresql_extensible](./plugins/inputs/postgresql_extensible)
|
||||||
* [powerdns](./plugins/inputs/powerdns)
|
* [powerdns](./plugins/inputs/powerdns)
|
||||||
* [procstat](./plugins/inputs/procstat)
|
* [procstat](./plugins/inputs/procstat)
|
||||||
* [prometheus](./plugins/inputs/prometheus)
|
* [prometheus](./plugins/inputs/prometheus) (can be used for [Caddy server](./plugins/inputs/prometheus/README.md#usage-for-caddy-http-server))
|
||||||
* [puppetagent](./plugins/inputs/puppetagent)
|
* [puppetagent](./plugins/inputs/puppetagent)
|
||||||
* [rabbitmq](./plugins/inputs/rabbitmq)
|
* [rabbitmq](./plugins/inputs/rabbitmq)
|
||||||
* [raindrops](./plugins/inputs/raindrops)
|
* [raindrops](./plugins/inputs/raindrops)
|
||||||
|
|
|
@ -61,6 +61,24 @@ to filter and some tags
|
||||||
ssl_key = '/path/to/keyfile'
|
ssl_key = '/path/to/keyfile'
|
||||||
```
|
```
|
||||||
|
|
||||||
|
### Usage for Caddy HTTP server
|
||||||
|
|
||||||
|
If you want to monitor Caddy, you need to use Caddy with its Prometheus plugin:
|
||||||
|
|
||||||
|
* Download Caddy+Prometheus plugin [here](https://caddyserver.com/download/linux/amd64?plugins=http.prometheus)
|
||||||
|
* Add the `prometheus` directive in your `CaddyFile`
|
||||||
|
* Restart Caddy
|
||||||
|
* Configure Telegraf to fetch metrics on it:
|
||||||
|
|
||||||
|
```
|
||||||
|
[[inputs.prometheus]]
|
||||||
|
# ## An array of urls to scrape metrics from.
|
||||||
|
urls = ["http://localhost:9180/metrics"]
|
||||||
|
```
|
||||||
|
|
||||||
|
> This is the default URL where Caddy Prometheus plugin will send data.
|
||||||
|
> For more details, please read the [Caddy Prometheus documentation](https://github.com/miekg/caddy-prometheus/blob/master/README.md).
|
||||||
|
|
||||||
### Measurements & Fields & Tags:
|
### Measurements & Fields & Tags:
|
||||||
|
|
||||||
Measurements and fields could be any thing.
|
Measurements and fields could be any thing.
|
||||||
|
|
Loading…
Reference in New Issue