Skip to content

Commit

Permalink
refactor(Graphana): RHINENG-15507 replace kafka lag metric
Browse files Browse the repository at this point in the history
  • Loading branch information
RoamingNoMaD authored and romanblanco committed Jan 28, 2025
1 parent 117b649 commit 2a17246
Showing 1 changed file with 51 additions and 38 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ objects:
"editable": true,
"fiscalYearStartMonth": 0,
"graphTooltip": 0,
"id": 933908,
"id": 994234,
"links": [],
"liveNow": false,
"panels": [
Expand Down Expand Up @@ -1406,7 +1406,7 @@ objects:
{
"datasource": {
"type": "prometheus",
"uid": "$datasource"
"uid": "${cloudwatch_datasource}"
},
"fieldConfig": {
"defaults": {
Expand Down Expand Up @@ -1488,12 +1488,15 @@ objects:
"targets": [
{
"datasource": {
"uid": "$datasource"
"type": "prometheus",
"uid": "${cloudwatch_datasource}"
},
"expr": "sum(kafka_consumergroup_group_topic_sum_lag{topic=~\".*platform.inventory.events\", group=\"complianceinventory-events-consumer\"}) by (topic)",
"editorMode": "code",
"expr": "sum by(topic) (aws_kafka_max_offset_lag_sum{consumer_group=\"complianceinventory-events-consumer\", topic=~\".*platform.inventory.events\"})",
"format": "time_series",
"intervalFactor": 1,
"legendFormat": "{{topic}}",
"range": true,
"refId": "B"
}
],
Expand Down Expand Up @@ -1565,7 +1568,7 @@ objects:
"h": 6,
"w": 12,
"x": 0,
"y": 30
"y": 24
},
"id": 35,
"options": {
Expand Down Expand Up @@ -1675,7 +1678,7 @@ objects:
"h": 6,
"w": 12,
"x": 12,
"y": 30
"y": 24
},
"id": 57,
"options": {
Expand Down Expand Up @@ -1787,7 +1790,7 @@ objects:
"h": 8,
"w": 12,
"x": 0,
"y": 36
"y": 30
},
"id": 23763572011,
"options": {
Expand Down Expand Up @@ -1897,7 +1900,7 @@ objects:
"h": 8,
"w": 12,
"x": 12,
"y": 36
"y": 30
},
"id": 23763572007,
"options": {
Expand Down Expand Up @@ -2009,7 +2012,7 @@ objects:
"h": 8,
"w": 12,
"x": 0,
"y": 44
"y": 38
},
"id": 23763572014,
"options": {
Expand Down Expand Up @@ -2121,7 +2124,7 @@ objects:
"h": 8,
"w": 12,
"x": 12,
"y": 44
"y": 38
},
"id": 23763572015,
"options": {
Expand Down Expand Up @@ -2309,7 +2312,7 @@ objects:
"h": 6,
"w": 12,
"x": 0,
"y": 52
"y": 46
},
"id": 42,
"options": {
Expand Down Expand Up @@ -2492,7 +2495,7 @@ objects:
"h": 6,
"w": 12,
"x": 12,
"y": 52
"y": 46
},
"id": 58,
"options": {
Expand Down Expand Up @@ -2687,7 +2690,7 @@ objects:
"h": 6,
"w": 12,
"x": 0,
"y": 58
"y": 52
},
"id": 53,
"options": {
Expand Down Expand Up @@ -2871,7 +2874,7 @@ objects:
"h": 6,
"w": 12,
"x": 12,
"y": 58
"y": 52
},
"id": 52,
"options": {
Expand Down Expand Up @@ -3067,7 +3070,7 @@ objects:
"h": 6,
"w": 12,
"x": 0,
"y": 64
"y": 58
},
"id": 60,
"options": {
Expand Down Expand Up @@ -3275,7 +3278,7 @@ objects:
"h": 6,
"w": 12,
"x": 12,
"y": 64
"y": 58
},
"id": 61,
"options": {
Expand Down Expand Up @@ -3367,8 +3370,7 @@ objects:
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
"color": "green"
},
{
"color": "red",
Expand Down Expand Up @@ -3460,7 +3462,7 @@ objects:
"h": 6,
"w": 12,
"x": 0,
"y": 70
"y": 64
},
"id": 23763571993,
"options": {
Expand Down Expand Up @@ -3539,8 +3541,7 @@ objects:
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
"color": "green"
},
{
"color": "red",
Expand Down Expand Up @@ -3632,7 +3633,7 @@ objects:
"h": 6,
"w": 12,
"x": 12,
"y": 70
"y": 64
},
"id": 23763571992,
"options": {
Expand Down Expand Up @@ -3674,7 +3675,7 @@ objects:
"h": 1,
"w": 24,
"x": 0,
"y": 76
"y": 70
},
"id": 34,
"panels": [
Expand Down Expand Up @@ -4086,8 +4087,7 @@ objects:
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
"color": "green"
},
{
"color": "red",
Expand Down Expand Up @@ -4159,8 +4159,7 @@ objects:
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
"color": "green"
},
{
"color": "red",
Expand Down Expand Up @@ -4231,8 +4230,7 @@ objects:
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
"color": "green"
},
{
"color": "red",
Expand Down Expand Up @@ -4412,8 +4410,7 @@ objects:
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
"color": "green"
},
{
"color": "red",
Expand Down Expand Up @@ -4488,8 +4485,7 @@ objects:
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
"color": "green"
},
{
"color": "red",
Expand Down Expand Up @@ -4564,8 +4560,7 @@ objects:
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
"color": "green"
},
{
"color": "red",
Expand Down Expand Up @@ -4640,8 +4635,7 @@ objects:
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
"color": "green"
},
{
"color": "red",
Expand Down Expand Up @@ -4826,6 +4820,25 @@ objects:
{
"current": {
"selected": true,
"text": "aws-resources-exporter-stage",
"value": "P80B3240D3DAB93EB"
},
"description": "CloudWatch provided aws metrics source.\nAt the time of writing it is only used to gain Kafka lag metrics.",
"hide": 0,
"includeAll": false,
"multi": false,
"name": "cloudwatch_datasource",
"options": [],
"query": "prometheus",
"queryValue": "",
"refresh": 1,
"regex": "/aws-resources-.*/",
"skipUrlSync": false,
"type": "datasource"
},
{
"current": {
"selected": false,
"text": "include",
"value": "1"
},
Expand Down Expand Up @@ -4885,7 +4898,7 @@ objects:
"timezone": "",
"title": "Compliance",
"uid": "compliance",
"version": 14,
"version": 1,
"weekStart": ""
}
kind: ConfigMap
Expand Down

0 comments on commit 2a17246

Please sign in to comment.