-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Not getting metrics for FirstMessageAge using JMX Exporter in Activemq Artemis #986
Comments
@priyabrat-mishra which version of the exporter are you using? |
@dhoard We are using version 0.19.0 . The jar file jmx_prometheus_javaagent-0.19.0.jar is used . |
@dhoard Could you please provide the pattern which can send only the metric first_message_age . We tried with many options, but nothing working . Below is the latest one used .
|
@priyabrat-mishra some questions...
|
Yes, in both cases , we are getting the metrics for first_message_age . But our requirement is to get only first_message_age metrics , not other metrics . We tried with the below pattern , but the $7 is replaced with the value of the metric . Could you please let us know if there is correction needed for the below pattern .
Metric got for the above is as below . artemis_253419677{queue="TEST.QUEUE.3",address="TEST.QUEUE.3",name="sq1107-statefulset-0",routingtype="anycast",version="Apache ActiveMQ Artemis 2.32.0",} 2.53419677E8 |
Since you are matching a specific value, you should be able to set the name to a constant value.
|
@dhoard what is the pattern should we use for that as just putting the name is not sending any value for that metrics |
@priyabrat-mishra the literal.
From the README...
|
Hi Team,
We are not getting Prometheus metrics for the below pattern . We just need the value of FirstMessageAge value for Queues/Topics .
^org.apache.activemq.artemis<broker="([^\"])",\scomponent=addresses,\saddress="([^\"])",\ssubcomponent=queues,\srouting-type="([^\"])",\squeue="([^\"]*)"><>FirstMessageAge
Currently we are using the below pattern, but its sending all the metrics for the queues/topics .
"^org.apache.activemq.artemis<broker="([^\"])",\scomponent=addresses,\saddress="([^\"])",\ssubcomponent=(queue|topic)s,\srouting-type="([^\"])",\s(queue|topic)="([^\"])"><>([^: ]):\s(.*)"
The text was updated successfully, but these errors were encountered: