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

Question about excludeObjectNames #904

Open
bianchi2 opened this issue Jan 11, 2024 · 3 comments
Open

Question about excludeObjectNames #904

bianchi2 opened this issue Jan 11, 2024 · 3 comments

Comments

@bianchi2
Copy link

What would be the right syntax to exclude metrics by category? Say, I want to exclude all metrics where category00=:hazelcast". Example metrics:

com_example_MeanRate{category00="hazelcast",category01="distributedObject",name="created",tag_objectName="example-cache.Cache.com.example.previews.jwt.JwtUsageLogFilter",tag_serviceName="hz_impl_mapService",}

com_example_95thPercentile{category00="hazelcast",category01="distributedObject",name="created",tag_objectName="example-cache.Cache.com.example.previews.jwt.JwtUsageLogFilter",tag_serviceName="hz_impl_mapService",}

@dhoard
Copy link
Collaborator

dhoard commented Jan 23, 2024

@bianchi2 excludeObjectNames is a regex match on the MBean object name.

Looking at...

com_example_MeanRate{category00="hazelcast",category01="distributedObject",name="created",tag_objectName="example-cache.Cache.com.example.previews.jwt.JwtUsageLogFilter",tag_serviceName="hz_impl_mapService",}

This seems odd/wrong to me... it seems to indicate you have an MBean named MeanRate?

@bianchi2
Copy link
Author

@dhoard this is how metrics show up. Yes, it look like that would be the bean name. Hundreds of metrics are under com_example_MeanRate, and they differ by categories only.

@dhoard
Copy link
Collaborator

dhoard commented Jan 26, 2024

@bianchi2 which version of the exporter are you using?

@dhoard dhoard self-assigned this May 9, 2024
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