GithubHelp home page GithubHelp logo

prom-cloud-analyser's Introduction

Prometheus Cloud Analyser

It is now part of https://github.com/grafana/cortex-tools

This repo contains a set of tools that can be run against your Grafana, Prometheus and Cortex clusters to analyse which metrics are actually being used and which metrics can be dropped.

grafana-analyse

This command will be run against your Grafana instance and it will download the dashboards and pick the Prometheus metrics that are used in the queries. The output is a JSON file.

Configuration

Env Variables Flag Description
GRAFANA_ADDRESS address Address of the Grafana instance.
GRAFANA_API_KEY key The API Key for the Grafana instance. Create a key using the following instructions: https://grafana.com/docs/grafana/latest/http_api/auth/
__ output The output file path. metrics-in-grafana.json by default.

Running the command

prom-cloud-analyser grafana-analyse --address=<grafana-address> --key=<API-Key>

prometheus-analyse

This command will be run against your Prometheus / GrafanaCloud instance and it will use the output from grafana-analyse show you how many series in the Prometheus server are actually being used in dashboards. The output is a JSON file

Configuration

Env Variables Flag Description
PROMETHEUS_ADDRESS address Address of the Prometheus instance.
PROMETHEUS_USER username If you're using GrafanaCloud this is your instance ID.
PROMETHEUS_PASSWORD password If you're using GrafanaCloud this is your API Key.
__ grafana-metrics-file The input file path. metrics-in-grafana.json by default.
__ output The output file path. prometheus-metrics.json by default.

Running the command

prom-cloud-analyser prometheus-analyse --address=https://prometheus-us-central1.grafana.net/api/prom --username=<1234> --password=<API-Key> --log.level=debug

License

Licensed Apache 2.0, see LICENSE.

prom-cloud-analyser's People

Contributors

gouthamve avatar

Stargazers

Nikolaos Dionelis avatar Jacob Colvin avatar Jeremy Henriques avatar

Watchers

James Cloos avatar  avatar  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.