Skip to content

Latest commit

 

History

History
31 lines (28 loc) · 1.15 KB

README.md

File metadata and controls

31 lines (28 loc) · 1.15 KB

Service Discovery for VM Telemetry

Overview

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.

Usage

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