Skip to content
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

Hazelcast Metrics are not showing #941

Closed
Nirzak opened this issue Apr 18, 2024 · 2 comments
Closed

Hazelcast Metrics are not showing #941

Nirzak opened this issue Apr 18, 2024 · 2 comments

Comments

@Nirzak
Copy link
Contributor

Nirzak commented Apr 18, 2024

Hi, I am using the following rule to capture hazelcast metrics using JMX.

  - pattern: "^com.hazelcast<type=Metrics,instance=(.+),prefix=(.+),tag0=(.+)><>(.+):"
    name: hazelcast_$4
    attrNameSnakeCase: true
    labels:
      instance: $1
      prefix: $2
      tag0: $3

But the metrics are not showing on /metrics endpoint. but on the log it's showing that the metrics are scraping successfully from mbean.

The log:
18-Apr-2024 04:50:14.448 FINE [prometheus-http-1-1] io.prometheus.jmx.logger.Logger.log com.hazelcast:type=Metrics,instance=hz-auth-inst
ance,prefix=executor.internal,tag0="name=hz:cluster:event"_completedTasks process
18-Apr-2024 04:50:14.448 FINE [prometheus-http-1-1] io.prometheus.jmx.logger.Logger.log com.hazelcast{type=Metrics, instance=hz-auth-ins
tance, prefix=executor.internal, tag0="name=hz:cluster:event"}completedTasks scrape: 12
18-Apr-2024 04:50:14.448 FINE [prometheus-http-1-1] io.prometheus.jmx.logger.Logger.log com.hazelcast:type=Metrics,instance=hz-auth-inst
ance,prefix=executor.internal,tag0="name=hz:cluster:event"_queueSize process
18-Apr-2024 04:50:14.448 FINE [prometheus-http-1-1] io.prometheus.jmx.logger.Logger.log com.hazelcast:type=Metrics,instance=hz-auth-inst
ance,prefix=executor.internal,tag0="name=hz:cluster:event"_maximumPoolSize process
18-Apr-2024 04:50:14.448 FINE [prometheus-http-1-1] io.prometheus.jmx.logger.Logger.log com.hazelcast{type=Metrics, instance=hz-auth-ins
tance, prefix=executor.internal, tag0="name=hz:cluster:event"}maximumPoolSize scrape: 1
18-Apr-2024 04:50:14.448 FINE [prometheus-http-1-1] io.prometheus.jmx.logger.Logger.log com.hazelcast:type=Metrics,instance=hz-auth-inst
ance,prefix=executor.internal,tag0="name=hz:cluster:event"_remainingQueueCapacity process
18-Apr-2024 04:50:14.448 FINE [prometheus-http-1-1] io.prometheus.jmx.logger.Logger.log com.hazelcast{type=Metrics, instance=hz-auth-ins
tance, prefix=executor.internal, tag0="name=hz:cluster:event"}remainingQueueCapacity scrape: 2147483647

@Nirzak
Copy link
Contributor Author

Nirzak commented Apr 21, 2024

HI I was able to fix the problem. So I am going to create a PR to add an example config for hazelcast in prometheus JMX exporter. Thanks

@dhoard
Copy link
Collaborator

dhoard commented Apr 23, 2024

Issue resolved

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants