Hi Solace community ![]()
Iβve shared a small but practical observability example that shows how to secure the solace-prometheus-exporter endpoint using Basic Authentication and scrape it with Prometheus.
The setup is intentionally lightweight and fully reproducible using Docker Compose.
Scope clarification
This example focuses on securing the Prometheus exporter endpoint, not on authentication at the Solace broker itself. Broker authentication (SEMP / client access) remains a separate security layer and is already required by default.
Note on feature availability
Basic Auth support for the solace-prometheus-exporter endpoints is a recent addition.
The feature is not officially released yet, but it is already included in the current latest Docker image.
I contributed this feature myself and wanted to share a concrete example early to gather feedback.
Whatβs included?
-
Solace PubSub+ broker
-
Solace Prometheus Exporter (secured with Basic Auth)
-
Prometheus scraping the secured endpoint
-
Simple Docker Compose setup with clear documentation
The example demonstrates:
-
unauthorized access failing
-
authorized access succeeding
-
Prometheus targets showing UP with real Solace metrics
Repository
All steps, configs, and screenshots are documented in the README.
Feedback welcome
If you try this out, Iβd love to hear your thoughts.
Happy monitoring ![]()