-
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
patterns support for config file for kafka metrics #903
Comments
Can you share the rules as designed in your YAML file? |
|
We also have issue with the excludeObjectNameAttributes below is the config file lowercaseOutputName: false
The metrics HELP is as below HELP kafka_network_RequestMetrics_50thPercentile Attribute exposed for management kafka.network:name=ResponseSendTimeMs,type=RequestMetrics,attribute=50thPercentile but still the metrics is not filtered. kafka_network_RequestMetrics_50thPercentile{name="ResponseSendTimeMs",request="AddPartitionsToTxn",} 0.0 |
hi @dhoard |
@Janardhan78 You should include name, labels, and type as part of your rule definition. Regarding |
we are using 0.18.0 |
This was added in a later version. Please upgrade to the latest version. |
hi @dhoard The latest available release version is 0.20.0 is the support present in 0.20.0 |
hi @dhoard We used the latest version of jmx_prometheus_javaagent-0.20.0.jar, and provided the configuration to excludeObjectNameAttributes -javaagent:/usr/share/java/kafka/jmx_prometheus_javaagent-0.20.0.jar=9404:/etc/confluent/metrics/kafka_metrics_config.yaml kafka_metrics_config.yaml contents as below lowercaseOutputName: false
but the metrics "AddPartitionsToTxn" is not being excluded ? is this a bug bash-4.4$ curl localhost:9404 HELP kafka_network_RequestMetrics_50thPercentile Attribute exposed for management kafka.network:name=ResponseSendTimeMs,type=RequestMetrics,attribute=50thPercentileTYPE kafka_network_RequestMetrics_50thPercentile untypedkafka_network_RequestMetrics_50thPercentile{name="ResponseSendTimeMs",request="AlterUserScramCredentials",} 0.0 |
hi @dhoard with the below configuration with name and labels provided the metrics is not filtered i suppose excludeObjectNameAttributes is not supported in 0.20.0 or is it a bug ? kafka_network_RequestMetrics_50thPercentile{name="ResponseSendTimeMs",request="AddPartitionsToTxn",} 0.0 bash-4.4$ curl localhost:9404 | grep ddPartitionsToTxn kafka_network_RequestMetrics_50thPercentile{request="AddPartitionsToTxn",} 0.0
|
@Janardhan78 The functionality is in 0.20.0 and works as expected. The configuration...
... is incorrect because the ObjectName is only Here is an example from the integration tests:
In this scenario, for the Runtime MBean, we will not include the |
Hi @dhoard We have a scenario where the attribute "request" has 10 values out of which we want to select only 7 values, so instead of providing all 7 values and select, is there a way to provide only 3 values which is not needed to be excluded in the output. |
@Janardhan78 to clarify, you have an MBean that has an attribute that returns an array of values? |
Hi @dhoard rules:
kafka_network_RequestMetrics_50thPercentile{name="ResponseSendTimeMs",request="ApiVersions",} 4.0 |
HI @dhoard Regards |
@Janardhan78 apologizes for late response. (I'm on business travel/vacation for a few weeks.) I would suggest using an online Java regular expression based tool using the raw metric line to get the correct matching inclusion/exclusion you require. |
hi @dhoard Scenario: except the below 3, for the above scenario to exclude row wise 3 rows of data Is it possible to exclude? |
@Janardhan78 for...
The actual MBean ObjectName is...
If you don't want any metrics from the MBean, then exclude the MBean using...
The same configuration should be applied for other MBeans you want to exclude. |
I am trying to creat a pattern for the below kafka metrics to be filtered
kafka_server_replica_fetcher_metrics_iotime_total
kafka_server_replica_fetcher_metrics_iotime_total Deprecated The total time the I/O thread spent doing I/O kafka.server:name=null,type=replica-fetcher-metrics,attribute=iotime-total
TYPE kafka_server_replica_fetcher_metrics_iotime_total untyped
kafka_server_replica_fetcher_metrics_iotime_total{broker_id="1",fetcher_id="0",} 4.0117128E7
tried the below pattern
the filtering is not happening
is it mandatory to provide the name ,type, label in the rules?
The text was updated successfully, but these errors were encountered: