# Access two data sources (cpu usage and load), extract the time series following the
# query definitions (q) and put the results in a single pandas dataframe table
test_influx:
handler:
class:grafana_etl.GHandler.InfluxDBHandler
url:https://monit-grafana.cern.ch/api/datasources
token:secrets/grafana_token.txt
db:monit_production_collectd
request:
cpu_system:
id:7885
epoch:'ms'
q:SELECT mean("mean_value") FROM one_week."cpu_percent" WHERE "type_instance" = 'system' AND "submitter_hostgroup" =~ /^.*level2\\/.*\\/gva_shared_014$/ AND time >= now()-4h and time <= now() GROUP BY time(30m), "host", "submitter_hostgroup";
load:
id:7889
epoch:'ms'
q:SELECT mean("mean_value") as amean FROM one_week."load" WHERE ("value_instance" = 'longterm' AND "submitter_hostgroup" =~ /^.*level2\\/.*\\/gva_shared_014$/ ) AND time >= now()-4h and time <= now() GROUP BY time(30m),"host" , "submitter_hostgroup";
# Test ElasticSearch
# Execute 2 separate queries, extract the time series and put the results in a single pandas dataframe table
# Following a similar query as done in grafana for ES