Skip to content

[IOTDB-1761] Add metric framework for IoTDB#4194

Merged
SteveYurongSu merged 131 commits intoapache:masterfrom
SpriCoder:metric_zhy
Nov 5, 2021
Merged

[IOTDB-1761] Add metric framework for IoTDB#4194
SteveYurongSu merged 131 commits intoapache:masterfrom
SpriCoder:metric_zhy

Conversation

@SpriCoder
Copy link
Contributor

@SpriCoder SpriCoder commented Oct 20, 2021

We add metric framework for IoTDB, related jira is https://issues.apache.org/jira/projects/IOTDB/issues/IOTDB-1761?filter=allissues and related PR #2748

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 metrictest:counter{}, In this test you can see this metric plus one at one second.

@SpriCoder SpriCoder marked this pull request as draft October 27, 2021 11:34
@SteveYurongSu SteveYurongSu marked this pull request as ready for review November 4, 2021 02:14
Copy link
Member

@SteveYurongSu SteveYurongSu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@SteveYurongSu SteveYurongSu merged commit 25fefb5 into apache:master Nov 5, 2021
@SpriCoder SpriCoder deleted the metric_zhy branch May 17, 2022 14:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants