-
-
Notifications
You must be signed in to change notification settings - Fork 69
Telegraf HTTP Input
Lorenzo Mangani edited this page Jan 3, 2022
·
8 revisions
cloki features basic supports for ingesting bulk metrics from Telegraf HTTP output plugin:
[[outputs.http]]
url = "http://cloki:3100/telegraf"
data_format = "json"
method = "POST"
Logs and Metrics are stored in different columns within the same table.
The unwrap_value
can be used to access cloki stored metrics and automatically uses fingerprints in the response:
sum(rate({cpu="cpu0"} | unwrap_value [60s])) by (cpu)

The following | ts
pipe is available to parse regular tag values to fingerprint statistics:
{cpu="cpu0"} | ts
