Commit 0a17118a authored by Jérome Perrin's avatar Jérome Perrin

grafana: fix activities, http_response and influxdb logs

See merge request !1693
parents 5cc35a9d 0cf057f0
Pipeline #38172 failed with stage
in 0 seconds
...@@ -19,11 +19,11 @@ md5sum = 32c772c593d2c3c38c26186b91b78cf8 ...@@ -19,11 +19,11 @@ md5sum = 32c772c593d2c3c38c26186b91b78cf8
[instance-default] [instance-default]
filename = instance-default.cfg.in filename = instance-default.cfg.in
md5sum = b4330fbe0c9c3631f4f477c06d3460b3 md5sum = 86e379ac6ba789d65369ca1e0d4dfa3f
[instance-agent] [instance-agent]
filename = instance-agent.cfg.in filename = instance-agent.cfg.in
md5sum = 9fc368a3ac16bee297a4f2ad87b3bbb4 md5sum = 89fd1b010351cea9968360054e0c4aa9
[influxdb-config-file] [influxdb-config-file]
......
...@@ -214,13 +214,13 @@ init = ...@@ -214,13 +214,13 @@ init =
}, },
{ {
"query": """ "query": """
select 'message' as cmf_activity_queue, count(*) as failed_message_count select 'message' as cmf_activity_queue, method_id, count(*) as failed_message_count
from message where processing_node between -2 and -10 from message where processing_node between -10 and -2 group by method_id
union all select 'message_queue' as cmf_activity_queue, count(*) as failed_message_count union all select 'message_queue' as cmf_activity_queue, method_id, count(*) as failed_message_count
from message_queue where processing_node between -2 and -10 from message_queue where processing_node between -10 and -2 group by method_id
""", """,
"field_columns_include": ["failed_message_count"], "field_columns_include": ["failed_message_count"],
"tag_columns_include": ["cmf_activity_queue"], "tag_columns_include": ["cmf_activity_queue", "method_id"],
}, },
# TODO: these queries are slow and maybe not correct # TODO: these queries are slow and maybe not correct
# { # {
...@@ -263,7 +263,8 @@ init = ...@@ -263,7 +263,8 @@ init =
urls = application.get("urls", []) urls = application.get("urls", [])
if urls: if urls:
inputs["http_response"].append({ inputs["http_response"].append({
"interval": "5m", "interval": "2m",
"response_timeout": "1m",
"urls": urls, "urls": urls,
"tags": {"app": application["name"]}, "tags": {"app": application["name"]},
}) })
......
...@@ -637,7 +637,7 @@ init = ...@@ -637,7 +637,7 @@ init =
"type": "system", "type": "system",
"partitions": [ "partitions": [
{ {
"name": "grafana", "name": "influxdb",
"static-tags": { "static-tags": {
"partition_reference": slap_connection['partition-id'], "partition_reference": slap_connection['partition-id'],
}, },
...@@ -646,7 +646,7 @@ init = ...@@ -646,7 +646,7 @@ init =
] ]
}, },
{ {
"name": "influxdb", "name": "grafana",
"static-tags": { "static-tags": {
"partition_reference": slap_connection['partition-id'], "partition_reference": slap_connection['partition-id'],
}, },
......
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