Repo to reproduce issue: prometheus/jmx_exporter#666
git clone git@github.com:davidmpaz/reproduce-issue-666.git
git checkout exporter-as-server
docker-compose up -d
curl -s http://localhost:5566/metrics | grep java_lang_OperatingSystem_AvailableProcessors
git clone git@github.com:davidmpaz/reproduce-issue-666.git
git checkout exporter-as-agent
docker-compose up -d
curl -s http://localhost:5566/metrics | grep java_lang_OperatingSystem_AvailableProcessors
If changing branches to test after executing docker-compose up-d
, be sure to take down the stack with: docker-compose down
in order to start fresh again.