πŸ” Secure solace-prometheus-exporter endpoints with Basic Auth (Docker Compose Example)

Hi Solace community :waving_hand:

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.

:warning: 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.

:new_button: 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.

:package: 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

:link: Repository

All steps, configs, and screenshots are documented in the README.

:speech_balloon: Feedback welcome

If you try this out, I’d love to hear your thoughts.

Happy monitoring :rocket:

4 Likes