How solacecommunity/solace-prometheus-exporter works
Solace Prometheus Exporter is a broker-to-monitoring adapter: Prometheus scrape requests select metric targets, the exporter dispatches broker queries over SEMP, and the resulting metrics are exposed over HTTP. Its documented capabilities also include endpoint aliases, per-request broker overrides, authentication, TLS, hardware-specific targets, and asynchronous prefetch. The sampled collector shows target dispatch; some detailed wiring for configuration, SEMP transport, and prefetch is not shown, so those links are omitted or marked unverified.
Main entry points: exporter.collect.go Target dispatcher · main.go Scrape endpoints · http.go SEMP HTTP transport · semp System and hardware
Components 19
HTTP serving
- Exporter entry point
cmd/solace-prometheus-exporter/main.go - Scrape endpoints
cmd/solace-prometheus-exporter/main.go - Endpoint landing page
internal/web/handler.go
Scrape orchestration
- Broker and scrape config
internal/exporter/config.struct.go - Request overrides
cmd/solace-prometheus-exporter/main.go - Async prefetch
internal/exporter/asyncFetcher.go - Target dispatcher
internal/exporter/exporter.collect.go - Prometheus metrics
internal/exporter/exporter.collect.go
Broker metrics
- System and hardware
internal/semp - VPN and replication
internal/semp - Queue and spool
internal/semp - Client and bridge
internal/semp - Metric descriptions
internal/semp/metricDesc.go
Security and transport
- Exporter Basic Auth
internal/web/auth.go - SEMP HTTP transport
internal/semp/http.go - Broker authentication
internal/exporter/auth.go - TLS listener
internal/exporter/tlsServer.go
Other components
- Prometheus scraper
- Solace broker
Connections 21
- Prometheus scraper → Scrape endpoints: scrapes
- Exporter entry point → Scrape endpoints: serves
cmd/solace-prometheus-exporter/main.go - Scrape endpoints → Request overrides: resolves overrides
cmd/solace-prometheus-exporter/main.go - Scrape endpoints → Target dispatcher: dispatches scrape
- Scrape endpoints → Endpoint landing page: serves page
- Scrape endpoints → Exporter Basic Auth: protects endpoints
cmd/solace-prometheus-exporter/main.go - Broker and scrape config → Target dispatcher: configures targets
- Target dispatcher → System and hardware: dispatches targets
internal/exporter/exporter.collect.go - Target dispatcher → VPN and replication: dispatches targets
internal/exporter/exporter.collect.go - Target dispatcher → Queue and spool: dispatches targets
internal/exporter/exporter.collect.go - Target dispatcher → Client and bridge: dispatches targets
internal/exporter/exporter.collect.go - System and hardware → SEMP HTTP transport: sends SEMP
- VPN and replication → SEMP HTTP transport: sends SEMP
- Queue and spool → SEMP HTTP transport: sends SEMP
- Client and bridge → SEMP HTTP transport: sends SEMP
- SEMP HTTP transport → Solace broker: queries
- Broker authentication → SEMP HTTP transport: authenticates requests
- Target dispatcher → Prometheus metrics: collects metrics
internal/exporter/exporter.collect.go - Metric descriptions → Prometheus metrics: describes metrics
- Async prefetch → Target dispatcher: prefetches metrics
- TLS listener → Scrape endpoints: secures listener