Skip to content

Commit

Permalink
Use regex because job has namespace in it
Browse files Browse the repository at this point in the history
  • Loading branch information
fiunchinho committed Jul 3, 2024
1 parent e5147da commit ef6a12e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@
"uid": "${loki_datasource}"
},
"editorMode": "builder",
"expr": "{job=~\"cluster-api-provider-aws|capa-iam-operator|aws-resolver-rules-operator|irsa-operator\"} |~ `(?i)error` |= `$cluster` | logfmt",
"expr": "{job=~\".*cluster-api-provider-aws|.*capa-iam-operator|.*aws-resolver-rules-operator|.*irsa-operator\"} |~ `(?i)error` |= `$cluster` | logfmt",
"queryType": "range",
"refId": "A"
}
Expand Down Expand Up @@ -106,7 +106,7 @@
"type": "prometheus",
"uid": "${prometheus_datasource}"
},
"definition": "label_values(up{job=\"kubernetes\"},cluster_id)",
"definition": "label_values(up{service=\"kubernetes\"},cluster_id)",
"hide": 0,
"includeAll": false,
"label": "Cluster",
Expand All @@ -115,7 +115,7 @@
"options": [],
"query": {
"qryType": 1,
"query": "label_values(up{job=\"kubernetes\"},cluster_id)",
"query": "label_values(up{service=\"kubernetes\"},cluster_id)",
"refId": "PrometheusVariableQueryEditor-VariableQuery"
},
"refresh": 2,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@
"uid": "${loki_datasource}"
},
"editorMode": "builder",
"expr": "{job=~\"cluster-api\"} |~ `(?i)error` |= `$cluster` | logfmt",
"expr": "{job=~\".*cluster-api\"} |~ `(?i)error` |= `$cluster` | logfmt",
"queryType": "range",
"refId": "A"
}
Expand Down Expand Up @@ -106,7 +106,7 @@
"type": "prometheus",
"uid": "${prometheus_datasource}"
},
"definition": "label_values(up{job=\"kubernetes\"},cluster_id)",
"definition": "label_values(up{service=\"kubernetes\"},cluster_id)",
"hide": 0,
"includeAll": false,
"label": "Cluster",
Expand All @@ -115,7 +115,7 @@
"options": [],
"query": {
"qryType": 1,
"query": "label_values(up{job=\"kubernetes\"},cluster_id)",
"query": "label_values(up{service=\"kubernetes\"},cluster_id)",
"refId": "PrometheusVariableQueryEditor-VariableQuery"
},
"refresh": 2,
Expand Down

0 comments on commit ef6a12e

Please sign in to comment.