scaphandre
scaphandre copied to clipboard
Prometheus metrics formatting is changing after request
Bug description
The exported prmetheus metrics structure changes if I query it from terminal and are only partially in prometheus format.
To Reproduce
- start scaphandre via docker
- open metrics via browser localhost:8080/metrics
- metrics appear and everything is normal also on refresh
- curl the website
curl localhost:8080/metrics - exported metrics change and only partially comply with Prometheus schema
Expected behavior
exported metrics do not change regardless how i query it
Environment
- Linux distribution version Fedora 38 workstation
- Kernel version 6.4.11-200.fc38.x86_64 GNU/Linux
Additional context
cmd to start the container:
docker run -v /sys/class/powercap:/sys/class/powercap -v /proc:/proc -p 8080:8080 -ti hubblo/scaphandre prometheus
I am able to scrape scaphandre metrics using prometheus without anay issue.
Do you have the same issue with docker image hubblo/scaphandre prometheus:dev ?
-
start scaphandre via docker
-
open metrics via browser localhost:8080/metrics
-
metrics appear and everything is normal also on refresh
-
curl the website curl localhost:8080/metrics
now the metrics changed?
If I run docker run -v /sys/class/powercap:/sys/class/powercap -v /proc:/proc -p 8080:8080 -ti hubblo/scaphandre:dev prometheus I always get to the second screenshot.
This is prob. just a small thing. Which looks to be already solved in the dev image if the metrics in the second screenshot are the expected output? Idk if you can turn off all the extra metrics and go back to the more simplistic overview?
You screen capture does not show all response, can you export metrics in a file for each case.
the first is 3.2kb, the second one 529.4kb