Go to file
Leopold Schabel e7d204fd8d
Create LICENSE
2021-03-28 22:40:19 +02:00
cmd/near_exporter Do not request metrics while validator is syncing 2021-02-03 18:18:15 +01:00
.gitignore Initial commit 2020-07-14 08:13:07 +02:00
Dockerfile Update to Go 1.15 2021-02-04 23:28:25 +01:00
LICENSE Create LICENSE 2021-03-28 22:40:19 +02:00
README.md Update README.md 2021-02-14 14:56:22 +01:00
go.mod Init commit 2020-07-14 08:58:54 +02:00
go.sum Init commit 2020-07-14 08:58:54 +02:00

README.md

near_exporter

Docker images are available on Docker Hub.

Go >= 1.14 is required to build the binary.

How to build

go build github.com/certusone/near_exporter/cmd/near_exporter

systemd service example

cp near_exporter /usr/local/bin

cat <<EOF > /etc/systemd/system/near-exporter.service
[Unit]
Description=Certus One near_exporter
Documentation=https://github.com/certusone/near_exporter
After=network.target

[Service]
Environment="NEAR_RPC_ADDR=http://127.0.0.1:3030"
ExecStart=/usr/local/bin/near_exporter
Restart=always
RestartSec=10s

[Install]
WantedBy=multi-user.target
EOF

Enable and start the service:

systemctl enable --now near-exporter

Exporter will be available at http://localhost:8080/metrics