Dropwizard Yaml for graphite server configuration

社会主义新天地 提交于 2019-12-11 13:07:55

问题


I am using metrics with dropwizard and I am reporting these to the graphite server. Almost the same way described in the tutorial. https://dropwizard.github.io/metrics/3.1.0/manual/graphite/#manual-graphite But I wanted to configure the graphite properties in the dropwizard yaml file. Something like the following

metrics:
  reporters:
   - type: graphite
     host: graphite_server
     port: 2003 
     prefix: some_example_metrics

How do I then configure this in my dropwizard configuration class in order to use it in the application ?

来源:https://stackoverflow.com/questions/29432586/dropwizard-yaml-for-graphite-server-configuration

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!