Commit c9a92770 authored by Jérome Perrin's avatar Jérome Perrin

software/grafana: disable "activity delay" probe for now

These queries are too slow.
parent 5875f8cf
...@@ -23,7 +23,7 @@ md5sum = b4330fbe0c9c3631f4f477c06d3460b3 ...@@ -23,7 +23,7 @@ md5sum = b4330fbe0c9c3631f4f477c06d3460b3
[instance-agent] [instance-agent]
filename = instance-agent.cfg.in filename = instance-agent.cfg.in
md5sum = 6bbc97cf8e752d22773d5f23ecdda37d md5sum = 64b7015eb7f0a6490c437cb0693d707b
[influxdb-config-file] [influxdb-config-file]
......
...@@ -219,20 +219,20 @@ init = ...@@ -219,20 +219,20 @@ init =
"field_columns_include": ["failed_message_count"], "field_columns_include": ["failed_message_count"],
"tag_columns_include": ["cmf_activity_queue"], "tag_columns_include": ["cmf_activity_queue"],
}, },
{ # TODO: these queries are slow and maybe not correct
"query": """ # {
select cast(coalesce(max(UNIX_TIMESTAMP(now()) - UNIX_TIMESTAMP(message.date)), 0) as int) # "query": """
as waiting_time, 'message' as cmf_activity_queue # select cast(coalesce(max(UNIX_TIMESTAMP(now()) - UNIX_TIMESTAMP(message.date)), 0) as int)
from message where processing_node in (-1, 0) and message.message not like '%after_tag%' # as waiting_time, 'message' as cmf_activity_queue
union all # from message where processing_node in (-1, 0) and message.message not like '%after_tag%'
select cast(coalesce(max(UNIX_TIMESTAMP(now()) - UNIX_TIMESTAMP(message_queue.date)), 0) as int) # union all
as waiting_time, 'message_queue' as cmf_activity_queue # select cast(coalesce(max(UNIX_TIMESTAMP(now()) - UNIX_TIMESTAMP(message_queue.date)), 0) as int)
from message_queue where processing_node in (-1, 0) and message_queue.message not like '%after_tag%' # as waiting_time, 'message_queue' as cmf_activity_queue
""", # from message_queue where processing_node in (-1, 0) and message_queue.message not like '%after_tag%'
"field_columns_include": ["waiting_time"], # """,
"tag_columns_include": ["cmf_activity_queue"], # "field_columns_include": ["waiting_time"],
# "tag_columns_include": ["cmf_activity_queue"],
}, # },
], ],
"tags": dict( "tags": dict(
partition.get("static-tags", {}), partition.get("static-tags", {}),
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment