karugaru / docker_state_exporter Goto Github PK
View Code? Open in Web Editor NEWExporter for docker container state
License: MIT License
Exporter for docker container state
License: MIT License
Hello and thanks for this useful exporter!
We are using it to monitor...the state :) of our containers and have noticed that when it is deployed on a host with ephemeral containers (in our case it is a gitlab-runner), once in a while the exporter exits with message:
{"message":"Error: No such container: 23hg1k34k...
Reading the code, we think that it fails when trying to inspect a container that was just removed (by gitlab-runner).
Though you might get around this by adding a restart policy, it will probably cause alerts to be fired (such as "too-may-restarts" and "prometheus-target-missing").
We could open a PR if you wish though we are not proficient with Go.
Once again thanks for this nice exporter!
Best regards,
Panos
Is there someway to use a TCP/http uri instead of socket?
#docker version
Client:
Version: 19.03.6-ce
API version: 1.40
Go version: go1.13.4
Git commit: 369ce74
Built: Fri May 29 04:01:26 2020
OS/Arch: linux/amd64
Experimental: false
Server:
Engine:
Version: 19.03.6-ce
API version: 1.40 (minimum version 1.12)
Go version: go1.13.4
Git commit: 369ce74
Built: Fri May 29 04:01:57 2020
OS/Arch: linux/amd64
Experimental: false
containerd:
Version: 1.3.2
GitCommit: ff48f57fc83a8c44cf4ad5d672424a98ba37ded6
runc:
Version: 1.0.0-rc10
GitCommit: dc9208a3303feef5b3839f4323d9beb36df0a9dd
docker-init:
Version: 0.18.0
GitCommit: fec3683
error log:
{"address":":8812","message":"Server listening...","severity":"info","timestamp":"2022-01-14T02:42:52.470521503Z"}
{"message":"Error response from daemon: client version 1.41 is too new. Maximum supported API version is 1.40","severity":"error","timestamp":"2022-01-14T02:42:52.911369808Z"}
Hello,
Do you have any grafana dashboard for this metrics ?
Thanks :)
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.