Skip to content

benbaker76/metrics-filter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

metrics-filter

description

Metrics-filter is a service that allows you to request metrics in Prometheus format and filter them according to the allow and block lists.

This is a Golang port of metrics-filter

The service's workflow is:

graph TD
    A[Remote metrics, ENV REMOTE_METRICS_ENDPOINT] -->B
    B[Allow list rules, ENV ALLOW_LIST] --> C
    C[Block list rules, ENV BLOCK_LIST] --> D
    D[Provide metrics on the $HOST:$PORT/metrics endpoint]

quick-start

  1. Clone this repository and run go build or docker-compose build.

  2. Run node-exporter as metrics source and metrics-filter with examples rules, docker-compose up -d.

Environment Variables

These are the environment variables understood by the container image.

Variable Description
HOST Address to bind the service, 0.0.0.0 by default
PORT Port to bind the service, 9200 by default
REMOTE_METRICS_ENDPOINT Source of metrics in the format protocol://address:port/metricsendpoint
ALLOW_LIST List of keywords to keep metrics, can be , ; | separated
BLOCK_LIST List of keywords to filter out metrics, can be , ; | separated

About

Simple service to filter prometheus metrics using allow/block-list

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published