Red Hat AMQ 7.x - Prometheus should use ServiceMonitor concept for scraping.
Issue
-
Prometheus Operator is the default on OpenShift 4 and uses the ServiceMonitor concept for scraping. So my expectation is that Red Hat Products must work with ServiceMonitor.
-
ServiceMonitor is the default way to scrape Prometheus metrics, our expectations would be that the port definitions are automatically added to the StatefulSet.
-
In AMQ 7.8.2, the StatefulSet are missing container port definitions, so the ServiceMonitor cannot scrape the metrics. We have to manually add this port definition to the StatefulSet in order to get the metrics work.
ports:
- containerPort: 8161
name: management
protocol: TCP
Environment
- Red Hat AMQ 7.x
- OpenShift
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.