Archives of Support Questions (Read Only)

This is an archived board for historical reference. Information and links may no longer be available or relevant
Announcements
This board is archived and read-only for historical reference. To ask a new question, please post a new topic on the appropriate active board.

NiFi monitor garbage collection from Grafana

avatar
Expert 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

avatar

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

avatar

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

avatar
Expert Contributor

@Abdelkrim Hadjidj Thanks a lot appreciate you help!