All Projects → go-pluto → Styx

go-pluto / Styx

Licence: mit
Export Data from Prometheus to csv, gnuplot & matplotlib

Programming Languages

go
31211 projects - #10 most used programming language

Projects that are alternatives of or similar to Styx

Prometheusalert
Prometheus Alert是开源的运维告警中心消息转发系统,支持主流的监控系统Prometheus,Zabbix,日志系统Graylog和数据可视化系统Grafana发出的预警消息,支持钉钉,微信,华为云短信,腾讯云短信,腾讯云电话,阿里云短信,阿里云电话等
Stars: ✭ 822 (+1145.45%)
Mutual labels:  prometheus, grafana
Iota Prom Exporter
Iota Exporter for Prometheus Metrics
Stars: ✭ 33 (-50%)
Mutual labels:  prometheus, grafana
Hana sql exporter
SAP Hana SQL Exporter for Prometheus
Stars: ✭ 18 (-72.73%)
Mutual labels:  prometheus, grafana
Grafterm
Metrics dashboards on terminal (a grafana inspired terminal version)
Stars: ✭ 613 (+828.79%)
Mutual labels:  prometheus, grafana
Druid Exporter
A Golang based exporter captures druid API related metrics and receives druid-emitting HTTP JSON data.
Stars: ✭ 54 (-18.18%)
Mutual labels:  prometheus, grafana
Spring Petclinic Microservices
Distributed version of Spring Petclinic built with Spring Cloud
Stars: ✭ 814 (+1133.33%)
Mutual labels:  prometheus, grafana
Catalyst
Typescript NodeJS Microservices Boilerplate with Generator CLI - Moleculer, GraphQL, REST, OAuth2, Jaeger, Grafana, Prometheus, Ory Hydra, Ory Keto w/ Access Control middleware, Moleculer-DB GraphQL mixin, Pug, Redis, sibling client repo (login, persistance layer, react-native-web, ios, android)
Stars: ✭ 30 (-54.55%)
Mutual labels:  prometheus, grafana
Docker monitoring logging alerting
Docker host and container monitoring, logging and alerting out of the box using cAdvisor, Prometheus, Grafana for monitoring, Elasticsearch, Kibana and Logstash for logging and elastalert and Alertmanager for alerting.
Stars: ✭ 479 (+625.76%)
Mutual labels:  prometheus, grafana
Grafana Prometheus Node Js Example
Step-by-step tutorial on creating beautiful dashboards for your Node JS application
Stars: ✭ 47 (-28.79%)
Mutual labels:  prometheus, grafana
Giropops Monitoring
Full stack tools for monitoring containers and other stuff. ;)
Stars: ✭ 1,019 (+1443.94%)
Mutual labels:  prometheus, grafana
Kube Eagle
A prometheus exporter created to provide a better overview of your resource allocation and utilization in a Kubernetes cluster.
Stars: ✭ 599 (+807.58%)
Mutual labels:  prometheus, grafana
Metric Collector For Apache Cassandra
Drop-in metrics collection and dashboards for Apache Cassandra
Stars: ✭ 62 (-6.06%)
Mutual labels:  prometheus, grafana
Swagger Stats
API Observability. Trace API calls and Monitor API performance, health and usage statistics in Node.js Microservices.
Stars: ✭ 559 (+746.97%)
Mutual labels:  prometheus, grafana
Prometheus
Kubernetes Setup for Prometheus and Grafana
Stars: ✭ 824 (+1148.48%)
Mutual labels:  prometheus, grafana
Prometheus Kubernetes
Monitoring Kubernetes clusters on AWS, GCP and Azure using Prometheus Operator and Grafana
Stars: ✭ 526 (+696.97%)
Mutual labels:  prometheus, grafana
Unifiedmetrics
Fully-featured metrics collection agent for Minecraft servers. Supports Prometheus and InfluxDB. Dashboard included out-of-box.
Stars: ✭ 29 (-56.06%)
Mutual labels:  prometheus, grafana
Cluster Monitoring
Cluster monitoring stack for clusters based on Prometheus Operator
Stars: ✭ 453 (+586.36%)
Mutual labels:  prometheus, grafana
Wizzy
Manage & automate Grafana with easy wizzy
Stars: ✭ 461 (+598.48%)
Mutual labels:  prometheus, grafana
Promcord
📊 Analyze your entire discord guild in grafana using prometheus. Message, User, Game and Voice statistics...
Stars: ✭ 39 (-40.91%)
Mutual labels:  prometheus, grafana
Reinvent2018 Dev303 Code
Code accompanying AWS re:Invent workshop DEV 303 showcasing how to get deep application insights using Amazon EKS with AWS X-Ray and Amazon CloudWatch.
Stars: ✭ 55 (-16.67%)
Mutual labels:  prometheus, grafana

styx

Export Prometheus data as CSV or directly plot with gnuplot & matplotlib.

Installation

go get -v -u github.com/go-pluto/styx

If you want to simply export data from Prometheus as CSV then you don't need to install any thing else.

Optional Dependencies

If you want to plot directly with gnuplot, you need to install gnuplot first.

gnuplot

brew install gnuplot # macOS
apt-get install gnuplot # Debian / Ubuntu
pacman -S gnuplot # ArchLinux

matplotlib

pip install matplotlib
pip2 install matplotlib # macOS

Usage

Once you've installed styx you can export data. My recommendation is to actually build the queries in the Prometheus UI only if you've played with the data there and you know which query is best, copy the query and use it to export the data with styx.

CSV

# export the data for the last hour from http://localhost:9090 
styx 'go_goroutines'
styx 'sum(go_goroutines)'
styx 'go_goroutines{job="prometheus"}'
styx 'go_goroutines > 100'
# export the data for the last 6 hours from http://localhost:9090
styx --duration 6h 'sum(go_goroutines)' 
# export the data from a specific prometheus for the last hour.
styx --prometheus http://prom.example.com 'sum(go_goroutines)' 

gnuplot

# plot the data for the last hour from http://localhost:9090
styx gnuplot 'sum(go_goroutines)' > goroutines.gnuplot
# plot the data for the last 6 hours from http://localhost:9090
styx gnuplot --duration 6h 'sum(go_goroutines)' > goroutines.gnuplot 
# plot the data from a specific prometheus for the last hour.
styx gnuplot --prometheus http://prom.example.com 'sum(go_goroutines)' > goroutines.gnuplot

Once you have written the generated content into a file you can use this to edit and plot the graph:

gnuplot -p < test.gnuplot

matplotlib

# plot the data for the last hour from http://localhost:9090
styx matplotlib 'sum(go_goroutines)' > goroutines.py
# plot the data for the last 6 hours from http://localhost:9090
styx matplotlib --duration 6h 'sum(go_goroutines)' > goroutines.py 
# plot the data from a specific prometheus for the last hour.
styx matplotlib --prometheus http://prom.example.com 'sum(go_goroutines)' > goroutines.py

Once you have written the generated content into a file you can use this to edit and plot the graph:

python goroutines.py
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].