Skip to content
Snippets Groups Projects
Commit b110a5d6 authored by Simon Ehrenstein's avatar Simon Ehrenstein
Browse files

Start to replace metrics

parent 1bc1b3f4
No related branches found
No related tags found
1 merge request!243Migrate to Strimzi Kafka
......@@ -71,7 +71,7 @@ data:
"steppedLine": false,
"targets": [
{
"expr": "sum(cp_kafka_server_brokertopicmetrics_messagesinpersec_topic_input)",
"expr": "sum(kafka_server_brokertopicmetrics_messagesin_total{topic='input'})",
"format": "time_series",
"intervalFactor": 1,
"legendFormat": "{{Messages In Per Second}}",
......@@ -162,7 +162,7 @@ data:
"steppedLine": false,
"targets": [
{
"expr": "sum(cp_kafka_server_brokertopicmetrics_messagesinpersec_topic_output)",
"expr": "sum(kafka_server_brokertopicmetrics_messagesin_total{topic='output'})",
"format": "time_series",
"intervalFactor": 1,
"legendFormat": "{{Messages Out Per Second}}",
......@@ -253,7 +253,7 @@ data:
"steppedLine": false,
"targets": [
{
"expr": "sum by(group, topic) (kafka_consumergroup_group_lag >= 0)",
"expr": "sum by(group, topic) (kafka_consumergroup_lag >= 0)",
"format": "time_series",
"intervalFactor": 1,
"legendFormat": "{{topic}}",
......
......@@ -15,32 +15,3 @@ spec:
podMetricsEndpoints:
- path: /metrics
port: tcp-prometheus
relabelings:
- separator: ;
regex: __meta_kubernetes_pod_label_(strimzi_io_.+)
replacement: $1
action: labelmap
- sourceLabels: [__meta_kubernetes_namespace]
separator: ;
regex: (.*)
targetLabel: namespace
replacement: $1
action: replace
- sourceLabels: [__meta_kubernetes_pod_name]
separator: ;
regex: (.*)
targetLabel: kubernetes_pod_name
replacement: $1
action: replace
- sourceLabels: [__meta_kubernetes_pod_node_name]
separator: ;
regex: (.*)
targetLabel: node_name
replacement: $1
action: replace
- sourceLabels: [__meta_kubernetes_pod_host_ip]
separator: ;
regex: (.*)
targetLabel: node_ip
replacement: $1
action: replace
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment