mirror of
https://github.com/VictoriaMetrics/VictoriaMetrics.git
synced 2024-11-21 14:44:00 +00:00
README.md: use proper urls for single-node version in examples
This commit is contained in:
parent
723bf1af7f
commit
70d20ce8de
1 changed files with 3 additions and 3 deletions
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue