From 70d20ce8dea7f2f25eb11281e3c2cb86df1f92cd Mon Sep 17 00:00:00 2001 From: Aliaksandr Valialkin Date: Tue, 11 Jun 2019 20:33:52 +0300 Subject: [PATCH] README.md: use proper urls for single-node version in examples --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index aad692ab3..30a744c82 100644 --- a/README.md +++ b/README.md @@ -222,16 +222,16 @@ foo.field1{tag1="value1", tag2="value2"} 12 foo.field2{tag1="value1", tag2="value2"} 40 ``` -Example on how to write data with Influx line protocol to VictoriaMetrics using `curl`: +Example on how to write data with Influx line protocol to local VictoriaMetrics using `curl`: ``` -curl -d 'measurement,tag1=value1,tag2=value2 field1=123,field2=1.23' -X POST 'http://127.0.0.1/insert/0/influx/write' +curl -d 'measurement,tag1=value1,tag2=value2 field1=123,field2=1.23' -X POST 'http://localhost/write' ``` After that this data may be read via [/api/v1/export](#how-to-export-time-series) endpoint: ``` -curl -G 'http://127.0.0.1/select/0/prometheus/api/v1/export' --data-urlencode 'match={__name__!=""}' +curl -G 'http://localhost/api/v1/export' --data-urlencode 'match={__name__!=""}' ``` The `/api/v1/export` endpoint should return the following response: