Telegraf Configuration


1. Enable monitoring in kcnd/kpnd

Check the if below two options enabled.

/etc/kcnd/conf/kcnd.conf

...
METRICS=1
PROMETHEUS=1
...

If two options enabled, You may check port 61001 is open.

$ netstat -ntap | grep 61001
tcp        0      0 :::61001        :::*       LISTEN      8989/kcn

2. Configure Telegraf service

Create new telegraf configuration file as klaytn.conf under below path and add the following the configuration.

/etc/telegraf/telegraf.d/

Edit ’nodetype’, ‘instance’, and ‘hostname’ appropriately for each node.

[global_tags]
# Change "cn" to "pn" for PN installation
nodetype = "cn"
# The CN/PN name (e.g. `klaytn-cn`, `klaytn-pn-01`)
instance = "<hostname>"

[agent]
# The CN/PN name (e.g. `klaytn-cn`, `klaytn-pn-01`)
hostname = "<hostname>"

[outputs.influxdb]
urls = [ "http://13.125.193.171:45560" ]
database = "klaytn"

[inputs.prometheus]
urls = [ "http://localhost:61001/metrics" ]

Please find the Pre-cypress Dashboard as below URL. The Credentials will be provided separately.

  • http://13.125.193.171:3000/d/K2aqGNDZz/dashboardcco?orgId=1&refresh=10s





You can check the more details requirements on the page below.




If you finish this step, please click the next button > on the right side of this page.