stormbroken opened a new pull request #4194:
URL: https://github.com/apache/iotdb/pull/4194


   We add metric framework for IoTDB
   
   Details:
   1. Doc(zh): 
https://cwiki.apache.org/confluence/pages/viewpage.action?pageId=184616789
   2. Doc(en): https://cwiki.apache.org/confluence/display/IOTDB/Monitor+Module
   
   How to use:
   1. Install prometheus, pushgateway and grafana
   2. Get into `metrics/dropwizard-metrics/src/test/PrometheusRunTest` and 
modify `System.setProperty("IOTDB_CONF", "The directory of resources");`, 
IOTDB_CONF here is absolute path of the directory of iotdb-metric.yml.
   3. Then start prometheus, pushgateway and grafana(Notice: you need to config 
prometheus to use pushgateway)
   4. Then you run the `metrics/dropwizard-metrics/src/test/PrometheusRunTest`
   5. Visit `http://localhost:9091/#`(pushgateway), and you can see job = 
"Dropwizard" here.
   6. Visit `http://localhost:3000`(grafana), add prometheus as datasource, and 
in panel you can find metric`test:counter{}`, In this test you can see this 
metric plus one at one second.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to