Giter Site home page Giter Site logo

promplot's Introduction

PromPlot

Plot Prometheus metrics in CLI/GUI

  • Realtime 2D/3D plotting, in CLI and GUI
  • Load Grafana dashboards locally from dashboard JSON
  • Interactive GUI allows for easy filtering of data for better visualization

Notice

I am currently looking for work. If you would like to have me on your team, please reach out to [email protected]

Demo

Grafana dashboard loaded via JSON model

Example Grafana Dashboard Replica 2D/3D Plot in Realtime

Realtime CLI Plotting

Example PromPlot 2D CLI Plot in Realtime

Getting started

Making this application installable via krew is in the roadmap and will hopefully be the preferred method of installation in the future.

Quick Start

  1. julia (start REPL)
  2. ] activate .
  3. ] instantiate
  4. exit()
  5. julia --project=. PromPlot.jl --promql "idelta((sum by (method, path) (kubelet_http_requests_duration_seconds_sum))[24h:])" --url "http://prometheus.my-cluster.k8s.internal:9090"
  6. Replace the --url argument with your Prometheus server

To run a Grafana dashboard

  1. julia --project=. PromPlot.jl --dashboard="./dashboards/example.json" --url "http://prometheus.my-cluster.k8s.internal:9090"

Available options:

usage: PromPlot.jl [--promql PROMQL] [--gui GUI] [--tui TUI]
                   [--limit LIMIT] [--url URL] [--is3d IS3D]
                   [--start START] [--end END] [--step STEP]
                   [--realtime REALTIME]
                   [--realtime-update REALTIME_UPDATE]
                   [--realtime-range REALTIME_RANGE] [-h]

optional arguments:
  --promql PROMQL       Prometheus PromQL Query (required)
  --gui GUI             Plot in GUI - Required for 3D Mode (type: Bool, default: false)
  --tui TUI             Plot in CLI/TUI (type: Bool, default: true)
  --limit LIMIT         Maximum number of series to plot (type: Int64, default: 25)
  --url URL             Prometheus URL (default: "http://localhost:9090")
  --is3d IS3D           Start in 3D Plotting Mode (default: false)
  --start START         Query Start Date (default = now(UTC) - 2h)
  --end END             Query End Date (default = now(UTC))
  --step STEP           Query Resolution (default: "1m")
  --realtime REALTIME   Enable realtime updates (type: Bool, default: true)
  --realtime-update     Realtime update interval (default: "5s")
  --realtime-range      Realtime update range (default: "1h")
  -h, --help            show this help message and exit

promplot's People

Contributors

gsalaz98 avatar

Stargazers

lildede123 avatar d0nut avatar goproslowyo avatar Mihai Todor 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.