- python2.7
- pip
pip install -r requirements.txt
./runserver.py
uwsgi -s /tmp/uwsgi.sock --module kpi_dash --callable app
Below is an example config.
---
brand: Heat KPI Dashboard
graphite: http://graphite.rs-heat.com
regions:
- dfw
- ord
- iad
- lon
- syd
- hkg
default_span: -7days
metrics:
- display_name: Percent 50x Responses
type: percent
unit: percent
null_zero: true
targets:
- 'removeAbovePercentile(sumSeries(hitcount(stats.heat.*_{region}_rs-heat_com.api.response_5*.requests, "30s")),90)'
- 'removeAbovePercentile(sumSeries(hitcount(stats.heat.*_{region}_rs-heat_com.api.response_2*.requests, "30s"),hitcount(stats.heat.*_{region}_rs-heat_com.api.response_3*.requests, "30s"),hitcount(stats.heat.*_{region}_rs-heat_com.api.response_4*.requests, "30s")),90)'
- display_name: Overall Average API Response Time
type: average
unit: seconds
null_zero: false
targets:
- 'removeAbovePercentile(averageSeries(stats.timers.heat.*_{region}_rs-heat_com.api.response_*.response_time.mean),90)'
brand
- The name displayed on the top left of the sitegraphite
- Address of the graphite serverregions
- List of region namesdefault_span
- Graphite relative time definitionmetrics
- Where you define the graphite calls and how they should be processeddisplay_name
- Pretty display name for the metricstype
-percent
,sum
, oraverage
unit
- Unit to displaytargets
- Array of Graphite targets. Forsum
andaverage
, a single target is expected. Forpercent
, two need to be supplied