update readme: prometheus remote write (#8683)

This commit is contained in:
Samantha Wang 2021-01-15 10:16:37 -08:00 committed by GitHub
parent 76c2201bbe
commit 6ed1431348
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 8 additions and 2 deletions

View File

@ -1,4 +1,4 @@
# Prometheus
# Prometheus remote write
The `prometheusremotewrite` data format converts metrics into the Prometheus protobuf
exposition format.
@ -13,11 +13,17 @@ use only the `prometheus_client` output.
```toml
[[outputs.http]]
## URL is the address to send metrics to
url = "https://cortex/api/prom/push"
data_format = "prometheusremotewrite"
## Optional TLS Config
tls_ca = "/etc/telegraf/ca.pem"
tls_cert = "/etc/telegraf/cert.pem"
tls_key = "/etc/telegraf/key.pem"
## Data format to output.
data_format = "prometheusremotewrite"
[outputs.http.headers]
Content-Type = "application/x-protobuf"
Content-Encoding = "snappy"