GithubHelp home page GithubHelp logo

j-mascarenhas-tc / istio-federated-prometheus Goto Github PK

View Code? Open in Web Editor NEW

This project forked from jotak/istio-federated-prometheus

0.0 0.0 0.0 24 KB

Some templates & Makefile to setup federated Prometheus for Istio

License: Apache License 2.0

Makefile 100.00%

istio-federated-prometheus's Introduction

Istio Federated Prometheus

Some templates & Makefile to setup federated Prometheus for Istio.

These steps assume Istio 1.5 (or above) is already installed in namespace istio-system.

Production-ready Istio #1

Built after this guide: https://istio.io/docs/ops/best-practices/observability/#using-prometheus-for-production-scale-monitoring

make istio-prod-ready-1

This is going to:

  • Amend the existing prometheus from istio-system (reducing metrics retention, setting up config with rewiting rules)
  • Create a "master" prometheus, with longer retention, and that reads from the former.

Note: there is a known issue with this guide, about summing metrics before getting their rates, also mentioned here: https://discuss.istio.io/t/feedback-requested-production-monitoring-with-prometheus/5685.

Assuming Kiali is deployed with kiali-operator, you can amend Kiali configuration to point to "master" prometheus:

make patch-kiali-1

Production-ready Istio #2

Similar to the former, but avoids the pitfall of summing before rating (in other words: without a bug).

But it comes with a serious drawback: consumers (Grafana, Kiali ...) would be broken. So Grafana dashboards would need to be updated. And for Kiali, that's a different story, no fix available yet (but it can still point to Istio's Prometheus w/o problem).

make istio-prod-ready-2

For Kiali, the recommended configuration would be then to keep pointing to Istio's Prometheus, and have the alternative Prometheus URL pointing to the "master" Prometheus, and install two additional dashboards to show the metrics with longer retention.

Assuming Kiali is deployed with kiali-operator:

make patch-kiali-2

Exposing "master" Prometheus

make expose

Exposes the "master" prometheus via port-forward to http://localhost:9091

istio-federated-prometheus's People

Contributors

jotak 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.