This repo contains an experimental feature to support VM
telemetry with file-based service discovery of Prometheus.
For more information, one could access the RFC here.
This repo provides the code to build the binary, which is
hosted on Docker hub.
The container will be deployed along with Prometheus as
a sidecar, which will watch for
the updates to the workload entries registered with VMs, and
write the endpoint IP to a config map. The config map will then
be mounted by the Prometheus as file, thus the service discovery.
A sample of Prometheus deployment could be found in samples/prometheus.yaml
.
To build the binary, simply run:
make build
The binary will be written to out
directory.
To build the docker image, simply run:
make docker
To build the docker image and push, update the DOCKER_REPO
and run:
make docker.push