diff options
Diffstat (limited to 'vnfs/DAaaS/sample-apps/m3db_promql/sample_promql_query.py')
-rw-r--r-- | vnfs/DAaaS/sample-apps/m3db_promql/sample_promql_query.py | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/vnfs/DAaaS/sample-apps/m3db_promql/sample_promql_query.py b/vnfs/DAaaS/sample-apps/m3db_promql/sample_promql_query.py new file mode 100644 index 00000000..ef360809 --- /dev/null +++ b/vnfs/DAaaS/sample-apps/m3db_promql/sample_promql_query.py @@ -0,0 +1,12 @@ +from promql_api.prom_ql_api import query_m3db +import pprint + +LABELS = ['irate(collectd_cpufreq{exported_instance="otconap7",cpufreq="1"}[2m])'] + +def main(): + list_of_result_sets = query_m3db(LABELS) + for each_result in list_of_result_sets: + pprint.pprint(each_result) + +if __name__ == "__main__": + main()
\ No newline at end of file |