Skip to content

Commit

Permalink
Update spring dash scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
Jon Schneider committed Jun 14, 2018
1 parent 2110313 commit 3a18727
Show file tree
Hide file tree
Showing 7 changed files with 59 additions and 135 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,5 @@
#

management.security.enabled: false

management.metrics.export.prometheus.enabled: true
management.metrics.export.prometheus.enabled: true
management.metrics.distribution.percentiles-histogram.http: true
2 changes: 1 addition & 1 deletion scripts/spring-dash/grafana-dashboard.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apiVersion: 1

providers:
- name: 'default'
folder: ''
folder: 'Spring Boot'
type: file
options:
path: /etc/grafana/dashboards
Expand Down
3 changes: 2 additions & 1 deletion scripts/spring-dash/grafana.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,5 @@ docker run -i -p 3000:3000 \
-v $(pwd)/jvmgc-dashboard.json:/etc/grafana/dashboards/jvmgc.json \
-v $(pwd)/latency-dashboard.json:/etc/grafana/dashboards/latency.json \
-v $(pwd)/processor-dashboard.json:/etc/grafana/dashboards/processor.json \
grafana/grafana:5.0.1
grafana/grafana:5.1.0

52 changes: 13 additions & 39 deletions scripts/spring-dash/jvmgc-dashboard.json
Original file line number Diff line number Diff line change
@@ -1,34 +1,4 @@
{
"__inputs": [
{
"name": "DS_PROMETHEUS",
"label": "prometheus",
"description": "",
"type": "datasource",
"pluginId": "prometheus",
"pluginName": "Prometheus"
}
],
"__requires": [
{
"type": "grafana",
"id": "grafana",
"name": "Grafana",
"version": "5.1.0"
},
{
"type": "panel",
"id": "graph",
"name": "Graph",
"version": "5.0.0"
},
{
"type": "datasource",
"id": "prometheus",
"name": "Prometheus",
"version": "5.0.0"
}
],
"annotations": {
"list": [
{
Expand All @@ -46,15 +16,15 @@
"editable": true,
"gnetId": null,
"graphTooltip": 0,
"id": null,
"id": 2,
"links": [],
"panels": [
{
"aliasColors": {},
"bars": false,
"dashLength": 10,
"dashes": false,
"datasource": "${DS_PROMETHEUS}",
"datasource": "prometheus",
"fill": 0,
"gridPos": {
"h": 9,
Expand Down Expand Up @@ -176,7 +146,7 @@
"bars": false,
"dashLength": 10,
"dashes": false,
"datasource": "${DS_PROMETHEUS}",
"datasource": "prometheus",
"description": "Triggers when heap usage after major GC is over chosen threshold. If this gets too high it can lead to excessive stop the world pauses.",
"fill": 0,
"gridPos": {
Expand Down Expand Up @@ -223,20 +193,23 @@
"steppedLine": true,
"targets": [
{
"$$hashKey": "object:571",
"expr": "jvm_gc_live_data_size_bytes",
"format": "time_series",
"intervalFactor": 1,
"legendFormat": "Size of Old Gen after last GC",
"refId": "A"
},
{
"$$hashKey": "object:572",
"expr": "jvm_gc_max_data_size_bytes",
"format": "time_series",
"intervalFactor": 1,
"legendFormat": "Max size of Old Gen pool",
"refId": "B"
},
{
"$$hashKey": "object:573",
"expr": "jvm_gc_live_data_size_bytes/jvm_gc_max_data_size_bytes",
"format": "time_series",
"intervalFactor": 1,
Expand Down Expand Up @@ -298,7 +271,7 @@
"bars": false,
"dashLength": 10,
"dashes": false,
"datasource": "${DS_PROMETHEUS}",
"datasource": "prometheus",
"fill": 0,
"gridPos": {
"h": 9,
Expand Down Expand Up @@ -389,7 +362,7 @@
"bars": false,
"dashLength": 10,
"dashes": false,
"datasource": "${DS_PROMETHEUS}",
"datasource": "prometheus",
"fill": 0,
"gridPos": {
"h": 9,
Expand Down Expand Up @@ -473,7 +446,7 @@
"bars": false,
"dashLength": 10,
"dashes": false,
"datasource": "${DS_PROMETHEUS}",
"datasource": "prometheus",
"fill": 0,
"gridPos": {
"h": 9,
Expand Down Expand Up @@ -557,7 +530,7 @@
"bars": false,
"dashLength": 10,
"dashes": false,
"datasource": "${DS_PROMETHEUS}",
"datasource": "prometheus",
"fill": 0,
"gridPos": {
"h": 9,
Expand Down Expand Up @@ -643,7 +616,7 @@
"bars": false,
"dashLength": 10,
"dashes": false,
"datasource": "${DS_PROMETHEUS}",
"datasource": "prometheus",
"fill": 0,
"gridPos": {
"h": 9,
Expand Down Expand Up @@ -745,6 +718,7 @@
}
}
],
"refresh": "10s",
"schemaVersion": 16,
"style": "dark",
"tags": [],
Expand Down Expand Up @@ -783,5 +757,5 @@
"timezone": "",
"title": "JVM GC",
"uid": "kuhTd-Imz",
"version": 9
"version": 1
}
78 changes: 26 additions & 52 deletions scripts/spring-dash/latency-dashboard.json
Original file line number Diff line number Diff line change
@@ -1,43 +1,8 @@
{
"__inputs": [
{
"name": "DS_PROMETHEUS",
"label": "prometheus",
"description": "",
"type": "datasource",
"pluginId": "prometheus",
"pluginName": "Prometheus"
}
],
"__requires": [
{
"type": "grafana",
"id": "grafana",
"name": "Grafana",
"version": "5.1.0"
},
{
"type": "panel",
"id": "graph",
"name": "Graph",
"version": "5.0.0"
},
{
"type": "panel",
"id": "heatmap",
"name": "Heatmap",
"version": "5.0.0"
},
{
"type": "datasource",
"id": "prometheus",
"name": "Prometheus",
"version": "5.0.0"
}
],
"annotations": {
"list": [
{
"$$hashKey": "object:857",
"builtIn": 1,
"datasource": "-- Grafana --",
"enable": true,
Expand All @@ -51,16 +16,16 @@
"editable": true,
"gnetId": null,
"graphTooltip": 0,
"id": null,
"iteration": 1528496572444,
"id": 4,
"iteration": 1528999680036,
"links": [],
"panels": [
{
"aliasColors": {},
"bars": false,
"dashLength": 10,
"dashes": false,
"datasource": "${DS_PROMETHEUS}",
"datasource": "prometheus",
"fill": 0,
"gridPos": {
"h": 9,
Expand Down Expand Up @@ -179,7 +144,7 @@
"bars": false,
"dashLength": 10,
"dashes": false,
"datasource": "${DS_PROMETHEUS}",
"datasource": "prometheus",
"fill": 0,
"gridPos": {
"h": 9,
Expand Down Expand Up @@ -295,15 +260,15 @@
"cardRound": null
},
"color": {
"cardColor": "#cffaff",
"cardColor": "#33ff00",
"colorScale": "sqrt",
"colorScheme": "interpolateSpectral",
"exponent": 0.3,
"min": null,
"mode": "spectrum"
"mode": "opacity"
},
"dataFormat": "tsbuckets",
"datasource": "${DS_PROMETHEUS}",
"datasource": "prometheus",
"gridPos": {
"h": 9,
"w": 12,
Expand All @@ -319,7 +284,7 @@
"links": [],
"targets": [
{
"expr": "sum(rate(http_server_requests_seconds_bucket{le=~\"0\\\\.[0-1]\\\\d+\"}[1m])) by (le)",
"expr": "sum(rate(http_server_requests_seconds_bucket{le=~\"0\\\\.[0-4]\\\\d+|\\\\+Inf\"}[1m])) by (le)",
"format": "heatmap",
"instant": false,
"interval": "",
Expand Down Expand Up @@ -357,7 +322,7 @@
"bars": false,
"dashLength": 10,
"dashes": false,
"datasource": "${DS_PROMETHEUS}",
"datasource": "prometheus",
"fill": 0,
"gridPos": {
"h": 9,
Expand Down Expand Up @@ -445,8 +410,11 @@
"list": [
{
"allValue": null,
"current": {},
"datasource": "${DS_PROMETHEUS}",
"current": {
"text": "All",
"value": "$__all"
},
"datasource": "prometheus",
"hide": 0,
"includeAll": true,
"label": "Application",
Expand All @@ -465,8 +433,11 @@
},
{
"allValue": null,
"current": {},
"datasource": "${DS_PROMETHEUS}",
"current": {
"text": "All",
"value": "$__all"
},
"datasource": "prometheus",
"hide": 0,
"includeAll": true,
"label": "Cluster",
Expand All @@ -485,8 +456,11 @@
},
{
"allValue": null,
"current": {},
"datasource": "${DS_PROMETHEUS}",
"current": {
"text": "All",
"value": "$__all"
},
"datasource": "prometheus",
"hide": 0,
"includeAll": true,
"label": "Instance",
Expand Down Expand Up @@ -537,5 +511,5 @@
"timezone": "",
"title": "Latency",
"uid": "UfvgtJSmk",
"version": 19
"version": 2
}
Loading

0 comments on commit 3a18727

Please sign in to comment.