Red Hat AMQ 7.x - Prometheus should use ServiceMonitor concept for scraping.

Solution Unverified - Updated -

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.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content