-
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
Support for JMX filter pattern for kafka metrics #908
Comments
Hi @dhoard |
@sreelu27 are you wanting any of the metrics from the |
Hi @dhoard , Do you want any of the metrics from the RequestMetrics MBean ? – No The issue here is when I apply this filter, all network related metrics are coming but along with that JMX and JVM metrics also coming that's the problem. **jvm_threads_deadlocked_monitor 0.0 HELP jvm_threads_state Current count of threads by stateTYPE jvm_threads_state gaugejvm_threads_state{state="NEW",} 0.0 HELP kafka_network_RequestMetrics_Count Attribute exposed for management kafka.network:name=LocalTimeMs,type=RequestMetrics,attribute=CountTYPE kafka_network_RequestMetrics_Count untypedkafka_network_RequestMetrics_Count{name="LocalTimeMs",request="Fetch",} 0.0 **# HELP jmx_scrape_duration_seconds Time this JMX scrape took, in seconds. TYPE jmx_scrape_duration_seconds gaugejmx_scrape_duration_seconds 0.15442887** |
Hi @dhoard, |
Hi @dhoard, |
Hi @dhoard, I tried to add blacklistObjectNames as below, but still I am getting the jvm metrics,
|
@sreelu27 if you don't want any request metrics, then you should use...
... which will filter all all MBean's with ObjectNames that match. |
Hi @dhoard , No I want to exclude the jvm metrics jvm_memory_pool_bytes_used{pool="CodeHeap 'non-nmethods'",} 1580928.0 Is there any way I can do that? We are using jmx version 0.18.0 |
@sreelu27 some questions... since this is different than what you originally requested...
Are you wanting to exclude all JVM metrics? |
Hi @dhoard , |
@sreelu27 you should be able to use the configuration |
Hi @dhoard, I was trying to apply the configuration excludeObjectNames using the below configmap
I have tried, but didnt work,
Also tried wild card pattern :
All of the above didn't work. Is the MBean, that I am using is incorrect ? or is it that we cant exclude these default metrics (jvm & jmx) ? Could you please help me here @dhoard ? Thanks :) |
HI @dhoard Can you please help me with the query #908 (comment) Thanks, |
@sreelu27 please upgrade to the latest version. |
Hi @dhoard , I am using 0.20.0 version. Uplifted from 0.18.0 to 0.20.0 for configuration excludeObjectNames Thanks, |
Hi @dhoard, Could you please help me with the query #908 (comment) Thanks, |
@sreelu27
Should exclude the MBean. |
Hi @dhoard, I have tried the above, but it didn't work as mentioned in my previous comment? |
Hi @dhoard, Could you please help me with the above query #908 (comment) Is the MBean, that I am using is incorrect ? or is it that we cant exclude these default metrics (jvm & jmx) ? |
1 similar comment
Hi @dhoard, Could you please help me with the above query #908 (comment) Is the MBean, that I am using is incorrect ? or is it that we cant exclude these default metrics (jvm & jmx) ? |
@sreelu27 Currently I'm are working on migration to the new Prometheus Java I feel filtering JVM metrics is low priority since most uses/use cases I have seen want to monitor these metrics. |
Working as designed. Filtering of JVM metrics is an enhancement tracked via #696 |
I am trying to create a pattern for the below Kafka metrics to be filtered:
kafka_network_RequestMetrics_Count
I have tried the below pattern :
pattern : kafka.network<type=RequestMetrics, name=LocalTimeMs, request=Fetch><>Count
Even after applying this filter, I can see other metrics related to jvm and jmx.
Below is the config :
The text was updated successfully, but these errors were encountered: