Unofficial twemproxy exporter for Prometheus.
on default, the exporter will listen to localhost:22222
The Dockerfile is located here https://github.com/ecobee/epc/blob/main/docker/twemproxy_exporter/Dockerfile it will pull the main branch and build using it.
In the directory with the Dockerfile, run docker build . -t gcr.io/platform-prod-618b7383/rke/twemproxy_exporter:<timestamp>
timestamp format is yyyymmddHHMMSS and can be got by timestamp=$(date +%Y%m%d%H%M%S) && echo $timestamp
USE docker build --platform linux/amd64 if building on an M1 Mac
Manually push the built docker image to gcr using docker push gcr.io/platform-prod-618b7383/rke/twemproxy_exporter:<timestamp>
, then update the tag wherever you are using the container to the new timestamp
tag
go get -u github.com/albert-widi/twemproxy_exporter
twemproxy_exporter -config=path/to/config -twemphost=localhost22222