Support Questions
Find answers, ask questions, and share your expertise

NiFi monitor garbage collection from Grafana

Contributor

Hi All,

Thanks a lot to this awesome community.

I have use case for which I need to monitor number of garbage collections in NiFi.

this linkks shows how to enable GC logging by bootstrap.conf change. Is there any way I can sent GC collection info thru REST API to Ambari Metric collector system?

https://community.hortonworks.com/questions/105577/nifi-how-to-turn-on-gc-logging-for-nifi.html

Thanks a lot.

Dhieru

1 ACCEPTED SOLUTION

Hi @dhieru singh

AmbariReportingTask can be used to send metric to AMS. You can see the GC metrics that it can send to AMS : https://nifi.apache.org/docs/nifi-docs/components/org.apache.nifi/nifi-ambari-nar/1.5.0/org.apache.n...

In the default Grafana dashboard, the information is not used. But you can create a dashboard to show jvm.gc.runs.G1 Young Generation for example. Below a simple dashboard that show this information:

64720-screen-shot-2018-03-20-at-103057-am.png

View solution in original post

2 REPLIES 2

Hi @dhieru singh

AmbariReportingTask can be used to send metric to AMS. You can see the GC metrics that it can send to AMS : https://nifi.apache.org/docs/nifi-docs/components/org.apache.nifi/nifi-ambari-nar/1.5.0/org.apache.n...

In the default Grafana dashboard, the information is not used. But you can create a dashboard to show jvm.gc.runs.G1 Young Generation for example. Below a simple dashboard that show this information:

64720-screen-shot-2018-03-20-at-103057-am.png

Contributor

@Abdelkrim Hadjidj Thanks a lot appreciate you help!

Take a Tour of the Community
Don't have an account?
Your experience may be limited. Sign in to explore more.