Skip to content

ChorusOne/near_exporter

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

near_exporter

Docker images are available on Docker Hub.

Go >= 1.14 is required to build the binary.

How to install

env GOBIN=/usr/local/bin go install github.com/ChorusOne/near_exporter/cmd/near_exporter@master

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/ChorusOne/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.service

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

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Go 100.0%