Skip to content

alphagov/paas-prometheus-charts

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

paas-prometheus-charts

Overview

Generate SVG charts from PromQL queries to prometheus.

This repository was based on code from nivo.

Usage

PROM_URL=http://my.prom.server.local PROM_USERNAME=xxx PROM_PASSWORD=yyy npm start

then make PromQL requests to the server in the form:

http://localhost:3030/{CHART_TYPE}.svg?query={PROMETHESUS_QUERY}

For example:

Deploying to CF

Edit the manifest.yml to wire it up to prometheus:

---
applications:
- name: prometheus-charts
  command: node src/app.js
  memory: 256M
  buildpack: nodejs_buildpack
  env:
    PROM_URL: https://path-to-prom
    PROM_USERNAME: prom-user
    PROM_PASSWORD: prom-pass

then push

cf push

About

generate SVG charts for PromQL queries

Topics

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published