From 5a5ba749f2a0544b7c06b5412ccaa3defffeea9c Mon Sep 17 00:00:00 2001 From: Aliaksandr Valialkin Date: Thu, 6 Jun 2019 16:08:11 +0300 Subject: [PATCH] README.md: add an example on how Influx line protocol is converted into Prometheus data points --- README.md | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/README.md b/README.md index ba910ee63a..816e1837b5 100644 --- a/README.md +++ b/README.md @@ -209,6 +209,19 @@ VictoriaMetrics maps Influx data using the following rules: * Field values are mapped to time series values * Tags are mapped to Prometheus labels as-is +For example, the following Influx line: + +``` +foo,tag1=value1,tag2=value2 field1=12,field2=40 +``` + +is converted into the following Prometheus data points: + +``` +foo.field1{tag1="value1", tag2="value2"} 12 +foo.field2{tag1="value1", tag2="value2"} 40 +``` + ### How to send data from Graphite-compatible agents such as [StatsD](https://github.com/etsy/statsd)?