grails-plugins / grails-dropwizard-metrics

10 stars 2 forks source link

Unable to access /metrics #2

Open prashantjulka opened 7 years ago

prashantjulka commented 7 years ago

Sample-Dropwizard.tar.gz Attaching a demo application. Please let me know, if I am doing something wrong. And, when I configured actuator, I was able to see the data provided by actuator at '/metrics' but there was no data for timer, metered, etc.

scrain commented 7 years ago

The /metrics endpoint won't show any timed or metered data unless some is gathered. You need to enable the actuator endpoints and also hit your controller at least once and then you should see those metrics.

jeffscottbrown commented 7 years ago

There is a relevant TBD in the docs at https://github.com/grails-plugins/grails-dropwizard-metrics/blob/e94651bf01361a6147f653db4610a2712c8349f4/src/docs/asciidoc/metrics.ad#L77. If anyone wants to send a PR to update that, all input is welcome.

prashantjulka commented 7 years ago

@scrain I have tried enabling actuator. I could see the data which comes when actuator is enabled, but there is no data related to metered, timed; even after hitting the controller multiple times.

psurolia commented 7 years ago

@jeffbrown I am also facing same issue, could you please let us know if we are missing any part for configuring endpoint.

psurolia commented 7 years ago

@jeffbrown Could you please update on this issue.

nishantrevo commented 7 years ago

@jeffbrown I am also not able to access it, Do I have to do some other configuration as well which is not documented.

psurolia commented 7 years ago

@prashantjulka By defining metricRegistry bean in resources.groovy, I am able to get timer information by applying @Timed Annotation but getting a scattered information in JSON which does not match with format mentioned at http://grails-plugins.github.io/grails-dropwizard-metrics/1.0.0.M2/index.html#_exposing_metrics_data

@jeffbrown If possible could you please check https://stackoverflow.com/questions/42619036/grails-dropwizard-metrics-plugin-doesnt-output-metrics-data-in-correct-format

and let us know what else configurations needed to get desired result in correct format.

charu-jain89 commented 6 years ago

Hi @jeffbrown Please update us on the above issue. We need to implement this in our current application.

abcfy2 commented 6 years ago

Any updates for this issue ? I have the same issue #7 . How to use this plugin ? How to format the metrics like the official doc: https://grails-plugins.github.io/grails-dropwizard-metrics/1.0.0.M3/index.html#_exposing_metrics_data