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

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

These queries are too slow.
parent 2e5c7422
......@@ -23,7 +23,7 @@ md5sum = b4330fbe0c9c3631f4f477c06d3460b3
[instance-agent]
filename = instance-agent.cfg.in
md5sum = 6bbc97cf8e752d22773d5f23ecdda37d
md5sum = 64b7015eb7f0a6490c437cb0693d707b
[influxdb-config-file]
......
......@@ -219,20 +219,20 @@ init =
"field_columns_include": ["failed_message_count"],
"tag_columns_include": ["cmf_activity_queue"],
},
{
"query": """
select cast(coalesce(max(UNIX_TIMESTAMP(now()) - UNIX_TIMESTAMP(message.date)), 0) as int)
as waiting_time, 'message' as cmf_activity_queue
from message where processing_node in (-1, 0) and message.message not like '%after_tag%'
union all
select cast(coalesce(max(UNIX_TIMESTAMP(now()) - UNIX_TIMESTAMP(message_queue.date)), 0) as int)
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"],
},
# TODO: these queries are slow and maybe not correct
# {
# "query": """
# select cast(coalesce(max(UNIX_TIMESTAMP(now()) - UNIX_TIMESTAMP(message.date)), 0) as int)
# as waiting_time, 'message' as cmf_activity_queue
# from message where processing_node in (-1, 0) and message.message not like '%after_tag%'
# union all
# select cast(coalesce(max(UNIX_TIMESTAMP(now()) - UNIX_TIMESTAMP(message_queue.date)), 0) as int)
# 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"],
# },
],
"tags": dict(
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