Skip to content

Fix prometheus path and add prometheus to bor.service#385

Merged
cffls merged 1 commit into
0xPolygon:v0.3.0-devfrom
cffls:jc/prometheus
May 10, 2022
Merged

Fix prometheus path and add prometheus to bor.service#385
cffls merged 1 commit into
0xPolygon:v0.3.0-devfrom
cffls:jc/prometheus

Conversation

@cffls

@cffls cffls commented May 6, 2022

Copy link
Copy Markdown
Contributor

Prometheus metrics was not working for three reasons:

  1. path was set to /metric
  2. we need to use Handler instead of HandleFunc. Also see the same fix in v3 https://github.com/maticnetwork/v3/pull/52
  3. bor.service did not enable metrics and prometheus's address

This commit fixes these problems.

@cffls cffls requested review from 0xsharma, manav2401 and vcastellm May 6, 2022 21:03

@vcastellm vcastellm left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

LGTM

@cffls cffls merged commit 110ea65 into 0xPolygon:v0.3.0-dev May 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants