Skip to content

metrics stay zero #1493

Answered by piksel
henkiewie asked this question in Q&A
Dec 6, 2022 · 1 comments · 2 replies
Discussion options

You must be logged in to vote

watchtower_containers_scanned is a gauge, meaning it gets reset on every session.

Tried it just now, and it works as expected:

docker run --rm -it -p 8080:8080 -v /var/run/docker.sock:/var/run/docker.sock containrrr/watchtower --http-api-metrics --http-api-token t --interval 10
INFO[0001] Watchtower 1.5.1
INFO[0001] Using no notifications
INFO[0001] Checking all containers (except explicitly disabled with label)
INFO[0001] Scheduling first run: 2022-12-06 10:10:35 +0000 UTC
INFO[0001] Note that the first check will be performed in 9 seconds
INFO[0017] Session done                                  Failed=0 Scanned=1 Updated=0 notify=no
INFO[0021] Session done                              …

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@henkiewie
Comment options

@simskij
Comment options

Answer selected by henkiewie
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants