-
Notifications
You must be signed in to change notification settings - Fork 0
/
querylist.py
12 lines (10 loc) · 879 Bytes
/
querylist.py
1
2
3
4
5
6
7
8
9
10
11
12
queries = [("QUERYNAME", "PROM_QUERY"),
("QUERYNAME", "PROM_QUERY")
]
# Example:
# queries = [ ("storm_topology_Parser_Executed_count_KAFKA", "storm_topology_Parser_Executed_count{component_id=\"bolt\", topology_id=~\".*Kafka.*\"}")
# , ("storm_topology_WindowBolt_Executed_count_KAFKA", "storm_topology_WindowBolt_Executed_count{topology_id=~\".*Kafka.*\"}")
# , ("storm_topology_Windowbolt_Throughput_sum", "sum(rate(storm_topology_WindowBolt_Executed_count{topology_id=~\".*Kafka.*\"}[20s]))")
# , ("storm_topology_Windowbolt_Throughput", "rate(storm_topology_WindowBolt_Executed_count{topology_id=~\".*Kafka.*\"}[20s])")
# , ("node_cpu_seconds_total_1m", "avg without (mode,cpu) (1 - rate(node_cpu_seconds_total{mode=\"idle\"}[1m]))")
# ]