Giter VIP home page Giter VIP logo

thanos-querier-prometheus-sd's Introduction

thanos-querier-prometheus-sd

A simple service to watch Kubernetes Prometheus custom resource instances and write the gathered targets to a service discovery file for the Thanos querier.

Overview

This service currently has a very simple, rudimentary implementation. It lists all services in its Kubernetes cluster that contain a specific label key-value pairing (operated-prometheus=true), which is set by the Prometheus operator. From each service it builds a DNSSRV record and adds that to a target list to be written out as a YAML file for ingestion by a Thanos Querier. This service will then wait for a specified interval, after which it will relist and rewrite the file.

The intended use case here is to run this as a sidecar container that writes out the result file to a shared volume with a Thanos Querier configured to read additional targets from the shared volume.

Usage

At present there are only two CLI flags that can be set: the wait interval duration, and the output file location.

CLI Flag Default Description
interval 10000 The number of milliseconds to wait before regenerating the targets file.
output-file /tmp/tqsd/result.yaml The filesystem location of the output targets file.

thanos-querier-prometheus-sd's People

Contributors

celestialorb avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.