Skip to content

Commit

Permalink
fix grafana dashboards using connectivity_message_mapping_seconds_cou…
Browse files Browse the repository at this point in the history
…nt metric

Signed-off-by: Aleksandar Stanchev <aleksandar.stanchev@bosch.com>
  • Loading branch information
alstanchev committed Dec 17, 2024
1 parent f8e96f1 commit 16059b6
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 16 deletions.
8 changes: 4 additions & 4 deletions deployment/operations/grafana-dashboards/Cluster_traffic.json
Original file line number Diff line number Diff line change
Expand Up @@ -487,7 +487,7 @@
"pluginVersion": "8.5.6",
"targets": [
{
"expr": "count(count by (ditto_connection_id) (increase(connectivity_message_mapping_seconds_count[5m]) > 0))",
"expr": "count(count by (ditto_connection_id) (increase(message_mapping_seconds_count[5m]) > 0))",
"format": "time_series",
"hide": true,
"interval": "",
Expand All @@ -496,7 +496,7 @@
"refId": "A"
},
{
"expr": "count by (ditto_connection_type) (count by (instance, ditto_connection_type, ditto_connection_id) (increase (connectivity_message_mapping_seconds_count[5m]) > 0))",
"expr": "count by (ditto_connection_type) (count by (instance, ditto_connection_type, ditto_connection_id) (increase (message_mapping_seconds_count[5m]) > 0))",
"format": "time_series",
"hide": false,
"instant": false,
Expand Down Expand Up @@ -583,7 +583,7 @@
"pluginVersion": "8.5.6",
"targets": [
{
"expr": "sum(irate(connectivity_message_mapping_seconds_count{segment=\"overall\"}[5m]) > 0) by (direction, ditto_connection_type) > 0",
"expr": "sum(irate(message_mapping_seconds_count{segment=\"overall\"}[5m]) > 0) by (direction, ditto_connection_type) > 0",
"format": "time_series",
"intervalFactor": 1,
"legendFormat": "[{{ditto_connection_type}}] {{direction}}",
Expand Down Expand Up @@ -668,7 +668,7 @@
"pluginVersion": "8.5.6",
"targets": [
{
"expr": "avg((idelta(connectivity_message_mapping_seconds_sum{segment=\"overall\"}[1m]) / idelta(connectivity_message_mapping_seconds_count{segment=\"overall\"}[1m])) > 0) by (direction)",
"expr": "avg((idelta(connectivity_message_mapping_seconds_sum{segment=\"overall\"}[1m]) / idelta(message_mapping_seconds_count{segment=\"overall\"}[1m])) > 0) by (direction)",
"format": "time_series",
"intervalFactor": 1,
"legendFormat": "{{direction}}",
Expand Down
22 changes: 11 additions & 11 deletions deployment/operations/grafana-dashboards/Connectivity_Metrics.json
Original file line number Diff line number Diff line change
Expand Up @@ -281,7 +281,7 @@
"targets": [
{
"datasource": "prometheus",
"expr": "count by (ditto_connection_type) (count by (instance, ditto_connection_id, ditto_connection_type) (increase(connectivity_message_mapping_seconds_count{instance=~\"$Host\", ditto_connection_type=~\"$ConnectionType\", ditto_connection_id=~\"$Connection\"}[5m]) > 0))",
"expr": "count by (ditto_connection_type) (count by (instance, ditto_connection_id, ditto_connection_type) (increase(message_mapping_seconds_count{instance=~\"$Host\", ditto_connection_type=~\"$ConnectionType\", ditto_connection_id=~\"$Connection\"}[5m]) > 0))",
"format": "time_series",
"hide": false,
"interval": "",
Expand Down Expand Up @@ -376,7 +376,7 @@
"targets": [
{
"datasource": "prometheus",
"expr": "count by (instance, ditto_connection_type) (count by (instance, ditto_connection_id, ditto_connection_type) (increase (connectivity_message_mapping_seconds_count{instance=~\"$Host\", ditto_connection_type=~\"$ConnectionType\", ditto_connection_id=~\"$Connection\"}[5m]) > 0))",
"expr": "count by (instance, ditto_connection_type) (count by (instance, ditto_connection_id, ditto_connection_type) (increase (message_mapping_seconds_count{instance=~\"$Host\", ditto_connection_type=~\"$ConnectionType\", ditto_connection_id=~\"$Connection\"}[5m]) > 0))",
"format": "time_series",
"hide": false,
"instant": false,
Expand Down Expand Up @@ -1808,23 +1808,23 @@
"steppedLine": false,
"targets": [
{
"expr": "avg((idelta(connectivity_message_mapping_seconds_sum{segment=\"overall\", instance=~\"$Host\", ditto_connection_id=~\"$Connection\", ditto_connection_type=~\"$ConnectionType\"}[5m]) / idelta(connectivity_message_mapping_seconds_count{segment=\"overall\", ditto_connection_id=~\"$Connection\", ditto_connection_type=~\"$ConnectionType\"}[5m])) > 0) by (ditto_mapping_success, direction, ditto_connection_type)",
"expr": "avg((idelta(connectivity_message_mapping_seconds_sum{segment=\"overall\", instance=~\"$Host\", ditto_connection_id=~\"$Connection\", ditto_connection_type=~\"$ConnectionType\"}[5m]) / idelta(message_mapping_seconds_count{segment=\"overall\", ditto_connection_id=~\"$Connection\", ditto_connection_type=~\"$ConnectionType\"}[5m])) > 0) by (ditto_mapping_success, direction, ditto_connection_type)",
"format": "time_series",
"hide": false,
"intervalFactor": 1,
"legendFormat": "[{{ditto_connection_type}}] {{direction}} successful: {{ditto_mapping_success}}",
"refId": "C"
},
{
"expr": "avg((idelta(connectivity_message_mapping_seconds_sum{segment=\"overall\", instance=~\"$Host\", ditto_connection_id=~\"$Connection\", ditto_connection_type=~\"$ConnectionType\"}[5m]) / idelta(connectivity_message_mapping_seconds_count{segment=\"overall\", ditto_connection_id=~\"$Connection\", ditto_connection_type=~\"$ConnectionType\"}[5m])) > 0) by (ditto_mapping_success, ditto_connection_type)",
"expr": "avg((idelta(connectivity_message_mapping_seconds_sum{segment=\"overall\", instance=~\"$Host\", ditto_connection_id=~\"$Connection\", ditto_connection_type=~\"$ConnectionType\"}[5m]) / idelta(message_mapping_seconds_count{segment=\"overall\", ditto_connection_id=~\"$Connection\", ditto_connection_type=~\"$ConnectionType\"}[5m])) > 0) by (ditto_mapping_success, ditto_connection_type)",
"format": "time_series",
"hide": false,
"intervalFactor": 1,
"legendFormat": "[{{ditto_connection_type}}] successful: {{ditto_mapping_success}}",
"refId": "D"
},
{
"expr": "avg((idelta(connectivity_message_mapping_seconds_sum{segment=\"overall\", instance=~\"$Host\", ditto_connection_id=~\"$Connection\", ditto_connection_type=~\"$ConnectionType\"}[5m]) / idelta(connectivity_message_mapping_seconds_count{segment=\"overall\", ditto_connection_id=~\"$Connection\", ditto_connection_type=~\"$ConnectionType\"}[5m])) > 0) by (direction, ditto_connection_type)",
"expr": "avg((idelta(connectivity_message_mapping_seconds_sum{segment=\"overall\", instance=~\"$Host\", ditto_connection_id=~\"$Connection\", ditto_connection_type=~\"$ConnectionType\"}[5m]) / idelta(message_mapping_seconds_count{segment=\"overall\", ditto_connection_id=~\"$Connection\", ditto_connection_type=~\"$ConnectionType\"}[5m])) > 0) by (direction, ditto_connection_type)",
"format": "time_series",
"hide": false,
"intervalFactor": 1,
Expand All @@ -1835,7 +1835,7 @@
"textEditor": false
},
{
"expr": "avg((idelta(connectivity_message_mapping_seconds_sum{segment=\"overall\", instance=~\"$Host\", ditto_connection_id=~\"$Connection\", ditto_connection_type=~\"$ConnectionType\"}[5m]) / idelta(connectivity_message_mapping_seconds_count{segment=\"overall\", ditto_connection_id=~\"$Connection\", ditto_connection_type=~\"$ConnectionType\"}[5m])) > 0)",
"expr": "avg((idelta(connectivity_message_mapping_seconds_sum{segment=\"overall\", instance=~\"$Host\", ditto_connection_id=~\"$Connection\", ditto_connection_type=~\"$ConnectionType\"}[5m]) / idelta(message_mapping_seconds_count{segment=\"overall\", ditto_connection_id=~\"$Connection\", ditto_connection_type=~\"$ConnectionType\"}[5m])) > 0)",
"format": "time_series",
"hide": false,
"intervalFactor": 1,
Expand Down Expand Up @@ -1995,7 +1995,7 @@
"name": "Host",
"options": [],
"query": {
"query": "label_values(connectivity_message_mapping_seconds_count, instance)",
"query": "label_values(message_mapping_seconds_count, instance)",
"refId": "prometheus-Host-Variable-Query"
},
"refresh": 1,
Expand All @@ -2019,14 +2019,14 @@
]
},
"datasource": "prometheus",
"definition": "label_values(connectivity_message_mapping_seconds_count,ditto_connection_id)",
"definition": "label_values(message_mapping_seconds_count,ditto_connection_id)",
"hide": 0,
"includeAll": true,
"multi": true,
"name": "Connection",
"options": [],
"query": {
"query": "label_values(connectivity_message_mapping_seconds_count,ditto_connection_id)",
"query": "label_values(message_mapping_seconds_count,ditto_connection_id)",
"refId": "prometheus-Connection-Variable-Query"
},
"refresh": 1,
Expand All @@ -2046,14 +2046,14 @@
"value": "$__all"
},
"datasource": "prometheus",
"definition": "label_values(connectivity_message_mapping_seconds_count,ditto_connection_type)",
"definition": "label_values(message_mapping_seconds_count,ditto_connection_type)",
"hide": 0,
"includeAll": true,
"multi": false,
"name": "ConnectionType",
"options": [],
"query": {
"query": "label_values(connectivity_message_mapping_seconds_count,ditto_connection_type)",
"query": "label_values(message_mapping_seconds_count,ditto_connection_type)",
"refId": "prometheus-ConnectionType-Variable-Query"
},
"refresh": 1,
Expand Down
2 changes: 1 addition & 1 deletion deployment/operations/grafana-dashboards/Load_Test.json
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@
"pluginVersion": "8.5.6",
"targets": [
{
"expr": "sum(irate(connectivity_message_mapping_seconds_count{segment=\"overall\"}[5m]) > 0) by (direction) > 0",
"expr": "sum(irate(message_mapping_seconds_count{segment=\"overall\"}[5m]) > 0) by (direction) > 0",
"format": "time_series",
"intervalFactor": 1,
"legendFormat": "{{direction}}",
Expand Down

0 comments on commit 16059b6

Please sign in to comment.