Extract pull and push metrics from Nexus oss - Sonatype Nexus Repository - Sonatype Community

Extract pull and push metrics from Nexus oss

post by cmaluend on Apr 17, 2019

Cristian Maluenda

Hi guys,

I would like to expose/export some metrics from Nexus like artifacts pushed and pulled. I know there is a metrics endpoint using Dropwizard:

{host:port}/service/metrics/healthcheck
{host:port}/service/metrics/data
{host:port}/service/metrics/ping
{host:port}/service/metrics/threads

My idea is to add a new endpoint to the metrics, something like: {host:port}/service/metrics/artifacts.

Which is the best way to do this? Create a new plugin?

Regards,

Cristian.

1.4k views