update readme: prometheus remote write (#8683)
This commit is contained in:
parent
76c2201bbe
commit
6ed1431348
|
|
@ -1,4 +1,4 @@
|
||||||
# Prometheus
|
# Prometheus remote write
|
||||||
|
|
||||||
The `prometheusremotewrite` data format converts metrics into the Prometheus protobuf
|
The `prometheusremotewrite` data format converts metrics into the Prometheus protobuf
|
||||||
exposition format.
|
exposition format.
|
||||||
|
|
@ -13,11 +13,17 @@ use only the `prometheus_client` output.
|
||||||
|
|
||||||
```toml
|
```toml
|
||||||
[[outputs.http]]
|
[[outputs.http]]
|
||||||
|
## URL is the address to send metrics to
|
||||||
url = "https://cortex/api/prom/push"
|
url = "https://cortex/api/prom/push"
|
||||||
data_format = "prometheusremotewrite"
|
|
||||||
|
## Optional TLS Config
|
||||||
tls_ca = "/etc/telegraf/ca.pem"
|
tls_ca = "/etc/telegraf/ca.pem"
|
||||||
tls_cert = "/etc/telegraf/cert.pem"
|
tls_cert = "/etc/telegraf/cert.pem"
|
||||||
tls_key = "/etc/telegraf/key.pem"
|
tls_key = "/etc/telegraf/key.pem"
|
||||||
|
|
||||||
|
## Data format to output.
|
||||||
|
data_format = "prometheusremotewrite"
|
||||||
|
|
||||||
[outputs.http.headers]
|
[outputs.http.headers]
|
||||||
Content-Type = "application/x-protobuf"
|
Content-Type = "application/x-protobuf"
|
||||||
Content-Encoding = "snappy"
|
Content-Encoding = "snappy"
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue