1- # ### Products
2- #
31# Use something like this to check for metrics:
42# count by (app_kubernetes_io_name, app_kubernetes_io_instance, pod) ({app_kubernetes_io_name!="",pod!=""})
53#
6- # See https://github.com/stackabletech/issues/issues/735
7- #
8- # - [x] Airflow - exporter
9- # - [x] Druid - native
10- # - [x] HBase - native
11- # - [x] Hadoop HDFS - native
12- # - [x] Hive - exporter
13- # - [x] Kafka - exporter
14- # - [x] NiFi 1 - native
15- # - [ ] NiFi 2 - native - partially working, needs mTLS
16- # - [ ] OpenSearch
17- # - [ ] Spark - native
18- # - [x] Superset - exporter
19- # - [x] Trino - native
20- # - [x] ZooKeeper - native
21- # - [x] OPA - native
4+ # [x] Airflow - exporter
5+ # [x] Druid - native
6+ # [x] HBase - native
7+ # [x] Hadoop HDFS - native
8+ # [x] Hive - exporter
9+ # [x] Kafka - exporter
10+ # [x] NiFi 1 - native
11+ # [x] NiFi 2 - native
12+ # [ ] OpenSearch - not officially part of the platform yet
13+ # [ ] Spark - native - was too lazy, no idea if we even expose metrics
14+ # [x] Superset - exporter
15+ # [x] Trino - native
16+ # [x] ZooKeeper - native
17+ # [x] OPA - native
2218---
2319apiVersion : monitoring.coreos.com/v1
2420kind : ServiceMonitor
@@ -171,9 +167,8 @@ spec:
171167 - app.kubernetes.io/role-group
172168 - app.kubernetes.io/version
173169---
174- # NiFI 2 is a beast on it's own....
175- # The current state produces "server returned HTTP status 401 Unauthorized", but it's at least a
176- # good starting point for a working version
170+ # NiFI 2 is a beast on it's own...
171+ # We need to use mTLS (otherwise we get a 401) and can not use the PodIP
177172apiVersion : monitoring.coreos.com/v1
178173kind : ServiceMonitor
179174metadata :
@@ -193,19 +188,26 @@ spec:
193188 operator : In
194189 values :
195190 - nifi
196- # - key: app.kubernetes.io/version
197- # operator: NotIn
198- # values:
199- # - List all 1.x.x version combinations
200191 endpoints :
201192 - scheme : https
202193 port : https
203194 path : /nifi-api/flow/metrics/prometheus
204- # TODO: Use mTLS
205- # See https://github.com/stackabletech/demos/pull/260
206195 # See https://github.com/prometheus-operator/prometheus-operator/blob/main/Documentation/api-reference/api.md#monitoring.coreos.com/v1.TLSConfig
207196 tlsConfig :
208- insecureSkipVerify : true
197+ ca :
198+ secret :
199+ name : prometheus-tls-certificate
200+ key : ca.crt
201+ cert :
202+ secret :
203+ name : prometheus-tls-certificate
204+ key : tls.crt
205+ keySecret :
206+ name : prometheus-tls-certificate
207+ key : tls.key
208+ # We need to talk to the Pod via the FQDN of the Pod because of the stupid SNI check of NiFi.
209+ # We can not use the typical PodIP, as it is not contained in the NiFi certificate,
210+ # see https://github.com/stackabletech/secret-operator/issues/620
209211 relabelings :
210212 - sourceLabels :
211213 - __meta_kubernetes_pod_name
0 commit comments