jmx-monitoring-stacks icon indicating copy to clipboard operation
jmx-monitoring-stacks copied to clipboard

Adding New Relic example

Open aschmid13 opened this issue 1 year ago • 2 comments

aschmid13 avatar Jul 12 '22 15:07 aschmid13

I see a new kafka_broker.yaml file being added. Is there a way to use the existing files in the shared-assets folder for parsing. The current model tries to have a single parsing source if the OpenMetrics format is chosen, for consistency in scraping as well as graphing similarity.

Can you modify the NR example to use the existing ones ?

waliaabhishek avatar Aug 02 '22 02:08 waliaabhishek

I tried to use the existing kafka_broker.yml file, but New Relic requires metrics to be named a certain way in order to classify the type correctly. For example, this pattern in the new file sends a cumulative counter: - pattern: kafka.(\w+)<type=(.+), name=(.+)PerSec\w*, (.+)=(.+), (.+)=(.+)><>Count name: kafka_$1_$2_$3_total type: COUNTER

In the old file, this was classified as a gauge so it would show up as very large, always increasing number with no way in New Relic to query the data in a useful way. In the new file, it classifies it as a counter and New Relic automatically takes the delta of the counter between values which allows it to be charted properly.

https://docs.newrelic.com/docs/infrastructure/prometheus-integrations/install-configure-remote-write/set-your-prometheus-remote-write-integration#mapping

FWIW, the file I used is the community example over here: https://github.com/prometheus/jmx_exporter/blob/master/example_configs/kafka-2_0_0.yml

aschmid13 avatar Aug 02 '22 15:08 aschmid13

CLA assistant check
All committers have signed the CLA.

cla-assistant[bot] avatar Aug 06 '23 08:08 cla-assistant[bot]

@albefaedda can you solve the conflicts before merging?

hifly81 avatar Aug 11 '23 05:08 hifly81

@aschmid13 could you please create a PR with only the New Relic changes? This one seems to be modifying other dashboards as well. Thanks

albefaedda avatar Aug 11 '23 09:08 albefaedda