prg3 / cgminer_exporter Goto Github PK
View Code? Open in Web Editor NEWPrometheus exporter for Cgminer (specifically Antminers)
License: BSD 3-Clause "New" or "Revised" License
Prometheus exporter for Cgminer (specifically Antminers)
License: BSD 3-Clause "New" or "Revised" License
Hi,
we use cgminer_exporter to scrape 240 L3/D3 Antminer. First we had Prometheus set to 10s scrape interval. We noticed that no responses were coming in and accessing the exporter manually had a delay of like 5 minutes.
A interval of 120s is working for us right now, eventhough there are sporadic fails. Logs look like this:
[E 180719 11:19:02 web:2064] 500 GET /metrics?target=10.1.4.65 (::1) 1002.38ms
[I 180719 11:19:02 web:2064] 200 GET /metrics?target=10.1.4.58 (::1) 17.18ms
Any ideas what to do about this?
cgminer_exporter is running as docker-compose
cgminer-exporter:
image: majestik/cgminer_exporter
container_name: cgminer-exporter
restart: always
ports:
- "9188:9188"
network_mode: "host"
This is our prometheus.yml
# cgminer/bmminer (Antminer) Exporter
- job_name: 'cgminer-exporter'
scrape_interval: 120s
metrics_path: /metrics
relabel_configs:
- source_labels: [__address__]
target_label: __param_target
- source_labels: [__param_target]
target_label: instance
- target_label: __address__
replacement: localhost:9154
file_sd_configs:
- files:
- nodes.yml
Hi!
Thanks for sharing this exporter ๐
Do you have a grafana or similar dashboard you are using to display all the metrics that you could also share? If you are using grafana you can dump the json for a dashboard to share ๐
Kind regards,
Asbjorn
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.