prometheus-multi-tenant-proxy-server

prometheus-multi-tenant-proxy-server

Tiny reverse proxy server to make Prometheus multi-tenant. This reverse proxy provides a little Authentication/Authorization layer on top of Prometheus and injects the target label into all user queries.

Where we need this project?

  • Where you need Authentication/Authorization for Prometheus.
  • Where you need to restrict users to be able to access a set of metrics.
  • Where you need to implement Multi-tenancy based on specific metric labels.
  • Where you need a proxy to check what the user does in your system.

Architecture:

Here is the big picture of the architecture to monitor Kubernetes cluster in a multi-tenant model.

prometheus-multi-tenant-proxy-server

Get started guide:

You can deploy prometheus-multi-tenant-proxy-server anywhere. However, we prepared several Kubernetes resources – Helm chart and Kustomize files – to help you quickly deploy this project into Kubernetes.

To create a proper config, see examples under the examples directory.

Helm chart installation:

helm install prometheus-multi-tenant-proxy-server \
  ./deployments/chart/ \
  -n prometheus \
  --create-namespace \
  -f YOURVALUES.yaml

Kustomize installation:

kubectl apply -k deployments/kustomize

Docker installation:

docker run --name prometheus-multi-tenant-proxy-server -d -p 9999:9999 \
  -v /path/to/your/config.yaml:/opt/config/config.yaml \
  ssbostan/prometheus-multi-tenant-proxy-server:latest

Related materials:

Copyright 2023 Saeid Bostandoust ssbostan@yahoo.com

Visit original content creator repository https://github.com/ssbostan/prometheus-multi-tenant-proxy-server

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *