Skip to content

Conversation

@sbernauer
Copy link
Member

@sbernauer sbernauer commented Jul 17, 2025

Before
Subject Alternative Names: simple-nifi-reporting-task.default.svc.cluster.local, IP Address:172.20.0.2, simple-nifi-node-default-headless.default.svc.cluster.local, simple-nifi-node-default-0.simple-nifi-node-default-headless.default.svc.cluster.local
After
Subject Alternative Names: simple-nifi-node-default-metrics.default.svc.cluster.local, simple-nifi-reporting-task.default.svc.cluster.local, IP Address:172.20.0.2, simple-nifi-node-default-headless.default.svc.cluster.local, simple-nifi-node-default-0.simple-nifi-node-default-headless.default.svc.cluster.local

Note the simple-nifi-node-default-metrics.default.svc.cluster.local addition

We can now curl the metrics (cert should match, no SNI check failure)
curl -k https://simple-nifi-node-default-metrics.default.svc.cluster.local:8443/nifi-api/flow/metrics/prometheus works as in returns a 401 (excpected)
Please note that this is a load-balanced service, users probably want to use a ServiceMonitor to scrape all Pods individually. AFAIK Prometheus collects the list of Pods of the Service and scrapes them by their Pod IP, which is also in the list of SANs :) -> stackabletech/secret-operator#620

@sbernauer sbernauer moved this to Development: Waiting for Review in Stackable Engineering Jul 17, 2025
@sbernauer sbernauer requested a review from xeniape July 17, 2025 06:59
@xeniape
Copy link
Member

xeniape commented Jul 17, 2025

Updated the description about PodIPs being in the list of SANs and linking to the issue related to that. So scraping metrics from PodIPs is still not possible.

@sbernauer
Copy link
Member Author

Thanks for updating the description!

@sbernauer sbernauer added this pull request to the merge queue Jul 17, 2025
Merged via the queue into main with commit 362114c Jul 17, 2025
17 checks passed
@sbernauer sbernauer deleted the fix/add-mettrics-san branch July 17, 2025 09:56
@sbernauer sbernauer moved this from Development: Waiting for Review to Development: Done in Stackable Engineering Jul 17, 2025
@lfrancke lfrancke moved this from Development: Done to Done in Stackable Engineering Jul 22, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

3 participants