From: Kai Moritz Date: Wed, 4 Oct 2023 17:20:47 +0000 (+0200) Subject: WIP:prometheus X-Git-Url: http://juplo.de/gitweb/?a=commitdiff_plain;ds=sidebyside;p=demos%2Fkafka%2Fmonitoring WIP:prometheus --- diff --git a/strimzi-kafka/kafka-cruise-control-metrics.yaml b/strimzi-kafka/kafka-cruise-control-metrics.yaml index 08c3a80..91aa2ed 100644 --- a/strimzi-kafka/kafka-cruise-control-metrics.yaml +++ b/strimzi-kafka/kafka-cruise-control-metrics.yaml @@ -3,7 +3,7 @@ apiVersion: v1 metadata: name: cruise-control-metrics labels: - app: strimzi + app: juplo data: metrics-config.yml: | # See https://github.com/prometheus/jmx_exporter for more info about JMX Prometheus Exporter metrics diff --git a/strimzi-kafka/kafka-metrics.yaml b/strimzi-kafka/kafka-metrics.yaml index 979d60b..be672f1 100644 --- a/strimzi-kafka/kafka-metrics.yaml +++ b/strimzi-kafka/kafka-metrics.yaml @@ -3,7 +3,7 @@ apiVersion: v1 metadata: name: kafka-metrics labels: - app: strimzi + app: juplo data: kafka-metrics-config.yml: | # See https://github.com/prometheus/jmx_exporter for more info about JMX Prometheus Exporter metrics diff --git a/strimzi-kafka/prometheus.yaml b/strimzi-kafka/prometheus.yaml index 37d13dc..14c9ea3 100644 --- a/strimzi-kafka/prometheus.yaml +++ b/strimzi-kafka/prometheus.yaml @@ -3,7 +3,7 @@ kind: ClusterRole metadata: name: prometheus-server labels: - app: strimzi + app: juplo rules: - apiGroups: [""] resources: @@ -27,7 +27,7 @@ kind: ServiceAccount metadata: name: prometheus-server labels: - app: strimzi + app: juplo --- apiVersion: rbac.authorization.k8s.io/v1 @@ -35,7 +35,7 @@ kind: ClusterRoleBinding metadata: name: prometheus-server labels: - app: strimzi + app: juplo roleRef: apiGroup: rbac.authorization.k8s.io kind: ClusterRole @@ -43,7 +43,7 @@ roleRef: subjects: - kind: ServiceAccount name: prometheus-server - namespace: strimzi + namespace: juplo --- apiVersion: monitoring.coreos.com/v1 @@ -51,13 +51,13 @@ kind: Prometheus metadata: name: prometheus labels: - app: strimzi + app: juplo spec: replicas: 1 serviceAccountName: prometheus-server podMonitorSelector: matchLabels: - app: strimzi + app: juplo serviceMonitorSelector: {} resources: requests: @@ -66,10 +66,10 @@ spec: ruleSelector: matchLabels: role: alert-rules - app: strimzi + app: juplo alerting: alertmanagers: - - namespace: strimzi + - namespace: juplo name: alertmanager port: alertmanager additionalScrapeConfigs: