Metrics integration with gerrit

563 views
Skip to first unread message

Ashwini T R

unread,
Dec 12, 2016, 9:07:30 AM12/12/16
to Repo and Gerrit Discussion
Hi,

Would like to enable metrics in our gerrit instance. Currently have installed below plugins and made an entry under /etc. PFB


#GERRIT_SITE/gerrit/etc/metrics-reporter-graphite.config

[graphite]
        host = http://<server_name>                   ## Local host name##
        port = 2003
        prefix = gerrit

but not able to proceed further. how do that metrics works.

thanks
Ashwini

David Pursehouse

unread,
Dec 12, 2016, 9:54:40 AM12/12/16
to Ashwini T R, Repo and Gerrit Discussion
If you only want to send metrics to graphite you don't need the elastic search and jmx plugins.

Have you confirmed that graphite is running at the given host and port?

If you're running the jmx plugin you can use jconsole to connect to your gerrit server.


--
--
To unsubscribe, email repo-discuss...@googlegroups.com
More info at http://groups.google.com/group/repo-discuss?hl=en

---
You received this message because you are subscribed to the Google Groups "Repo and Gerrit Discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to repo-discuss...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Ashwini T R

unread,
Dec 13, 2016, 9:32:04 AM12/13/16
to Repo and Gerrit Discussion, ashu.r...@gmail.com
Hi,

Thanks for the update. Will try installing graphite and configure the host.
Any useful links to do the same

Regards
ashwini 

hari

unread,
Mar 8, 2017, 6:26:06 AM3/8/17
to Repo and Gerrit Discussion
Hi Ashwini,

Any luck with your elasticsearch plugin? Were you able to proceed. I installed similar plugin for my Gerrit setup and got no errors But not sure how to view these metrics through elasticsearch. .Any pointers will be helpful. 

Gustaf Lundh

unread,
Mar 8, 2017, 6:46:06 AM3/8/17
to Repo and Gerrit Discussion
Hi,

The elasticsearch reporter plugin is currently not much more than an example plugin showing how to add new reporters to Gerrit. It is not as complete as for instance the graphite reporter plugin (hence the missing documentation).

Currently, the only configuration value is:

<gerrit_site>/etc/metrics-reporter-elasticsearch.config:

[elasticsearch]
    host = <host>

I got it verified/working by just spinning up a local elastic search docker container and dumped the incoming data to the console.

Best regards​
Gustaf

Luca Milanesio

unread,
Mar 8, 2017, 8:39:45 AM3/8/17
to Gustaf Lundh, Repo and Gerrit Discussion
We use the ES reporter and works fine for us.

Luca.

hari

unread,
Mar 13, 2017, 7:12:42 AM3/13/17
to Repo and Gerrit Discussion
Thanks for the pointers Gustaf, I shall try it and let you know if am stuck.

gc

unread,
Jul 15, 2019, 10:01:52 AM7/15/19
to Repo and Gerrit Discussion
Hello All,

Are there any useful links to configure the metrics-graphite plugin, at the moment I can't find such documentation in gerrit.

please help. 

Thanks.

Matthias Sohn

unread,
Jul 15, 2019, 10:46:35 AM7/15/19
to gc, Repo and Gerrit Discussion
On Mon, Jul 15, 2019 at 4:01 PM gc <mannemgo...@gmail.com> wrote:
Hello All,

Are there any useful links to configure the metrics-graphite plugin, at the moment I can't find such documentation in gerrit.

gc

unread,
Jul 15, 2019, 10:58:52 AM7/15/19
to Repo and Gerrit Discussion
My apologies!

Thanks for the link!

Regards. 
Reply all
Reply to author
Forward
0 new messages