ZhengzheYang / sd-for-vm-telemetry-1

This repo contains an experimental feature to support VM telemetry with file-based service discovery of Prometheus.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

This repo contains an experimental feature to support VM telemetry with file-based service discovery of Prometheus.

License:Apache License 2.0


Languages

Language:Go 86.7%Language:Makefile 12.0%Language:Dockerfile 1.3%