Created
August 20, 2018 08:55
-
-
Save sshnaidm/968747cb6d2216702683dae560790a05 to your computer and use it in GitHub Desktop.
InfluxDB query via HTTP
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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