How to set prometheus metrics for lotus #11010
-
I run a lotus mainnet fullnode and want to run prometheus on another host. How to config it ? |
Beta Was this translation helpful? Give feedback.
Answered by
kehiy
Jul 3, 2023
Replies: 1 comment 5 replies
-
hello tony, you can done this in 5 easy steps
example of config file: scrape_configs:
- job_name: 'lotus'
static_configs:
- targets: ['<YOUR_LOTUS_NODE_IP>:<YOUR_LOTUS_NODE_EXPORTER_PORT>']
|
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The
YOUR_LOTUS_NODE_EXPORTER_PORT
configuration option you mentioned is not a built-in configuration option in the Lotus software. Therefore, you don't need to add or configure it in theconfig.toml
file of your Lotus node.By default, the Lotus node's Prometheus exporter listens on port 1234.