Skip to content

Instantly share code, notes, and snippets.

@sshnaidm
Created August 20, 2018 08:55
Show Gist options
  • Save sshnaidm/968747cb6d2216702683dae560790a05 to your computer and use it in GitHub Desktop.
Save sshnaidm/968747cb6d2216702683dae560790a05 to your computer and use it in GitHub Desktop.
InfluxDB query via HTTP
curl -G 'http://localhost:8086/query' --data-urlencode "db=telegraf" --data-urlencode "epoch=ms" --data-urlencode "q=SELECT count(\"result_num\") FROM \"build\" WHERE ("pipeline" = 'gate' AND "passed" = 'False') AND time >= now() - 24h"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment