Last active
January 3, 2017 17:36
-
-
Save garethahealy/3a5913b5a6956d709366ab6985fefec6 to your computer and use it in GitHub Desktop.
stats
This file contains 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
#!/usr/bin/env bash | |
HAWKULAR_TENANT="unit-testing" | |
HAWKULAR_URL="http://192.168.99.100:8080/hawkular/metrics" | |
METRIC_ID="prometheus_test" | |
#echo "tags on datapoints: empty data returned" | |
curl -vvv -X GET -u admin:admin -H "Content-Type: application/json" -H "Hawkular-Tenant: $HAWKULAR_TENANT" "$HAWKULAR_URL/counters/stats?start=1482999755690&end=1483000020093&bucketDuration=10d&tags=method:*" | |
#echo "tags on metric: empty data returned" | |
curl -vvv -X GET -u admin:admin -H "Content-Type: application/json" -H "Hawkular-Tenant: $HAWKULAR_TENANT" "$HAWKULAR_URL/counters/stats?start=1482999755690&end=1483000020093&bucketDuration=10d&tags=etcd_namespace:*" | |
#echo "metric name: data returned but no datapoints" | |
curl -vvv -X GET -u admin:admin -H "Content-Type: application/json" -H "Hawkular-Tenant: $HAWKULAR_TENANT" "$HAWKULAR_URL/counters/stats?start=1482999755690&end=1483000020093&bucketDuration=10d&metrics=prometheus_test" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment