Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
InfluxDB Queries

Write to InfluxDB:

$ curl  -i -XPOST "http://influxdb:8086/write?db=foo" \
  --data-binary 'events2 title="my-title",text="test-text",tags="my-tags",woof=true'

InfluxDB Queries:

> use foo
Using database foo
> show measurements
name: measurements
> select * from events2;
name: events2
time                tags    text      title    woof
----                ----    ----      -----    ----
1555274509682249767 my-tags test-text my-title
1555274636266821261 my-tags test-text my-title true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.