Page MenuHomeSoftware Heritage

D6871.id24917.diff
No OneTemporary

D6871.id24917.diff

diff --git a/data/deployments/admin/common.yaml b/data/deployments/admin/common.yaml
--- a/data/deployments/admin/common.yaml
+++ b/data/deployments/admin/common.yaml
@@ -2,17 +2,22 @@
swh::deploy::reverse_proxy::services:
- hedgedoc
+ - grafana
swh::postgresql::shared_buffers: 4GB
swh::deploy::hedgedoc::reverse_proxy::backend_http_host: bardo.internal.admin.swh.network
swh::deploy::hedgedoc::reverse_proxy::backend_http_port: "3000"
swh::deploy::hedgedoc::reverse_proxy::websocket_support: true
-
swh::deploy::hedgedoc::base_url: hedgedoc.softwareheritage.org
swh::deploy::hedgedoc::vhost::letsencrypt_cert: hedgedoc
+swh::deploy::grafana::vhost::letsencrypt_cert: "%{lookup('grafana::vhost::name')}"
+swh::deploy::grafana::reverse_proxy::backend_http_host: grafana0.internal.admin.swh.network
+swh::deploy::grafana::reverse_proxy::backend_http_port: "3000"
+swh::deploy::grafana::reverse_proxy::websocket_support: true
+swh::deploy::grafana::base_url: "%{lookup('grafana::vhost::name')}"
+
hitch::frontend: "[*]:443"
hitch::proxy_support: true
varnish::http_port: 80
-
diff --git a/data/hostname/grafana0.internal.admin.swh.network.yaml b/data/hostname/grafana0.internal.admin.swh.network.yaml
new file mode 100644
--- /dev/null
+++ b/data/hostname/grafana0.internal.admin.swh.network.yaml
@@ -0,0 +1,22 @@
+
+swh::postgresql::version: '13'
+
+swh::postgresql::port: 5432
+swh::postgresql::cluster_name: "%{lookup('swh::postgresql::version')}/main"
+swh::postgresql::datadir_base: "/var/lib/postgres"
+swh::postgresql::datadir: "%{lookup('swh::postgresql::datadir_base')}/%{lookup('swh::postgresql::cluster_name')}"
+swh::postgresql::listen_addresses:
+ - 127.0.01
+# swh::postgresql::network_accesses:
+# - 192.168.100.0/24 # Monitoring
+# - 192.168.130.0/24 # Staging services
+
+swh::dbs:
+ storage:
+ name: "%{lookup('grafana::db::database')}"
+ user: "%{lookup('grafana::db::username')}"
+
+swh::deploy::storage::db::password: "%{lookup('grafana::db::password')}"
+
+prometheus::sql::config_snippets:
+ - grafana
diff --git a/data/subnets/vagrant.yaml b/data/subnets/vagrant.yaml
--- a/data/subnets/vagrant.yaml
+++ b/data/subnets/vagrant.yaml
@@ -81,6 +81,8 @@
host: rp1.internal.admin.swh.network
aliases:
- hedgedoc.softwareheritage.org
+ 10.168.50.30:
+ host: grafana0.internal.admin.swh.network
10.168.100.18:
host: banco.internal.softwareheritage.org
aliases:
@@ -95,7 +97,6 @@
aliases:
- pergamon.softwareheritage.org
- icinga.internal.softwareheritage.org
- - grafana.softwareheritage.org
- stats.export.softwareheritage
10.168.100.30:
host: jenkins.softwareheritage.org
@@ -200,6 +201,7 @@
- webapp.staging.swh.network
- deposit.staging.swh.network
- objstorage.staging.swh.network
+ - grafana.softwareheritage.org
10.168.130.30:
host: webapp.internal.staging.swh.network
10.168.130.31:
diff --git a/manifests/site.pp b/manifests/site.pp
--- a/manifests/site.pp
+++ b/manifests/site.pp
@@ -12,6 +12,10 @@
include role::swh_sysadmin
}
+node 'grafana0.internal.admin.swh.network' {
+ include role::swh_grafana
+}
+
node 'tate.softwareheritage.org' {
include role::swh_forge
}
diff --git a/site-modules/profile/files/grafana/dashboards/Readme.txt b/site-modules/profile/files/grafana/dashboards/Readme.txt
new file mode 100644
--- /dev/null
+++ b/site-modules/profile/files/grafana/dashboards/Readme.txt
@@ -0,0 +1,3 @@
+Dashboard are generated from the swh-grafana-dashboard project
+
+https://forge.softwareheritage.org/source/swh-grafana-dashboards/
diff --git a/site-modules/profile/files/grafana/dashboards/grafanalib.cpu.temperatures.json b/site-modules/profile/files/grafana/dashboards/grafanalib.cpu.temperatures.json
new file mode 100644
--- /dev/null
+++ b/site-modules/profile/files/grafana/dashboards/grafanalib.cpu.temperatures.json
@@ -0,0 +1,385 @@
+{
+ "__inputs": [],
+ "annotations": {
+ "list": []
+ },
+ "description": "",
+ "editable": true,
+ "gnetId": null,
+ "hideControls": false,
+ "id": null,
+ "links": [],
+ "panels": [],
+ "refresh": "10s",
+ "rows": [
+ {
+ "collapse": false,
+ "editable": true,
+ "height": "250px",
+ "panels": [
+ {
+ "aliasColors": {},
+ "bars": false,
+ "cacheTimeout": null,
+ "datasource": "Prometheus (Pergamon)",
+ "description": null,
+ "editable": true,
+ "error": false,
+ "fill": 1,
+ "grid": {
+ "threshold1": null,
+ "threshold1Color": "rgba(216, 200, 27, 0.27)",
+ "threshold2": null,
+ "threshold2Color": "rgba(234, 112, 112, 0.22)"
+ },
+ "gridPos": null,
+ "height": null,
+ "hideTimeOverride": false,
+ "id": 1,
+ "interval": null,
+ "isNew": true,
+ "legend": {
+ "alignAsTable": false,
+ "avg": false,
+ "current": false,
+ "hideEmpty": false,
+ "hideZero": false,
+ "max": false,
+ "min": false,
+ "rightSide": false,
+ "show": true,
+ "sideWidth": null,
+ "sort": null,
+ "sortDesc": false,
+ "total": false,
+ "values": false
+ },
+ "lines": true,
+ "linewidth": 2,
+ "links": [],
+ "maxDataPoints": 100,
+ "maxPerRow": null,
+ "minSpan": null,
+ "nullPointMode": "connected",
+ "options": {
+ "alertThreshold": true,
+ "dataLinks": []
+ },
+ "percentage": false,
+ "pointradius": 5,
+ "points": false,
+ "renderer": "flot",
+ "repeat": null,
+ "repeatDirection": null,
+ "seriesOverrides": [],
+ "span": 6,
+ "stack": false,
+ "steppedLine": false,
+ "targets": [
+ {
+ "datasource": null,
+ "expr": "node_hwmon_temp_celsius{chip=\"platform_coretemp_$cpu_node\",sensor=\"temp1\",instance=\"$target\"}",
+ "format": "time_series",
+ "hide": false,
+ "instant": false,
+ "interval": "",
+ "intervalFactor": 2,
+ "legendFormat": "CPU temperature",
+ "metric": "",
+ "refId": "A",
+ "step": 10,
+ "target": ""
+ }
+ ],
+ "thresholds": [],
+ "timeFrom": null,
+ "timeShift": null,
+ "title": "CPU node $cpu_node temperature",
+ "tooltip": {
+ "msResolution": true,
+ "shared": true,
+ "sort": 0,
+ "value_type": "cumulative"
+ },
+ "transformations": [],
+ "transparent": false,
+ "type": "graph",
+ "xaxis": {
+ "mode": "time",
+ "name": null,
+ "show": true,
+ "values": []
+ },
+ "yaxes": [
+ {
+ "decimals": null,
+ "format": "short",
+ "label": null,
+ "logBase": 1,
+ "max": null,
+ "min": null,
+ "show": true
+ },
+ {
+ "decimals": null,
+ "format": "short",
+ "label": null,
+ "logBase": 1,
+ "max": null,
+ "min": null,
+ "show": true
+ }
+ ],
+ "yaxis": {
+ "align": false,
+ "alignLevel": 0
+ }
+ },
+ {
+ "aliasColors": {},
+ "bars": false,
+ "cacheTimeout": null,
+ "datasource": "Prometheus (Pergamon)",
+ "description": null,
+ "editable": true,
+ "error": false,
+ "fill": 1,
+ "grid": {
+ "threshold1": null,
+ "threshold1Color": "rgba(216, 200, 27, 0.27)",
+ "threshold2": null,
+ "threshold2Color": "rgba(234, 112, 112, 0.22)"
+ },
+ "gridPos": null,
+ "height": null,
+ "hideTimeOverride": false,
+ "id": 2,
+ "interval": null,
+ "isNew": true,
+ "legend": {
+ "alignAsTable": false,
+ "avg": false,
+ "current": false,
+ "hideEmpty": false,
+ "hideZero": false,
+ "max": false,
+ "min": false,
+ "rightSide": false,
+ "show": true,
+ "sideWidth": null,
+ "sort": null,
+ "sortDesc": false,
+ "total": false,
+ "values": false
+ },
+ "lines": true,
+ "linewidth": 2,
+ "links": [],
+ "maxDataPoints": 100,
+ "maxPerRow": null,
+ "minSpan": null,
+ "nullPointMode": "connected",
+ "options": {
+ "alertThreshold": true,
+ "dataLinks": []
+ },
+ "percentage": false,
+ "pointradius": 5,
+ "points": false,
+ "renderer": "flot",
+ "repeat": null,
+ "repeatDirection": null,
+ "seriesOverrides": [],
+ "span": 6,
+ "stack": false,
+ "steppedLine": false,
+ "targets": [
+ {
+ "datasource": null,
+ "expr": "node_hwmon_temp_celsius{chip=\"platform_coretemp_$cpu_node\",sensor=\"temp1\",instance=\"$target\"}",
+ "format": "time_series",
+ "hide": false,
+ "instant": false,
+ "interval": "",
+ "intervalFactor": 2,
+ "legendFormat": "CPU temperature",
+ "metric": "",
+ "refId": "A",
+ "step": 10,
+ "target": ""
+ }
+ ],
+ "thresholds": [],
+ "timeFrom": "1y",
+ "timeShift": null,
+ "title": "CPU node $cpu_node temperature",
+ "tooltip": {
+ "msResolution": true,
+ "shared": true,
+ "sort": 0,
+ "value_type": "cumulative"
+ },
+ "transformations": [],
+ "transparent": false,
+ "type": "graph",
+ "xaxis": {
+ "mode": "time",
+ "name": null,
+ "show": true,
+ "values": []
+ },
+ "yaxes": [
+ {
+ "decimals": null,
+ "format": "short",
+ "label": null,
+ "logBase": 1,
+ "max": null,
+ "min": null,
+ "show": true
+ },
+ {
+ "decimals": null,
+ "format": "short",
+ "label": null,
+ "logBase": 1,
+ "max": null,
+ "min": null,
+ "show": true
+ }
+ ],
+ "yaxis": {
+ "align": false,
+ "alignLevel": 0
+ }
+ }
+ ],
+ "repeat": "cpu_node",
+ "showTitle": true,
+ "title": "CPU node $cpu_node"
+ }
+ ],
+ "schemaVersion": 12,
+ "sharedCrosshair": false,
+ "style": "dark",
+ "tags": [],
+ "templating": {
+ "list": [
+ {
+ "allValue": null,
+ "auto": false,
+ "auto_count": 30,
+ "auto_min": "10s",
+ "current": {
+ "selected": false,
+ "tags": [],
+ "text": null,
+ "value": null
+ },
+ "datasource": "Prometheus (Pergamon)",
+ "hide": 0,
+ "includeAll": false,
+ "label": "",
+ "multi": false,
+ "name": "host",
+ "options": [],
+ "query": "node_uname_info{instance=\"$target\"}",
+ "refresh": 1,
+ "regex": "/nodename=\"([^\"]*)\"/",
+ "sort": 1,
+ "tagValuesQuery": null,
+ "tagsQuery": null,
+ "type": "query",
+ "useTags": false
+ },
+ {
+ "allValue": null,
+ "auto": false,
+ "auto_count": 30,
+ "auto_min": "10s",
+ "current": {
+ "selected": false,
+ "tags": [],
+ "text": null,
+ "value": null
+ },
+ "datasource": "Prometheus (Pergamon)",
+ "hide": 0,
+ "includeAll": false,
+ "label": "",
+ "multi": false,
+ "name": "target",
+ "options": [],
+ "query": "node_hwmon_temp_celsius",
+ "refresh": 1,
+ "regex": "/instance=\"([^\"]*)\"/",
+ "sort": 1,
+ "tagValuesQuery": null,
+ "tagsQuery": null,
+ "type": "query",
+ "useTags": false
+ },
+ {
+ "allValue": null,
+ "auto": false,
+ "auto_count": 30,
+ "auto_min": "10s",
+ "current": {
+ "selected": true,
+ "tags": [],
+ "text": "All",
+ "value": "All"
+ },
+ "datasource": "Prometheus (Pergamon)",
+ "hide": 2,
+ "includeAll": true,
+ "label": "",
+ "multi": false,
+ "name": "cpu_node",
+ "options": [],
+ "query": "node_hwmon_temp_celsius{instance=\"$target\"}",
+ "refresh": 1,
+ "regex": "/chip=\"platform_coretemp_([0-9]*)\"/",
+ "sort": 1,
+ "tagValuesQuery": null,
+ "tagsQuery": null,
+ "type": "query",
+ "useTags": false
+ }
+ ]
+ },
+ "time": {
+ "from": "now-1h",
+ "to": "now"
+ },
+ "timepicker": {
+ "hidden": false,
+ "refresh_intervals": [
+ "5s",
+ "10s",
+ "30s",
+ "1m",
+ "5m",
+ "15m",
+ "30m",
+ "1h",
+ "2h",
+ "1d"
+ ],
+ "time_options": [
+ "5m",
+ "15m",
+ "1h",
+ "6h",
+ "12h",
+ "24h",
+ "2d",
+ "7d",
+ "30d"
+ ]
+ },
+ "timezone": "utc",
+ "title": "CPU temperatures auto-generated",
+ "uid": null,
+ "version": 0
+}
diff --git a/site-modules/profile/files/grafana/dashboards/grafanalib.cpu.usage.json b/site-modules/profile/files/grafana/dashboards/grafanalib.cpu.usage.json
new file mode 100644
--- /dev/null
+++ b/site-modules/profile/files/grafana/dashboards/grafanalib.cpu.usage.json
@@ -0,0 +1,581 @@
+{
+ "__inputs": [],
+ "annotations": {
+ "list": []
+ },
+ "description": "",
+ "editable": true,
+ "gnetId": null,
+ "hideControls": false,
+ "id": null,
+ "links": [],
+ "panels": [],
+ "refresh": "10s",
+ "rows": [
+ {
+ "collapse": false,
+ "editable": true,
+ "height": "250px",
+ "panels": [
+ {
+ "aliasColors": {},
+ "bars": false,
+ "cacheTimeout": null,
+ "datasource": "Prometheus (Pergamon)",
+ "description": null,
+ "editable": true,
+ "error": false,
+ "fill": 1,
+ "grid": {
+ "threshold1": null,
+ "threshold1Color": "rgba(216, 200, 27, 0.27)",
+ "threshold2": null,
+ "threshold2Color": "rgba(234, 112, 112, 0.22)"
+ },
+ "gridPos": null,
+ "height": null,
+ "hideTimeOverride": false,
+ "id": 1,
+ "interval": null,
+ "isNew": true,
+ "legend": {
+ "alignAsTable": false,
+ "avg": false,
+ "current": false,
+ "hideEmpty": false,
+ "hideZero": false,
+ "max": false,
+ "min": false,
+ "rightSide": false,
+ "show": true,
+ "sideWidth": null,
+ "sort": null,
+ "sortDesc": false,
+ "total": false,
+ "values": false
+ },
+ "lines": true,
+ "linewidth": 2,
+ "links": [],
+ "maxDataPoints": 100,
+ "maxPerRow": null,
+ "minSpan": null,
+ "nullPointMode": "connected",
+ "options": {
+ "alertThreshold": true,
+ "dataLinks": []
+ },
+ "percentage": true,
+ "pointradius": 5,
+ "points": false,
+ "renderer": "flot",
+ "repeat": null,
+ "repeatDirection": null,
+ "seriesOverrides": [],
+ "span": 6,
+ "stack": true,
+ "steppedLine": false,
+ "targets": [
+ {
+ "datasource": null,
+ "expr": "irate(node_cpu_seconds_total{instance=\"$target\",cpu=\"$cpu\",mode=\"system\"}[5m])",
+ "format": "time_series",
+ "hide": false,
+ "instant": false,
+ "interval": "",
+ "intervalFactor": 2,
+ "legendFormat": "system time",
+ "metric": "",
+ "refId": "A",
+ "step": 10,
+ "target": ""
+ },
+ {
+ "datasource": null,
+ "expr": "irate(node_cpu_seconds_total{instance=\"$target\",cpu=\"$cpu\",mode=\"irq\"}[5m])",
+ "format": "time_series",
+ "hide": false,
+ "instant": false,
+ "interval": "",
+ "intervalFactor": 2,
+ "legendFormat": "irq",
+ "metric": "",
+ "refId": "B",
+ "step": 10,
+ "target": ""
+ },
+ {
+ "datasource": null,
+ "expr": "irate(node_cpu_seconds_total{instance=\"$target\",cpu=\"$cpu\",mode=\"softirq\"}[5m])",
+ "format": "time_series",
+ "hide": false,
+ "instant": false,
+ "interval": "",
+ "intervalFactor": 2,
+ "legendFormat": "softirq",
+ "metric": "",
+ "refId": "C",
+ "step": 10,
+ "target": ""
+ },
+ {
+ "datasource": null,
+ "expr": "irate(node_cpu_seconds_total{instance=\"$target\",cpu=\"$cpu\",mode=\"user\"}[5m])",
+ "format": "time_series",
+ "hide": false,
+ "instant": false,
+ "interval": "",
+ "intervalFactor": 2,
+ "legendFormat": "user time",
+ "metric": "",
+ "refId": "D",
+ "step": 10,
+ "target": ""
+ },
+ {
+ "datasource": null,
+ "expr": "irate(node_cpu_seconds_total{instance=\"$target\",cpu=\"$cpu\",mode=\"nice\"}[5m])",
+ "format": "time_series",
+ "hide": false,
+ "instant": false,
+ "interval": "",
+ "intervalFactor": 2,
+ "legendFormat": "nice",
+ "metric": "",
+ "refId": "E",
+ "step": 10,
+ "target": ""
+ },
+ {
+ "datasource": null,
+ "expr": "irate(node_cpu_seconds_total{instance=\"$target\",cpu=\"$cpu\",mode=\"idle\"}[5m])",
+ "format": "time_series",
+ "hide": false,
+ "instant": false,
+ "interval": "",
+ "intervalFactor": 2,
+ "legendFormat": "idle",
+ "metric": "",
+ "refId": "F",
+ "step": 10,
+ "target": ""
+ },
+ {
+ "datasource": null,
+ "expr": "irate(node_cpu_seconds_total{instance=\"$target\",cpu=\"$cpu\",mode=\"iowait\"}[5m])",
+ "format": "time_series",
+ "hide": false,
+ "instant": false,
+ "interval": "",
+ "intervalFactor": 2,
+ "legendFormat": "iowait",
+ "metric": "",
+ "refId": "G",
+ "step": 10,
+ "target": ""
+ },
+ {
+ "datasource": null,
+ "expr": "irate(node_cpu_seconds_total{instance=\"$target\",cpu=\"$cpu\",mode=\"steal\"}[5m])",
+ "format": "time_series",
+ "hide": false,
+ "instant": false,
+ "interval": "",
+ "intervalFactor": 2,
+ "legendFormat": "steal",
+ "metric": "",
+ "refId": "H",
+ "step": 10,
+ "target": ""
+ }
+ ],
+ "thresholds": [],
+ "timeFrom": null,
+ "timeShift": null,
+ "title": "CPU $cpu usage",
+ "tooltip": {
+ "msResolution": true,
+ "shared": true,
+ "sort": 0,
+ "value_type": "cumulative"
+ },
+ "transformations": [],
+ "transparent": false,
+ "type": "graph",
+ "xaxis": {
+ "mode": "time",
+ "name": null,
+ "show": true,
+ "values": []
+ },
+ "yaxes": [
+ {
+ "decimals": null,
+ "format": "percentunit",
+ "label": null,
+ "logBase": 1,
+ "max": null,
+ "min": null,
+ "show": true
+ },
+ {
+ "decimals": null,
+ "format": "short",
+ "label": null,
+ "logBase": 1,
+ "max": null,
+ "min": null,
+ "show": true
+ }
+ ],
+ "yaxis": {
+ "align": false,
+ "alignLevel": 0
+ }
+ },
+ {
+ "aliasColors": {},
+ "bars": false,
+ "cacheTimeout": null,
+ "datasource": "Prometheus (Pergamon)",
+ "description": null,
+ "editable": true,
+ "error": false,
+ "fill": 1,
+ "grid": {
+ "threshold1": null,
+ "threshold1Color": "rgba(216, 200, 27, 0.27)",
+ "threshold2": null,
+ "threshold2Color": "rgba(234, 112, 112, 0.22)"
+ },
+ "gridPos": null,
+ "height": null,
+ "hideTimeOverride": false,
+ "id": 2,
+ "interval": null,
+ "isNew": true,
+ "legend": {
+ "alignAsTable": false,
+ "avg": false,
+ "current": false,
+ "hideEmpty": false,
+ "hideZero": false,
+ "max": false,
+ "min": false,
+ "rightSide": false,
+ "show": true,
+ "sideWidth": null,
+ "sort": null,
+ "sortDesc": false,
+ "total": false,
+ "values": false
+ },
+ "lines": true,
+ "linewidth": 2,
+ "links": [],
+ "maxDataPoints": 100,
+ "maxPerRow": null,
+ "minSpan": null,
+ "nullPointMode": "connected",
+ "options": {
+ "alertThreshold": true,
+ "dataLinks": []
+ },
+ "percentage": true,
+ "pointradius": 5,
+ "points": false,
+ "renderer": "flot",
+ "repeat": null,
+ "repeatDirection": null,
+ "seriesOverrides": [],
+ "span": 6,
+ "stack": true,
+ "steppedLine": false,
+ "targets": [
+ {
+ "datasource": null,
+ "expr": "irate(node_cpu_seconds_total{instance=\"$target\",cpu=\"$cpu\",mode=\"system\"}[5m])",
+ "format": "time_series",
+ "hide": false,
+ "instant": false,
+ "interval": "",
+ "intervalFactor": 2,
+ "legendFormat": "system time",
+ "metric": "",
+ "refId": "A",
+ "step": 10,
+ "target": ""
+ },
+ {
+ "datasource": null,
+ "expr": "irate(node_cpu_seconds_total{instance=\"$target\",cpu=\"$cpu\",mode=\"irq\"}[5m])",
+ "format": "time_series",
+ "hide": false,
+ "instant": false,
+ "interval": "",
+ "intervalFactor": 2,
+ "legendFormat": "irq",
+ "metric": "",
+ "refId": "B",
+ "step": 10,
+ "target": ""
+ },
+ {
+ "datasource": null,
+ "expr": "irate(node_cpu_seconds_total{instance=\"$target\",cpu=\"$cpu\",mode=\"softirq\"}[5m])",
+ "format": "time_series",
+ "hide": false,
+ "instant": false,
+ "interval": "",
+ "intervalFactor": 2,
+ "legendFormat": "softirq",
+ "metric": "",
+ "refId": "C",
+ "step": 10,
+ "target": ""
+ },
+ {
+ "datasource": null,
+ "expr": "irate(node_cpu_seconds_total{instance=\"$target\",cpu=\"$cpu\",mode=\"user\"}[5m])",
+ "format": "time_series",
+ "hide": false,
+ "instant": false,
+ "interval": "",
+ "intervalFactor": 2,
+ "legendFormat": "user time",
+ "metric": "",
+ "refId": "D",
+ "step": 10,
+ "target": ""
+ },
+ {
+ "datasource": null,
+ "expr": "irate(node_cpu_seconds_total{instance=\"$target\",cpu=\"$cpu\",mode=\"nice\"}[5m])",
+ "format": "time_series",
+ "hide": false,
+ "instant": false,
+ "interval": "",
+ "intervalFactor": 2,
+ "legendFormat": "nice",
+ "metric": "",
+ "refId": "E",
+ "step": 10,
+ "target": ""
+ },
+ {
+ "datasource": null,
+ "expr": "irate(node_cpu_seconds_total{instance=\"$target\",cpu=\"$cpu\",mode=\"idle\"}[5m])",
+ "format": "time_series",
+ "hide": false,
+ "instant": false,
+ "interval": "",
+ "intervalFactor": 2,
+ "legendFormat": "idle",
+ "metric": "",
+ "refId": "F",
+ "step": 10,
+ "target": ""
+ },
+ {
+ "datasource": null,
+ "expr": "irate(node_cpu_seconds_total{instance=\"$target\",cpu=\"$cpu\",mode=\"iowait\"}[5m])",
+ "format": "time_series",
+ "hide": false,
+ "instant": false,
+ "interval": "",
+ "intervalFactor": 2,
+ "legendFormat": "iowait",
+ "metric": "",
+ "refId": "G",
+ "step": 10,
+ "target": ""
+ },
+ {
+ "datasource": null,
+ "expr": "irate(node_cpu_seconds_total{instance=\"$target\",cpu=\"$cpu\",mode=\"steal\"}[5m])",
+ "format": "time_series",
+ "hide": false,
+ "instant": false,
+ "interval": "",
+ "intervalFactor": 2,
+ "legendFormat": "steal",
+ "metric": "",
+ "refId": "H",
+ "step": 10,
+ "target": ""
+ }
+ ],
+ "thresholds": [],
+ "timeFrom": "1y",
+ "timeShift": null,
+ "title": "CPU $cpu usage",
+ "tooltip": {
+ "msResolution": true,
+ "shared": true,
+ "sort": 0,
+ "value_type": "cumulative"
+ },
+ "transformations": [],
+ "transparent": false,
+ "type": "graph",
+ "xaxis": {
+ "mode": "time",
+ "name": null,
+ "show": true,
+ "values": []
+ },
+ "yaxes": [
+ {
+ "decimals": null,
+ "format": "percentunit",
+ "label": null,
+ "logBase": 1,
+ "max": null,
+ "min": null,
+ "show": true
+ },
+ {
+ "decimals": null,
+ "format": "short",
+ "label": null,
+ "logBase": 1,
+ "max": null,
+ "min": null,
+ "show": true
+ }
+ ],
+ "yaxis": {
+ "align": false,
+ "alignLevel": 0
+ }
+ }
+ ],
+ "repeat": "cpu",
+ "showTitle": true,
+ "title": "CPU $cpu"
+ }
+ ],
+ "schemaVersion": 12,
+ "sharedCrosshair": false,
+ "style": "dark",
+ "tags": [],
+ "templating": {
+ "list": [
+ {
+ "allValue": null,
+ "auto": false,
+ "auto_count": 30,
+ "auto_min": "10s",
+ "current": {
+ "selected": false,
+ "tags": [],
+ "text": null,
+ "value": null
+ },
+ "datasource": "Prometheus (Pergamon)",
+ "hide": 0,
+ "includeAll": false,
+ "label": "",
+ "multi": false,
+ "name": "host",
+ "options": [],
+ "query": "node_uname_info{instance=\"$target\"}",
+ "refresh": 1,
+ "regex": "/nodename=\"([^\"]*)\"/",
+ "sort": 1,
+ "tagValuesQuery": null,
+ "tagsQuery": null,
+ "type": "query",
+ "useTags": false
+ },
+ {
+ "allValue": null,
+ "auto": false,
+ "auto_count": 30,
+ "auto_min": "10s",
+ "current": {
+ "selected": false,
+ "tags": [],
+ "text": null,
+ "value": null
+ },
+ "datasource": "Prometheus (Pergamon)",
+ "hide": 0,
+ "includeAll": false,
+ "label": "",
+ "multi": false,
+ "name": "target",
+ "options": [],
+ "query": "node_uname_info",
+ "refresh": 1,
+ "regex": "/instance=\"([^\"]*)\"/",
+ "sort": 1,
+ "tagValuesQuery": null,
+ "tagsQuery": null,
+ "type": "query",
+ "useTags": false
+ },
+ {
+ "allValue": null,
+ "auto": false,
+ "auto_count": 30,
+ "auto_min": "10s",
+ "current": {
+ "selected": true,
+ "tags": [],
+ "text": "All",
+ "value": "All"
+ },
+ "datasource": "Prometheus (Pergamon)",
+ "hide": 2,
+ "includeAll": true,
+ "label": "",
+ "multi": false,
+ "name": "cpu",
+ "options": [],
+ "query": "node_cpu_seconds_total{instance=\"$target\"}",
+ "refresh": 1,
+ "regex": "/cpu=\"([^\"]*)\"/",
+ "sort": 1,
+ "tagValuesQuery": null,
+ "tagsQuery": null,
+ "type": "query",
+ "useTags": false
+ }
+ ]
+ },
+ "time": {
+ "from": "now-1h",
+ "to": "now"
+ },
+ "timepicker": {
+ "hidden": false,
+ "refresh_intervals": [
+ "5s",
+ "10s",
+ "30s",
+ "1m",
+ "5m",
+ "15m",
+ "30m",
+ "1h",
+ "2h",
+ "1d"
+ ],
+ "time_options": [
+ "5m",
+ "15m",
+ "1h",
+ "6h",
+ "12h",
+ "24h",
+ "2d",
+ "7d",
+ "30d"
+ ]
+ },
+ "timezone": "utc",
+ "title": "CPU usage auto-generated",
+ "uid": null,
+ "version": 0
+}
diff --git a/site-modules/profile/files/grafana/dashboards/grafanalib.disk.iops.json b/site-modules/profile/files/grafana/dashboards/grafanalib.disk.iops.json
new file mode 100644
--- /dev/null
+++ b/site-modules/profile/files/grafana/dashboards/grafanalib.disk.iops.json
@@ -0,0 +1,413 @@
+{
+ "__inputs": [],
+ "annotations": {
+ "list": []
+ },
+ "description": "",
+ "editable": true,
+ "gnetId": null,
+ "hideControls": false,
+ "id": null,
+ "links": [],
+ "panels": [],
+ "refresh": "10s",
+ "rows": [
+ {
+ "collapse": false,
+ "editable": true,
+ "height": "250px",
+ "panels": [
+ {
+ "aliasColors": {},
+ "bars": false,
+ "cacheTimeout": null,
+ "datasource": "Prometheus (Pergamon)",
+ "description": null,
+ "editable": true,
+ "error": false,
+ "fill": 1,
+ "grid": {
+ "threshold1": null,
+ "threshold1Color": "rgba(216, 200, 27, 0.27)",
+ "threshold2": null,
+ "threshold2Color": "rgba(234, 112, 112, 0.22)"
+ },
+ "gridPos": null,
+ "height": null,
+ "hideTimeOverride": false,
+ "id": 1,
+ "interval": null,
+ "isNew": true,
+ "legend": {
+ "alignAsTable": false,
+ "avg": true,
+ "current": true,
+ "hideEmpty": false,
+ "hideZero": false,
+ "max": true,
+ "min": true,
+ "rightSide": false,
+ "show": true,
+ "sideWidth": null,
+ "sort": null,
+ "sortDesc": false,
+ "total": false,
+ "values": true
+ },
+ "lines": true,
+ "linewidth": 2,
+ "links": [],
+ "maxDataPoints": 100,
+ "maxPerRow": null,
+ "minSpan": null,
+ "nullPointMode": "connected",
+ "options": {
+ "alertThreshold": true,
+ "dataLinks": []
+ },
+ "percentage": false,
+ "pointradius": 5,
+ "points": false,
+ "renderer": "flot",
+ "repeat": null,
+ "repeatDirection": null,
+ "seriesOverrides": [],
+ "span": 6,
+ "stack": false,
+ "steppedLine": false,
+ "targets": [
+ {
+ "datasource": null,
+ "expr": "rate(node_disk_reads_completed_total{instance=\"$target\",device=\"$device\"}[5m])",
+ "format": "time_series",
+ "hide": false,
+ "instant": false,
+ "interval": "",
+ "intervalFactor": 2,
+ "legendFormat": "reads per second",
+ "metric": "",
+ "refId": "A",
+ "step": 10,
+ "target": ""
+ },
+ {
+ "datasource": null,
+ "expr": "rate(node_disk_writes_completed_total{instance=\"$target\",device=\"$device\"}[5m])",
+ "format": "time_series",
+ "hide": false,
+ "instant": false,
+ "interval": "",
+ "intervalFactor": 2,
+ "legendFormat": "writes per second",
+ "metric": "",
+ "refId": "B",
+ "step": 10,
+ "target": ""
+ }
+ ],
+ "thresholds": [],
+ "timeFrom": null,
+ "timeShift": null,
+ "title": "IOs for $device",
+ "tooltip": {
+ "msResolution": true,
+ "shared": true,
+ "sort": 0,
+ "value_type": "cumulative"
+ },
+ "transformations": [],
+ "transparent": false,
+ "type": "graph",
+ "xaxis": {
+ "mode": "time",
+ "name": null,
+ "show": true,
+ "values": []
+ },
+ "yaxes": [
+ {
+ "decimals": null,
+ "format": "short",
+ "label": null,
+ "logBase": 1,
+ "max": null,
+ "min": null,
+ "show": true
+ },
+ {
+ "decimals": null,
+ "format": "short",
+ "label": null,
+ "logBase": 1,
+ "max": null,
+ "min": null,
+ "show": true
+ }
+ ],
+ "yaxis": {
+ "align": false,
+ "alignLevel": 0
+ }
+ },
+ {
+ "aliasColors": {},
+ "bars": false,
+ "cacheTimeout": null,
+ "datasource": "Prometheus (Pergamon)",
+ "description": null,
+ "editable": true,
+ "error": false,
+ "fill": 1,
+ "grid": {
+ "threshold1": null,
+ "threshold1Color": "rgba(216, 200, 27, 0.27)",
+ "threshold2": null,
+ "threshold2Color": "rgba(234, 112, 112, 0.22)"
+ },
+ "gridPos": null,
+ "height": null,
+ "hideTimeOverride": false,
+ "id": 2,
+ "interval": null,
+ "isNew": true,
+ "legend": {
+ "alignAsTable": false,
+ "avg": true,
+ "current": true,
+ "hideEmpty": false,
+ "hideZero": false,
+ "max": true,
+ "min": true,
+ "rightSide": false,
+ "show": true,
+ "sideWidth": null,
+ "sort": null,
+ "sortDesc": false,
+ "total": false,
+ "values": true
+ },
+ "lines": true,
+ "linewidth": 2,
+ "links": [],
+ "maxDataPoints": 100,
+ "maxPerRow": null,
+ "minSpan": null,
+ "nullPointMode": "connected",
+ "options": {
+ "alertThreshold": true,
+ "dataLinks": []
+ },
+ "percentage": false,
+ "pointradius": 5,
+ "points": false,
+ "renderer": "flot",
+ "repeat": null,
+ "repeatDirection": null,
+ "seriesOverrides": [],
+ "span": 6,
+ "stack": false,
+ "steppedLine": false,
+ "targets": [
+ {
+ "datasource": null,
+ "expr": "rate(node_disk_reads_completed_total{instance=\"$target\",device=\"$device\"}[5m])",
+ "format": "time_series",
+ "hide": false,
+ "instant": false,
+ "interval": "",
+ "intervalFactor": 2,
+ "legendFormat": "reads per second",
+ "metric": "",
+ "refId": "A",
+ "step": 10,
+ "target": ""
+ },
+ {
+ "datasource": null,
+ "expr": "rate(node_disk_writes_completed_total{instance=\"$target\",device=\"$device\"}[5m])",
+ "format": "time_series",
+ "hide": false,
+ "instant": false,
+ "interval": "",
+ "intervalFactor": 2,
+ "legendFormat": "writes per second",
+ "metric": "",
+ "refId": "B",
+ "step": 10,
+ "target": ""
+ }
+ ],
+ "thresholds": [],
+ "timeFrom": "1y",
+ "timeShift": null,
+ "title": "IOs for $device",
+ "tooltip": {
+ "msResolution": true,
+ "shared": true,
+ "sort": 0,
+ "value_type": "cumulative"
+ },
+ "transformations": [],
+ "transparent": false,
+ "type": "graph",
+ "xaxis": {
+ "mode": "time",
+ "name": null,
+ "show": true,
+ "values": []
+ },
+ "yaxes": [
+ {
+ "decimals": null,
+ "format": "short",
+ "label": null,
+ "logBase": 1,
+ "max": null,
+ "min": null,
+ "show": true
+ },
+ {
+ "decimals": null,
+ "format": "short",
+ "label": null,
+ "logBase": 1,
+ "max": null,
+ "min": null,
+ "show": true
+ }
+ ],
+ "yaxis": {
+ "align": false,
+ "alignLevel": 0
+ }
+ }
+ ],
+ "repeat": "device",
+ "showTitle": true,
+ "title": "$device device"
+ }
+ ],
+ "schemaVersion": 12,
+ "sharedCrosshair": false,
+ "style": "dark",
+ "tags": [],
+ "templating": {
+ "list": [
+ {
+ "allValue": null,
+ "auto": false,
+ "auto_count": 30,
+ "auto_min": "10s",
+ "current": {
+ "selected": false,
+ "tags": [],
+ "text": null,
+ "value": null
+ },
+ "datasource": "Prometheus (Pergamon)",
+ "hide": 0,
+ "includeAll": false,
+ "label": "",
+ "multi": false,
+ "name": "host",
+ "options": [],
+ "query": "node_uname_info{instance=\"$target\"}",
+ "refresh": 1,
+ "regex": "/nodename=\"([^\"]*)\"/",
+ "sort": 1,
+ "tagValuesQuery": null,
+ "tagsQuery": null,
+ "type": "query",
+ "useTags": false
+ },
+ {
+ "allValue": null,
+ "auto": false,
+ "auto_count": 30,
+ "auto_min": "10s",
+ "current": {
+ "selected": false,
+ "tags": [],
+ "text": null,
+ "value": null
+ },
+ "datasource": "Prometheus (Pergamon)",
+ "hide": 0,
+ "includeAll": false,
+ "label": "",
+ "multi": false,
+ "name": "target",
+ "options": [],
+ "query": "node_disk_io_now",
+ "refresh": 1,
+ "regex": "/instance=\"([^\"]*)\"/",
+ "sort": 1,
+ "tagValuesQuery": null,
+ "tagsQuery": null,
+ "type": "query",
+ "useTags": false
+ },
+ {
+ "allValue": null,
+ "auto": false,
+ "auto_count": 30,
+ "auto_min": "10s",
+ "current": {
+ "selected": true,
+ "tags": [],
+ "text": "All",
+ "value": "All"
+ },
+ "datasource": "Prometheus (Pergamon)",
+ "hide": 2,
+ "includeAll": true,
+ "label": "",
+ "multi": false,
+ "name": "device",
+ "options": [],
+ "query": "node_disk_io_now{instance=\"$target\"}",
+ "refresh": 1,
+ "regex": "/device=\"([sd|vd|dm|md][a-z0-9-]*)/",
+ "sort": 1,
+ "tagValuesQuery": null,
+ "tagsQuery": null,
+ "type": "query",
+ "useTags": false
+ }
+ ]
+ },
+ "time": {
+ "from": "now-1h",
+ "to": "now"
+ },
+ "timepicker": {
+ "hidden": false,
+ "refresh_intervals": [
+ "5s",
+ "10s",
+ "30s",
+ "1m",
+ "5m",
+ "15m",
+ "30m",
+ "1h",
+ "2h",
+ "1d"
+ ],
+ "time_options": [
+ "5m",
+ "15m",
+ "1h",
+ "6h",
+ "12h",
+ "24h",
+ "2d",
+ "7d",
+ "30d"
+ ]
+ },
+ "timezone": "utc",
+ "title": "Diskstat iops auto-generated",
+ "uid": null,
+ "version": 0
+}
diff --git a/site-modules/profile/files/grafana/dashboards/grafanalib.disk.latency.json b/site-modules/profile/files/grafana/dashboards/grafanalib.disk.latency.json
new file mode 100644
--- /dev/null
+++ b/site-modules/profile/files/grafana/dashboards/grafanalib.disk.latency.json
@@ -0,0 +1,385 @@
+{
+ "__inputs": [],
+ "annotations": {
+ "list": []
+ },
+ "description": "",
+ "editable": true,
+ "gnetId": null,
+ "hideControls": false,
+ "id": null,
+ "links": [],
+ "panels": [],
+ "refresh": "10s",
+ "rows": [
+ {
+ "collapse": false,
+ "editable": true,
+ "height": "250px",
+ "panels": [
+ {
+ "aliasColors": {},
+ "bars": false,
+ "cacheTimeout": null,
+ "datasource": "Prometheus (Pergamon)",
+ "description": null,
+ "editable": true,
+ "error": false,
+ "fill": 1,
+ "grid": {
+ "threshold1": null,
+ "threshold1Color": "rgba(216, 200, 27, 0.27)",
+ "threshold2": null,
+ "threshold2Color": "rgba(234, 112, 112, 0.22)"
+ },
+ "gridPos": null,
+ "height": null,
+ "hideTimeOverride": false,
+ "id": 1,
+ "interval": null,
+ "isNew": true,
+ "legend": {
+ "alignAsTable": false,
+ "avg": true,
+ "current": true,
+ "hideEmpty": false,
+ "hideZero": false,
+ "max": true,
+ "min": true,
+ "rightSide": false,
+ "show": true,
+ "sideWidth": null,
+ "sort": null,
+ "sortDesc": false,
+ "total": false,
+ "values": true
+ },
+ "lines": true,
+ "linewidth": 2,
+ "links": [],
+ "maxDataPoints": 100,
+ "maxPerRow": null,
+ "minSpan": null,
+ "nullPointMode": "connected",
+ "options": {
+ "alertThreshold": true,
+ "dataLinks": []
+ },
+ "percentage": false,
+ "pointradius": 5,
+ "points": false,
+ "renderer": "flot",
+ "repeat": null,
+ "repeatDirection": null,
+ "seriesOverrides": [],
+ "span": 6,
+ "stack": false,
+ "steppedLine": false,
+ "targets": [
+ {
+ "datasource": null,
+ "expr": "rate(node_disk_io_time_weighted_seconds_total{instance=\"$target\",device=\"$device\"}[5m])",
+ "format": "time_series",
+ "hide": false,
+ "instant": false,
+ "interval": "",
+ "intervalFactor": 2,
+ "legendFormat": "io_time_weighted_seconds rate",
+ "metric": "",
+ "refId": "A",
+ "step": 10,
+ "target": ""
+ }
+ ],
+ "thresholds": [],
+ "timeFrom": null,
+ "timeShift": null,
+ "title": "Average latency for $device",
+ "tooltip": {
+ "msResolution": true,
+ "shared": true,
+ "sort": 0,
+ "value_type": "cumulative"
+ },
+ "transformations": [],
+ "transparent": false,
+ "type": "graph",
+ "xaxis": {
+ "mode": "time",
+ "name": null,
+ "show": true,
+ "values": []
+ },
+ "yaxes": [
+ {
+ "decimals": null,
+ "format": "ms",
+ "label": null,
+ "logBase": 1,
+ "max": null,
+ "min": null,
+ "show": true
+ },
+ {
+ "decimals": null,
+ "format": "short",
+ "label": null,
+ "logBase": 1,
+ "max": null,
+ "min": null,
+ "show": true
+ }
+ ],
+ "yaxis": {
+ "align": false,
+ "alignLevel": 0
+ }
+ },
+ {
+ "aliasColors": {},
+ "bars": false,
+ "cacheTimeout": null,
+ "datasource": "Prometheus (Pergamon)",
+ "description": null,
+ "editable": true,
+ "error": false,
+ "fill": 1,
+ "grid": {
+ "threshold1": null,
+ "threshold1Color": "rgba(216, 200, 27, 0.27)",
+ "threshold2": null,
+ "threshold2Color": "rgba(234, 112, 112, 0.22)"
+ },
+ "gridPos": null,
+ "height": null,
+ "hideTimeOverride": false,
+ "id": 2,
+ "interval": null,
+ "isNew": true,
+ "legend": {
+ "alignAsTable": false,
+ "avg": true,
+ "current": true,
+ "hideEmpty": false,
+ "hideZero": false,
+ "max": true,
+ "min": true,
+ "rightSide": false,
+ "show": true,
+ "sideWidth": null,
+ "sort": null,
+ "sortDesc": false,
+ "total": false,
+ "values": true
+ },
+ "lines": true,
+ "linewidth": 2,
+ "links": [],
+ "maxDataPoints": 100,
+ "maxPerRow": null,
+ "minSpan": null,
+ "nullPointMode": "connected",
+ "options": {
+ "alertThreshold": true,
+ "dataLinks": []
+ },
+ "percentage": false,
+ "pointradius": 5,
+ "points": false,
+ "renderer": "flot",
+ "repeat": null,
+ "repeatDirection": null,
+ "seriesOverrides": [],
+ "span": 6,
+ "stack": false,
+ "steppedLine": false,
+ "targets": [
+ {
+ "datasource": null,
+ "expr": "rate(node_disk_io_time_weighted_seconds_total{instance=\"$target\",device=\"$device\"}[5m])",
+ "format": "time_series",
+ "hide": false,
+ "instant": false,
+ "interval": "",
+ "intervalFactor": 2,
+ "legendFormat": "io_time_weighted_seconds rate",
+ "metric": "",
+ "refId": "A",
+ "step": 10,
+ "target": ""
+ }
+ ],
+ "thresholds": [],
+ "timeFrom": "1y",
+ "timeShift": null,
+ "title": "Average latency for $device",
+ "tooltip": {
+ "msResolution": true,
+ "shared": true,
+ "sort": 0,
+ "value_type": "cumulative"
+ },
+ "transformations": [],
+ "transparent": false,
+ "type": "graph",
+ "xaxis": {
+ "mode": "time",
+ "name": null,
+ "show": true,
+ "values": []
+ },
+ "yaxes": [
+ {
+ "decimals": null,
+ "format": "ms",
+ "label": null,
+ "logBase": 1,
+ "max": null,
+ "min": null,
+ "show": true
+ },
+ {
+ "decimals": null,
+ "format": "short",
+ "label": null,
+ "logBase": 1,
+ "max": null,
+ "min": null,
+ "show": true
+ }
+ ],
+ "yaxis": {
+ "align": false,
+ "alignLevel": 0
+ }
+ }
+ ],
+ "repeat": "device",
+ "showTitle": true,
+ "title": "$device device"
+ }
+ ],
+ "schemaVersion": 12,
+ "sharedCrosshair": false,
+ "style": "dark",
+ "tags": [],
+ "templating": {
+ "list": [
+ {
+ "allValue": null,
+ "auto": false,
+ "auto_count": 30,
+ "auto_min": "10s",
+ "current": {
+ "selected": false,
+ "tags": [],
+ "text": null,
+ "value": null
+ },
+ "datasource": "Prometheus (Pergamon)",
+ "hide": 0,
+ "includeAll": false,
+ "label": "",
+ "multi": false,
+ "name": "host",
+ "options": [],
+ "query": "node_uname_info{instance=\"$target\"}",
+ "refresh": 1,
+ "regex": "/nodename=\"([^\"]*)\"/",
+ "sort": 1,
+ "tagValuesQuery": null,
+ "tagsQuery": null,
+ "type": "query",
+ "useTags": false
+ },
+ {
+ "allValue": null,
+ "auto": false,
+ "auto_count": 30,
+ "auto_min": "10s",
+ "current": {
+ "selected": false,
+ "tags": [],
+ "text": null,
+ "value": null
+ },
+ "datasource": "Prometheus (Pergamon)",
+ "hide": 0,
+ "includeAll": false,
+ "label": "",
+ "multi": false,
+ "name": "target",
+ "options": [],
+ "query": "node_disk_io_now",
+ "refresh": 1,
+ "regex": "/instance=\"([^\"]*)\"/",
+ "sort": 1,
+ "tagValuesQuery": null,
+ "tagsQuery": null,
+ "type": "query",
+ "useTags": false
+ },
+ {
+ "allValue": null,
+ "auto": false,
+ "auto_count": 30,
+ "auto_min": "10s",
+ "current": {
+ "selected": true,
+ "tags": [],
+ "text": "All",
+ "value": "All"
+ },
+ "datasource": "Prometheus (Pergamon)",
+ "hide": 2,
+ "includeAll": true,
+ "label": "",
+ "multi": false,
+ "name": "device",
+ "options": [],
+ "query": "node_disk_io_now{instance=\"$target\"}",
+ "refresh": 1,
+ "regex": "/device=\"([sd|vd|dm|md][a-z0-9-]*)/",
+ "sort": 1,
+ "tagValuesQuery": null,
+ "tagsQuery": null,
+ "type": "query",
+ "useTags": false
+ }
+ ]
+ },
+ "time": {
+ "from": "now-1h",
+ "to": "now"
+ },
+ "timepicker": {
+ "hidden": false,
+ "refresh_intervals": [
+ "5s",
+ "10s",
+ "30s",
+ "1m",
+ "5m",
+ "15m",
+ "30m",
+ "1h",
+ "2h",
+ "1d"
+ ],
+ "time_options": [
+ "5m",
+ "15m",
+ "1h",
+ "6h",
+ "12h",
+ "24h",
+ "2d",
+ "7d",
+ "30d"
+ ]
+ },
+ "timezone": "utc",
+ "title": "Diskstat latency auto-generated",
+ "uid": null,
+ "version": 0
+}
diff --git a/site-modules/profile/files/grafana/dashboards/grafanalib.disk.throughput.json b/site-modules/profile/files/grafana/dashboards/grafanalib.disk.throughput.json
new file mode 100644
--- /dev/null
+++ b/site-modules/profile/files/grafana/dashboards/grafanalib.disk.throughput.json
@@ -0,0 +1,413 @@
+{
+ "__inputs": [],
+ "annotations": {
+ "list": []
+ },
+ "description": "",
+ "editable": true,
+ "gnetId": null,
+ "hideControls": false,
+ "id": null,
+ "links": [],
+ "panels": [],
+ "refresh": "10s",
+ "rows": [
+ {
+ "collapse": false,
+ "editable": true,
+ "height": "250px",
+ "panels": [
+ {
+ "aliasColors": {},
+ "bars": false,
+ "cacheTimeout": null,
+ "datasource": "Prometheus (Pergamon)",
+ "description": null,
+ "editable": true,
+ "error": false,
+ "fill": 1,
+ "grid": {
+ "threshold1": null,
+ "threshold1Color": "rgba(216, 200, 27, 0.27)",
+ "threshold2": null,
+ "threshold2Color": "rgba(234, 112, 112, 0.22)"
+ },
+ "gridPos": null,
+ "height": null,
+ "hideTimeOverride": false,
+ "id": 1,
+ "interval": null,
+ "isNew": true,
+ "legend": {
+ "alignAsTable": false,
+ "avg": true,
+ "current": true,
+ "hideEmpty": false,
+ "hideZero": false,
+ "max": true,
+ "min": true,
+ "rightSide": false,
+ "show": true,
+ "sideWidth": null,
+ "sort": null,
+ "sortDesc": false,
+ "total": false,
+ "values": true
+ },
+ "lines": true,
+ "linewidth": 2,
+ "links": [],
+ "maxDataPoints": 100,
+ "maxPerRow": null,
+ "minSpan": null,
+ "nullPointMode": "connected",
+ "options": {
+ "alertThreshold": true,
+ "dataLinks": []
+ },
+ "percentage": false,
+ "pointradius": 5,
+ "points": false,
+ "renderer": "flot",
+ "repeat": null,
+ "repeatDirection": null,
+ "seriesOverrides": [],
+ "span": 6,
+ "stack": false,
+ "steppedLine": false,
+ "targets": [
+ {
+ "datasource": null,
+ "expr": "irate(node_disk_read_bytes_total{instance=\"$target\",device=\"$device\"}[5m])",
+ "format": "time_series",
+ "hide": false,
+ "instant": false,
+ "interval": "",
+ "intervalFactor": 2,
+ "legendFormat": "bytes read per second",
+ "metric": "",
+ "refId": "A",
+ "step": 10,
+ "target": ""
+ },
+ {
+ "datasource": null,
+ "expr": "irate(node_disk_written_bytes_total{instance=\"$target\",device=\"$device\"}[5m])",
+ "format": "time_series",
+ "hide": false,
+ "instant": false,
+ "interval": "",
+ "intervalFactor": 2,
+ "legendFormat": "bytes written per second",
+ "metric": "",
+ "refId": "B",
+ "step": 10,
+ "target": ""
+ }
+ ],
+ "thresholds": [],
+ "timeFrom": null,
+ "timeShift": null,
+ "title": "Throughput for $device",
+ "tooltip": {
+ "msResolution": true,
+ "shared": true,
+ "sort": 0,
+ "value_type": "cumulative"
+ },
+ "transformations": [],
+ "transparent": false,
+ "type": "graph",
+ "xaxis": {
+ "mode": "time",
+ "name": null,
+ "show": true,
+ "values": []
+ },
+ "yaxes": [
+ {
+ "decimals": null,
+ "format": "bytes",
+ "label": null,
+ "logBase": 1,
+ "max": null,
+ "min": null,
+ "show": true
+ },
+ {
+ "decimals": null,
+ "format": "short",
+ "label": null,
+ "logBase": 1,
+ "max": null,
+ "min": null,
+ "show": true
+ }
+ ],
+ "yaxis": {
+ "align": false,
+ "alignLevel": 0
+ }
+ },
+ {
+ "aliasColors": {},
+ "bars": false,
+ "cacheTimeout": null,
+ "datasource": "Prometheus (Pergamon)",
+ "description": null,
+ "editable": true,
+ "error": false,
+ "fill": 1,
+ "grid": {
+ "threshold1": null,
+ "threshold1Color": "rgba(216, 200, 27, 0.27)",
+ "threshold2": null,
+ "threshold2Color": "rgba(234, 112, 112, 0.22)"
+ },
+ "gridPos": null,
+ "height": null,
+ "hideTimeOverride": false,
+ "id": 2,
+ "interval": null,
+ "isNew": true,
+ "legend": {
+ "alignAsTable": false,
+ "avg": true,
+ "current": true,
+ "hideEmpty": false,
+ "hideZero": false,
+ "max": true,
+ "min": true,
+ "rightSide": false,
+ "show": true,
+ "sideWidth": null,
+ "sort": null,
+ "sortDesc": false,
+ "total": false,
+ "values": true
+ },
+ "lines": true,
+ "linewidth": 2,
+ "links": [],
+ "maxDataPoints": 100,
+ "maxPerRow": null,
+ "minSpan": null,
+ "nullPointMode": "connected",
+ "options": {
+ "alertThreshold": true,
+ "dataLinks": []
+ },
+ "percentage": false,
+ "pointradius": 5,
+ "points": false,
+ "renderer": "flot",
+ "repeat": null,
+ "repeatDirection": null,
+ "seriesOverrides": [],
+ "span": 6,
+ "stack": false,
+ "steppedLine": false,
+ "targets": [
+ {
+ "datasource": null,
+ "expr": "irate(node_disk_read_bytes_total{instance=\"$target\",device=\"$device\"}[5m])",
+ "format": "time_series",
+ "hide": false,
+ "instant": false,
+ "interval": "",
+ "intervalFactor": 2,
+ "legendFormat": "bytes read per second",
+ "metric": "",
+ "refId": "A",
+ "step": 10,
+ "target": ""
+ },
+ {
+ "datasource": null,
+ "expr": "irate(node_disk_written_bytes_total{instance=\"$target\",device=\"$device\"}[5m])",
+ "format": "time_series",
+ "hide": false,
+ "instant": false,
+ "interval": "",
+ "intervalFactor": 2,
+ "legendFormat": "bytes written per second",
+ "metric": "",
+ "refId": "B",
+ "step": 10,
+ "target": ""
+ }
+ ],
+ "thresholds": [],
+ "timeFrom": "1y",
+ "timeShift": null,
+ "title": "Throughput for $device",
+ "tooltip": {
+ "msResolution": true,
+ "shared": true,
+ "sort": 0,
+ "value_type": "cumulative"
+ },
+ "transformations": [],
+ "transparent": false,
+ "type": "graph",
+ "xaxis": {
+ "mode": "time",
+ "name": null,
+ "show": true,
+ "values": []
+ },
+ "yaxes": [
+ {
+ "decimals": null,
+ "format": "bytes",
+ "label": null,
+ "logBase": 1,
+ "max": null,
+ "min": null,
+ "show": true
+ },
+ {
+ "decimals": null,
+ "format": "short",
+ "label": null,
+ "logBase": 1,
+ "max": null,
+ "min": null,
+ "show": true
+ }
+ ],
+ "yaxis": {
+ "align": false,
+ "alignLevel": 0
+ }
+ }
+ ],
+ "repeat": "device",
+ "showTitle": true,
+ "title": "$device device"
+ }
+ ],
+ "schemaVersion": 12,
+ "sharedCrosshair": false,
+ "style": "dark",
+ "tags": [],
+ "templating": {
+ "list": [
+ {
+ "allValue": null,
+ "auto": false,
+ "auto_count": 30,
+ "auto_min": "10s",
+ "current": {
+ "selected": false,
+ "tags": [],
+ "text": null,
+ "value": null
+ },
+ "datasource": "Prometheus (Pergamon)",
+ "hide": 0,
+ "includeAll": false,
+ "label": "",
+ "multi": false,
+ "name": "host",
+ "options": [],
+ "query": "node_uname_info{instance=\"$target\"}",
+ "refresh": 1,
+ "regex": "/nodename=\"([^\"]*)\"/",
+ "sort": 1,
+ "tagValuesQuery": null,
+ "tagsQuery": null,
+ "type": "query",
+ "useTags": false
+ },
+ {
+ "allValue": null,
+ "auto": false,
+ "auto_count": 30,
+ "auto_min": "10s",
+ "current": {
+ "selected": false,
+ "tags": [],
+ "text": null,
+ "value": null
+ },
+ "datasource": "Prometheus (Pergamon)",
+ "hide": 0,
+ "includeAll": false,
+ "label": "",
+ "multi": false,
+ "name": "target",
+ "options": [],
+ "query": "node_disk_io_now",
+ "refresh": 1,
+ "regex": "/instance=\"([^\"]*)\"/",
+ "sort": 1,
+ "tagValuesQuery": null,
+ "tagsQuery": null,
+ "type": "query",
+ "useTags": false
+ },
+ {
+ "allValue": null,
+ "auto": false,
+ "auto_count": 30,
+ "auto_min": "10s",
+ "current": {
+ "selected": true,
+ "tags": [],
+ "text": "All",
+ "value": "All"
+ },
+ "datasource": "Prometheus (Pergamon)",
+ "hide": 2,
+ "includeAll": true,
+ "label": "",
+ "multi": false,
+ "name": "device",
+ "options": [],
+ "query": "node_disk_io_now{instance=\"$target\"}",
+ "refresh": 1,
+ "regex": "/device=\"([sd|vd|dm|md][a-z0-9-]*)/",
+ "sort": 1,
+ "tagValuesQuery": null,
+ "tagsQuery": null,
+ "type": "query",
+ "useTags": false
+ }
+ ]
+ },
+ "time": {
+ "from": "now-1h",
+ "to": "now"
+ },
+ "timepicker": {
+ "hidden": false,
+ "refresh_intervals": [
+ "5s",
+ "10s",
+ "30s",
+ "1m",
+ "5m",
+ "15m",
+ "30m",
+ "1h",
+ "2h",
+ "1d"
+ ],
+ "time_options": [
+ "5m",
+ "15m",
+ "1h",
+ "6h",
+ "12h",
+ "24h",
+ "2d",
+ "7d",
+ "30d"
+ ]
+ },
+ "timezone": "utc",
+ "title": "Diskstat throughput auto-generated",
+ "uid": null,
+ "version": 0
+}
diff --git a/site-modules/profile/files/grafana/dashboards/grafanalib.filesystem.sizes.json b/site-modules/profile/files/grafana/dashboards/grafanalib.filesystem.sizes.json
new file mode 100644
--- /dev/null
+++ b/site-modules/profile/files/grafana/dashboards/grafanalib.filesystem.sizes.json
@@ -0,0 +1,413 @@
+{
+ "__inputs": [],
+ "annotations": {
+ "list": []
+ },
+ "description": "",
+ "editable": true,
+ "gnetId": null,
+ "hideControls": false,
+ "id": null,
+ "links": [],
+ "panels": [],
+ "refresh": "10s",
+ "rows": [
+ {
+ "collapse": false,
+ "editable": true,
+ "height": "250px",
+ "panels": [
+ {
+ "aliasColors": {},
+ "bars": false,
+ "cacheTimeout": null,
+ "datasource": "Prometheus (Pergamon)",
+ "description": null,
+ "editable": true,
+ "error": false,
+ "fill": 1,
+ "grid": {
+ "threshold1": null,
+ "threshold1Color": "rgba(216, 200, 27, 0.27)",
+ "threshold2": null,
+ "threshold2Color": "rgba(234, 112, 112, 0.22)"
+ },
+ "gridPos": null,
+ "height": null,
+ "hideTimeOverride": false,
+ "id": 1,
+ "interval": null,
+ "isNew": true,
+ "legend": {
+ "alignAsTable": false,
+ "avg": false,
+ "current": false,
+ "hideEmpty": false,
+ "hideZero": false,
+ "max": false,
+ "min": false,
+ "rightSide": false,
+ "show": true,
+ "sideWidth": null,
+ "sort": null,
+ "sortDesc": false,
+ "total": false,
+ "values": false
+ },
+ "lines": true,
+ "linewidth": 2,
+ "links": [],
+ "maxDataPoints": 100,
+ "maxPerRow": null,
+ "minSpan": null,
+ "nullPointMode": "connected",
+ "options": {
+ "alertThreshold": true,
+ "dataLinks": []
+ },
+ "percentage": false,
+ "pointradius": 5,
+ "points": false,
+ "renderer": "flot",
+ "repeat": null,
+ "repeatDirection": null,
+ "seriesOverrides": [],
+ "span": 6,
+ "stack": false,
+ "steppedLine": false,
+ "targets": [
+ {
+ "datasource": null,
+ "expr": "node_filesystem_size_bytes{instance=\"$target\",mountpoint=\"$filesystem\"}",
+ "format": "time_series",
+ "hide": false,
+ "instant": false,
+ "interval": "",
+ "intervalFactor": 2,
+ "legendFormat": "Filesystem size",
+ "metric": "",
+ "refId": "A",
+ "step": 10,
+ "target": ""
+ },
+ {
+ "datasource": null,
+ "expr": "node_filesystem_size_bytes{instance=\"$target\",mountpoint=\"$filesystem\"} - node_filesystem_avail_bytes{instance=\"$target\",mountpoint=\"$filesystem\"}",
+ "format": "time_series",
+ "hide": false,
+ "instant": false,
+ "interval": "",
+ "intervalFactor": 2,
+ "legendFormat": "Used space",
+ "metric": "",
+ "refId": "B",
+ "step": 10,
+ "target": ""
+ }
+ ],
+ "thresholds": [],
+ "timeFrom": null,
+ "timeShift": null,
+ "title": "Size of $filesystem",
+ "tooltip": {
+ "msResolution": true,
+ "shared": true,
+ "sort": 0,
+ "value_type": "cumulative"
+ },
+ "transformations": [],
+ "transparent": false,
+ "type": "graph",
+ "xaxis": {
+ "mode": "time",
+ "name": null,
+ "show": true,
+ "values": []
+ },
+ "yaxes": [
+ {
+ "decimals": null,
+ "format": "bytes",
+ "label": null,
+ "logBase": 1,
+ "max": null,
+ "min": null,
+ "show": true
+ },
+ {
+ "decimals": null,
+ "format": "short",
+ "label": null,
+ "logBase": 1,
+ "max": null,
+ "min": null,
+ "show": true
+ }
+ ],
+ "yaxis": {
+ "align": false,
+ "alignLevel": 0
+ }
+ },
+ {
+ "aliasColors": {},
+ "bars": false,
+ "cacheTimeout": null,
+ "datasource": "Prometheus (Pergamon)",
+ "description": null,
+ "editable": true,
+ "error": false,
+ "fill": 1,
+ "grid": {
+ "threshold1": null,
+ "threshold1Color": "rgba(216, 200, 27, 0.27)",
+ "threshold2": null,
+ "threshold2Color": "rgba(234, 112, 112, 0.22)"
+ },
+ "gridPos": null,
+ "height": null,
+ "hideTimeOverride": false,
+ "id": 2,
+ "interval": null,
+ "isNew": true,
+ "legend": {
+ "alignAsTable": false,
+ "avg": false,
+ "current": false,
+ "hideEmpty": false,
+ "hideZero": false,
+ "max": false,
+ "min": false,
+ "rightSide": false,
+ "show": true,
+ "sideWidth": null,
+ "sort": null,
+ "sortDesc": false,
+ "total": false,
+ "values": false
+ },
+ "lines": true,
+ "linewidth": 2,
+ "links": [],
+ "maxDataPoints": 100,
+ "maxPerRow": null,
+ "minSpan": null,
+ "nullPointMode": "connected",
+ "options": {
+ "alertThreshold": true,
+ "dataLinks": []
+ },
+ "percentage": false,
+ "pointradius": 5,
+ "points": false,
+ "renderer": "flot",
+ "repeat": null,
+ "repeatDirection": null,
+ "seriesOverrides": [],
+ "span": 6,
+ "stack": false,
+ "steppedLine": false,
+ "targets": [
+ {
+ "datasource": null,
+ "expr": "node_filesystem_size_bytes{instance=\"$target\",mountpoint=\"$filesystem\"}",
+ "format": "time_series",
+ "hide": false,
+ "instant": false,
+ "interval": "",
+ "intervalFactor": 2,
+ "legendFormat": "Filesystem size",
+ "metric": "",
+ "refId": "A",
+ "step": 10,
+ "target": ""
+ },
+ {
+ "datasource": null,
+ "expr": "node_filesystem_size_bytes{instance=\"$target\",mountpoint=\"$filesystem\"} - node_filesystem_avail_bytes{instance=\"$target\",mountpoint=\"$filesystem\"}",
+ "format": "time_series",
+ "hide": false,
+ "instant": false,
+ "interval": "",
+ "intervalFactor": 2,
+ "legendFormat": "Used space",
+ "metric": "",
+ "refId": "B",
+ "step": 10,
+ "target": ""
+ }
+ ],
+ "thresholds": [],
+ "timeFrom": "1y",
+ "timeShift": null,
+ "title": "Size of $filesystem",
+ "tooltip": {
+ "msResolution": true,
+ "shared": true,
+ "sort": 0,
+ "value_type": "cumulative"
+ },
+ "transformations": [],
+ "transparent": false,
+ "type": "graph",
+ "xaxis": {
+ "mode": "time",
+ "name": null,
+ "show": true,
+ "values": []
+ },
+ "yaxes": [
+ {
+ "decimals": null,
+ "format": "bytes",
+ "label": null,
+ "logBase": 1,
+ "max": null,
+ "min": null,
+ "show": true
+ },
+ {
+ "decimals": null,
+ "format": "short",
+ "label": null,
+ "logBase": 1,
+ "max": null,
+ "min": null,
+ "show": true
+ }
+ ],
+ "yaxis": {
+ "align": false,
+ "alignLevel": 0
+ }
+ }
+ ],
+ "repeat": "filesystem",
+ "showTitle": true,
+ "title": "$filesystem"
+ }
+ ],
+ "schemaVersion": 12,
+ "sharedCrosshair": false,
+ "style": "dark",
+ "tags": [],
+ "templating": {
+ "list": [
+ {
+ "allValue": null,
+ "auto": false,
+ "auto_count": 30,
+ "auto_min": "10s",
+ "current": {
+ "selected": false,
+ "tags": [],
+ "text": null,
+ "value": null
+ },
+ "datasource": "Prometheus (Pergamon)",
+ "hide": 0,
+ "includeAll": false,
+ "label": "",
+ "multi": false,
+ "name": "host",
+ "options": [],
+ "query": "node_uname_info{instance=\"$target\"}",
+ "refresh": 1,
+ "regex": "/nodename=\"([^\"]*)\"/",
+ "sort": 1,
+ "tagValuesQuery": null,
+ "tagsQuery": null,
+ "type": "query",
+ "useTags": false
+ },
+ {
+ "allValue": null,
+ "auto": false,
+ "auto_count": 30,
+ "auto_min": "10s",
+ "current": {
+ "selected": false,
+ "tags": [],
+ "text": null,
+ "value": null
+ },
+ "datasource": "Prometheus (Pergamon)",
+ "hide": 0,
+ "includeAll": false,
+ "label": "",
+ "multi": false,
+ "name": "target",
+ "options": [],
+ "query": "node_filesystem_size_bytes",
+ "refresh": 1,
+ "regex": "/instance=\"([^\"]*)\"/",
+ "sort": 1,
+ "tagValuesQuery": null,
+ "tagsQuery": null,
+ "type": "query",
+ "useTags": false
+ },
+ {
+ "allValue": null,
+ "auto": false,
+ "auto_count": 30,
+ "auto_min": "10s",
+ "current": {
+ "selected": true,
+ "tags": [],
+ "text": "All",
+ "value": "All"
+ },
+ "datasource": "Prometheus (Pergamon)",
+ "hide": 2,
+ "includeAll": true,
+ "label": "",
+ "multi": false,
+ "name": "filesystem",
+ "options": [],
+ "query": "node_filesystem_size_bytes{instance=\"$target\"}",
+ "refresh": 1,
+ "regex": "/mountpoint=\"([^\"]*)\"/",
+ "sort": 1,
+ "tagValuesQuery": null,
+ "tagsQuery": null,
+ "type": "query",
+ "useTags": false
+ }
+ ]
+ },
+ "time": {
+ "from": "now-1h",
+ "to": "now"
+ },
+ "timepicker": {
+ "hidden": false,
+ "refresh_intervals": [
+ "5s",
+ "10s",
+ "30s",
+ "1m",
+ "5m",
+ "15m",
+ "30m",
+ "1h",
+ "2h",
+ "1d"
+ ],
+ "time_options": [
+ "5m",
+ "15m",
+ "1h",
+ "6h",
+ "12h",
+ "24h",
+ "2d",
+ "7d",
+ "30d"
+ ]
+ },
+ "timezone": "utc",
+ "title": "Filesystem sizes auto-generated",
+ "uid": null,
+ "version": 0
+}
diff --git a/site-modules/profile/files/grafana/dashboards/grafanalib.loadavg.json b/site-modules/profile/files/grafana/dashboards/grafanalib.loadavg.json
new file mode 100644
--- /dev/null
+++ b/site-modules/profile/files/grafana/dashboards/grafanalib.loadavg.json
@@ -0,0 +1,358 @@
+{
+ "__inputs": [],
+ "annotations": {
+ "list": []
+ },
+ "description": "",
+ "editable": true,
+ "gnetId": null,
+ "hideControls": false,
+ "id": null,
+ "links": [],
+ "panels": [],
+ "refresh": "10s",
+ "rows": [
+ {
+ "collapse": false,
+ "editable": true,
+ "height": "250px",
+ "panels": [
+ {
+ "aliasColors": {},
+ "bars": false,
+ "cacheTimeout": null,
+ "datasource": "Prometheus (Pergamon)",
+ "description": null,
+ "editable": true,
+ "error": false,
+ "fill": 1,
+ "grid": {
+ "threshold1": null,
+ "threshold1Color": "rgba(216, 200, 27, 0.27)",
+ "threshold2": null,
+ "threshold2Color": "rgba(234, 112, 112, 0.22)"
+ },
+ "gridPos": null,
+ "height": null,
+ "hideTimeOverride": false,
+ "id": 1,
+ "interval": null,
+ "isNew": true,
+ "legend": {
+ "alignAsTable": false,
+ "avg": false,
+ "current": false,
+ "hideEmpty": false,
+ "hideZero": false,
+ "max": false,
+ "min": false,
+ "rightSide": false,
+ "show": true,
+ "sideWidth": null,
+ "sort": null,
+ "sortDesc": false,
+ "total": false,
+ "values": false
+ },
+ "lines": true,
+ "linewidth": 2,
+ "links": [],
+ "maxDataPoints": 100,
+ "maxPerRow": null,
+ "minSpan": null,
+ "nullPointMode": "connected",
+ "options": {
+ "alertThreshold": true,
+ "dataLinks": []
+ },
+ "percentage": false,
+ "pointradius": 5,
+ "points": false,
+ "renderer": "flot",
+ "repeat": null,
+ "repeatDirection": null,
+ "seriesOverrides": [],
+ "span": 6,
+ "stack": false,
+ "steppedLine": false,
+ "targets": [
+ {
+ "datasource": null,
+ "expr": "node_load5{instance=\"$target\"}",
+ "format": "time_series",
+ "hide": false,
+ "instant": false,
+ "interval": "",
+ "intervalFactor": 2,
+ "legendFormat": "5m load average",
+ "metric": "",
+ "refId": "A",
+ "step": 10,
+ "target": ""
+ }
+ ],
+ "thresholds": [],
+ "timeFrom": null,
+ "timeShift": null,
+ "title": "Load average",
+ "tooltip": {
+ "msResolution": true,
+ "shared": true,
+ "sort": 0,
+ "value_type": "cumulative"
+ },
+ "transformations": [],
+ "transparent": false,
+ "type": "graph",
+ "xaxis": {
+ "mode": "time",
+ "name": null,
+ "show": true,
+ "values": []
+ },
+ "yaxes": [
+ {
+ "decimals": null,
+ "format": "short",
+ "label": null,
+ "logBase": 1,
+ "max": null,
+ "min": null,
+ "show": true
+ },
+ {
+ "decimals": null,
+ "format": "short",
+ "label": null,
+ "logBase": 1,
+ "max": null,
+ "min": null,
+ "show": true
+ }
+ ],
+ "yaxis": {
+ "align": false,
+ "alignLevel": 0
+ }
+ },
+ {
+ "aliasColors": {},
+ "bars": false,
+ "cacheTimeout": null,
+ "datasource": "Prometheus (Pergamon)",
+ "description": null,
+ "editable": true,
+ "error": false,
+ "fill": 1,
+ "grid": {
+ "threshold1": null,
+ "threshold1Color": "rgba(216, 200, 27, 0.27)",
+ "threshold2": null,
+ "threshold2Color": "rgba(234, 112, 112, 0.22)"
+ },
+ "gridPos": null,
+ "height": null,
+ "hideTimeOverride": false,
+ "id": 2,
+ "interval": null,
+ "isNew": true,
+ "legend": {
+ "alignAsTable": false,
+ "avg": false,
+ "current": false,
+ "hideEmpty": false,
+ "hideZero": false,
+ "max": false,
+ "min": false,
+ "rightSide": false,
+ "show": true,
+ "sideWidth": null,
+ "sort": null,
+ "sortDesc": false,
+ "total": false,
+ "values": false
+ },
+ "lines": true,
+ "linewidth": 2,
+ "links": [],
+ "maxDataPoints": 100,
+ "maxPerRow": null,
+ "minSpan": null,
+ "nullPointMode": "connected",
+ "options": {
+ "alertThreshold": true,
+ "dataLinks": []
+ },
+ "percentage": false,
+ "pointradius": 5,
+ "points": false,
+ "renderer": "flot",
+ "repeat": null,
+ "repeatDirection": null,
+ "seriesOverrides": [],
+ "span": 6,
+ "stack": false,
+ "steppedLine": false,
+ "targets": [
+ {
+ "datasource": null,
+ "expr": "node_load5{instance=\"$target\"}",
+ "format": "time_series",
+ "hide": false,
+ "instant": false,
+ "interval": "",
+ "intervalFactor": 2,
+ "legendFormat": "5m load average",
+ "metric": "",
+ "refId": "A",
+ "step": 10,
+ "target": ""
+ }
+ ],
+ "thresholds": [],
+ "timeFrom": "1y",
+ "timeShift": null,
+ "title": "Load average",
+ "tooltip": {
+ "msResolution": true,
+ "shared": true,
+ "sort": 0,
+ "value_type": "cumulative"
+ },
+ "transformations": [],
+ "transparent": false,
+ "type": "graph",
+ "xaxis": {
+ "mode": "time",
+ "name": null,
+ "show": true,
+ "values": []
+ },
+ "yaxes": [
+ {
+ "decimals": null,
+ "format": "short",
+ "label": null,
+ "logBase": 1,
+ "max": null,
+ "min": null,
+ "show": true
+ },
+ {
+ "decimals": null,
+ "format": "short",
+ "label": null,
+ "logBase": 1,
+ "max": null,
+ "min": null,
+ "show": true
+ }
+ ],
+ "yaxis": {
+ "align": false,
+ "alignLevel": 0
+ }
+ }
+ ],
+ "repeat": null,
+ "showTitle": true,
+ "title": "Load average"
+ }
+ ],
+ "schemaVersion": 12,
+ "sharedCrosshair": false,
+ "style": "dark",
+ "tags": [],
+ "templating": {
+ "list": [
+ {
+ "allValue": null,
+ "auto": false,
+ "auto_count": 30,
+ "auto_min": "10s",
+ "current": {
+ "selected": false,
+ "tags": [],
+ "text": null,
+ "value": null
+ },
+ "datasource": "Prometheus (Pergamon)",
+ "hide": 0,
+ "includeAll": false,
+ "label": "",
+ "multi": false,
+ "name": "host",
+ "options": [],
+ "query": "node_uname_info{instance=\"$target\"}",
+ "refresh": 1,
+ "regex": "/nodename=\"([^\"]*)\"/",
+ "sort": 1,
+ "tagValuesQuery": null,
+ "tagsQuery": null,
+ "type": "query",
+ "useTags": false
+ },
+ {
+ "allValue": null,
+ "auto": false,
+ "auto_count": 30,
+ "auto_min": "10s",
+ "current": {
+ "selected": false,
+ "tags": [],
+ "text": null,
+ "value": null
+ },
+ "datasource": "Prometheus (Pergamon)",
+ "hide": 0,
+ "includeAll": false,
+ "label": "",
+ "multi": false,
+ "name": "target",
+ "options": [],
+ "query": "node_load5",
+ "refresh": 1,
+ "regex": "/instance=\"([^\"]*)\"/",
+ "sort": 1,
+ "tagValuesQuery": null,
+ "tagsQuery": null,
+ "type": "query",
+ "useTags": false
+ }
+ ]
+ },
+ "time": {
+ "from": "now-1h",
+ "to": "now"
+ },
+ "timepicker": {
+ "hidden": false,
+ "refresh_intervals": [
+ "5s",
+ "10s",
+ "30s",
+ "1m",
+ "5m",
+ "15m",
+ "30m",
+ "1h",
+ "2h",
+ "1d"
+ ],
+ "time_options": [
+ "5m",
+ "15m",
+ "1h",
+ "6h",
+ "12h",
+ "24h",
+ "2d",
+ "7d",
+ "30d"
+ ]
+ },
+ "timezone": "utc",
+ "title": "Loadavg auto-generated",
+ "uid": null,
+ "version": 0
+}
diff --git a/site-modules/profile/files/grafana/dashboards/grafanalib.memory.usage.json b/site-modules/profile/files/grafana/dashboards/grafanalib.memory.usage.json
new file mode 100644
--- /dev/null
+++ b/site-modules/profile/files/grafana/dashboards/grafanalib.memory.usage.json
@@ -0,0 +1,462 @@
+{
+ "__inputs": [],
+ "annotations": {
+ "list": []
+ },
+ "description": "",
+ "editable": true,
+ "gnetId": null,
+ "hideControls": false,
+ "id": null,
+ "links": [],
+ "panels": [],
+ "refresh": "10s",
+ "rows": [
+ {
+ "collapse": false,
+ "editable": true,
+ "height": "250px",
+ "panels": [
+ {
+ "aliasColors": {},
+ "bars": false,
+ "cacheTimeout": null,
+ "datasource": "Prometheus (Pergamon)",
+ "description": null,
+ "editable": true,
+ "error": false,
+ "fill": 1,
+ "grid": {
+ "threshold1": null,
+ "threshold1Color": "rgba(216, 200, 27, 0.27)",
+ "threshold2": null,
+ "threshold2Color": "rgba(234, 112, 112, 0.22)"
+ },
+ "gridPos": null,
+ "height": null,
+ "hideTimeOverride": false,
+ "id": 1,
+ "interval": null,
+ "isNew": true,
+ "legend": {
+ "alignAsTable": false,
+ "avg": true,
+ "current": true,
+ "hideEmpty": false,
+ "hideZero": false,
+ "max": true,
+ "min": true,
+ "rightSide": false,
+ "show": true,
+ "sideWidth": null,
+ "sort": null,
+ "sortDesc": false,
+ "total": false,
+ "values": true
+ },
+ "lines": true,
+ "linewidth": 2,
+ "links": [],
+ "maxDataPoints": 100,
+ "maxPerRow": null,
+ "minSpan": null,
+ "nullPointMode": "connected",
+ "options": {
+ "alertThreshold": true,
+ "dataLinks": []
+ },
+ "percentage": false,
+ "pointradius": 5,
+ "points": false,
+ "renderer": "flot",
+ "repeat": null,
+ "repeatDirection": null,
+ "seriesOverrides": [
+ {
+ "alias": "Total memory",
+ "stack": "false"
+ },
+ {
+ "alias": "Used swap",
+ "fill": "10",
+ "stack": "false"
+ }
+ ],
+ "span": 6,
+ "stack": true,
+ "steppedLine": false,
+ "targets": [
+ {
+ "datasource": null,
+ "expr": "node_memory_MemTotal_bytes{instance=\"$target\"}",
+ "format": "time_series",
+ "hide": false,
+ "instant": false,
+ "interval": "",
+ "intervalFactor": 2,
+ "legendFormat": "Total memory",
+ "metric": "",
+ "refId": "A",
+ "step": 10,
+ "target": ""
+ },
+ {
+ "datasource": null,
+ "expr": "node_memory_MemTotal_bytes{instance=\"$target\"} - \t node_memory_MemAvailable_bytes{instance=\"$target\"}",
+ "format": "time_series",
+ "hide": false,
+ "instant": false,
+ "interval": "",
+ "intervalFactor": 2,
+ "legendFormat": "Used memory",
+ "metric": "",
+ "refId": "B",
+ "step": 10,
+ "target": ""
+ },
+ {
+ "datasource": null,
+ "expr": "node_memory_Cached_bytes{instance=\"$target\"}",
+ "format": "time_series",
+ "hide": false,
+ "instant": false,
+ "interval": "",
+ "intervalFactor": 2,
+ "legendFormat": "File cache",
+ "metric": "",
+ "refId": "C",
+ "step": 10,
+ "target": ""
+ },
+ {
+ "datasource": null,
+ "expr": "node_memory_SwapTotal_bytes{instance=\"$target\"} - \t node_memory_SwapFree_bytes{instance=\"$target\"}",
+ "format": "time_series",
+ "hide": false,
+ "instant": false,
+ "interval": "",
+ "intervalFactor": 2,
+ "legendFormat": "Used swap",
+ "metric": "",
+ "refId": "D",
+ "step": 10,
+ "target": ""
+ }
+ ],
+ "thresholds": [],
+ "timeFrom": null,
+ "timeShift": null,
+ "title": "Memory usage",
+ "tooltip": {
+ "msResolution": true,
+ "shared": true,
+ "sort": 0,
+ "value_type": "individual"
+ },
+ "transformations": [],
+ "transparent": false,
+ "type": "graph",
+ "xaxis": {
+ "mode": "time",
+ "name": null,
+ "show": true,
+ "values": []
+ },
+ "yaxes": [
+ {
+ "decimals": null,
+ "format": "bytes",
+ "label": null,
+ "logBase": 1,
+ "max": null,
+ "min": null,
+ "show": true
+ },
+ {
+ "decimals": null,
+ "format": "short",
+ "label": null,
+ "logBase": 1,
+ "max": null,
+ "min": null,
+ "show": true
+ }
+ ],
+ "yaxis": {
+ "align": false,
+ "alignLevel": 0
+ }
+ },
+ {
+ "aliasColors": {},
+ "bars": false,
+ "cacheTimeout": null,
+ "datasource": "Prometheus (Pergamon)",
+ "description": null,
+ "editable": true,
+ "error": false,
+ "fill": 1,
+ "grid": {
+ "threshold1": null,
+ "threshold1Color": "rgba(216, 200, 27, 0.27)",
+ "threshold2": null,
+ "threshold2Color": "rgba(234, 112, 112, 0.22)"
+ },
+ "gridPos": null,
+ "height": null,
+ "hideTimeOverride": false,
+ "id": 2,
+ "interval": null,
+ "isNew": true,
+ "legend": {
+ "alignAsTable": false,
+ "avg": true,
+ "current": true,
+ "hideEmpty": false,
+ "hideZero": false,
+ "max": true,
+ "min": true,
+ "rightSide": false,
+ "show": true,
+ "sideWidth": null,
+ "sort": null,
+ "sortDesc": false,
+ "total": false,
+ "values": true
+ },
+ "lines": true,
+ "linewidth": 2,
+ "links": [],
+ "maxDataPoints": 100,
+ "maxPerRow": null,
+ "minSpan": null,
+ "nullPointMode": "connected",
+ "options": {
+ "alertThreshold": true,
+ "dataLinks": []
+ },
+ "percentage": false,
+ "pointradius": 5,
+ "points": false,
+ "renderer": "flot",
+ "repeat": null,
+ "repeatDirection": null,
+ "seriesOverrides": [
+ {
+ "alias": "Total memory",
+ "stack": "false"
+ },
+ {
+ "alias": "Used swap",
+ "fill": "10",
+ "stack": "false"
+ }
+ ],
+ "span": 6,
+ "stack": true,
+ "steppedLine": false,
+ "targets": [
+ {
+ "datasource": null,
+ "expr": "node_memory_MemTotal_bytes{instance=\"$target\"}",
+ "format": "time_series",
+ "hide": false,
+ "instant": false,
+ "interval": "",
+ "intervalFactor": 2,
+ "legendFormat": "Total memory",
+ "metric": "",
+ "refId": "A",
+ "step": 10,
+ "target": ""
+ },
+ {
+ "datasource": null,
+ "expr": "node_memory_MemTotal_bytes{instance=\"$target\"} - \t node_memory_MemAvailable_bytes{instance=\"$target\"}",
+ "format": "time_series",
+ "hide": false,
+ "instant": false,
+ "interval": "",
+ "intervalFactor": 2,
+ "legendFormat": "Used memory",
+ "metric": "",
+ "refId": "B",
+ "step": 10,
+ "target": ""
+ },
+ {
+ "datasource": null,
+ "expr": "node_memory_Cached_bytes{instance=\"$target\"}",
+ "format": "time_series",
+ "hide": false,
+ "instant": false,
+ "interval": "",
+ "intervalFactor": 2,
+ "legendFormat": "File cache",
+ "metric": "",
+ "refId": "C",
+ "step": 10,
+ "target": ""
+ },
+ {
+ "datasource": null,
+ "expr": "node_memory_SwapTotal_bytes{instance=\"$target\"} - \t node_memory_SwapFree_bytes{instance=\"$target\"}",
+ "format": "time_series",
+ "hide": false,
+ "instant": false,
+ "interval": "",
+ "intervalFactor": 2,
+ "legendFormat": "Used swap",
+ "metric": "",
+ "refId": "D",
+ "step": 10,
+ "target": ""
+ }
+ ],
+ "thresholds": [],
+ "timeFrom": "1y",
+ "timeShift": null,
+ "title": "Memory usage",
+ "tooltip": {
+ "msResolution": true,
+ "shared": true,
+ "sort": 0,
+ "value_type": "individual"
+ },
+ "transformations": [],
+ "transparent": false,
+ "type": "graph",
+ "xaxis": {
+ "mode": "time",
+ "name": null,
+ "show": true,
+ "values": []
+ },
+ "yaxes": [
+ {
+ "decimals": null,
+ "format": "bytes",
+ "label": null,
+ "logBase": 1,
+ "max": null,
+ "min": null,
+ "show": true
+ },
+ {
+ "decimals": null,
+ "format": "short",
+ "label": null,
+ "logBase": 1,
+ "max": null,
+ "min": null,
+ "show": true
+ }
+ ],
+ "yaxis": {
+ "align": false,
+ "alignLevel": 0
+ }
+ }
+ ],
+ "repeat": null,
+ "showTitle": true,
+ "title": "Memory"
+ }
+ ],
+ "schemaVersion": 12,
+ "sharedCrosshair": false,
+ "style": "dark",
+ "tags": [],
+ "templating": {
+ "list": [
+ {
+ "allValue": null,
+ "auto": false,
+ "auto_count": 30,
+ "auto_min": "10s",
+ "current": {
+ "selected": false,
+ "tags": [],
+ "text": null,
+ "value": null
+ },
+ "datasource": "Prometheus (Pergamon)",
+ "hide": 0,
+ "includeAll": false,
+ "label": "",
+ "multi": false,
+ "name": "host",
+ "options": [],
+ "query": "node_uname_info{instance=\"$target\"}",
+ "refresh": 1,
+ "regex": "/nodename=\"([^\"]*)\"/",
+ "sort": 1,
+ "tagValuesQuery": null,
+ "tagsQuery": null,
+ "type": "query",
+ "useTags": false
+ },
+ {
+ "allValue": null,
+ "auto": false,
+ "auto_count": 30,
+ "auto_min": "10s",
+ "current": {
+ "selected": false,
+ "tags": [],
+ "text": null,
+ "value": null
+ },
+ "datasource": "Prometheus (Pergamon)",
+ "hide": 0,
+ "includeAll": false,
+ "label": "",
+ "multi": false,
+ "name": "target",
+ "options": [],
+ "query": "node_uname_info",
+ "refresh": 1,
+ "regex": "/instance=\"([^\"]*)\"/",
+ "sort": 1,
+ "tagValuesQuery": null,
+ "tagsQuery": null,
+ "type": "query",
+ "useTags": false
+ }
+ ]
+ },
+ "time": {
+ "from": "now-1h",
+ "to": "now"
+ },
+ "timepicker": {
+ "hidden": false,
+ "refresh_intervals": [
+ "5s",
+ "10s",
+ "30s",
+ "1m",
+ "5m",
+ "15m",
+ "30m",
+ "1h",
+ "2h",
+ "1d"
+ ],
+ "time_options": [
+ "5m",
+ "15m",
+ "1h",
+ "6h",
+ "12h",
+ "24h",
+ "2d",
+ "7d",
+ "30d"
+ ]
+ },
+ "timezone": "utc",
+ "title": "Memory usage auto-generated",
+ "uid": null,
+ "version": 0
+}
diff --git a/site-modules/profile/files/grafana/dashboards/grafanalib.network.traffic.json b/site-modules/profile/files/grafana/dashboards/grafanalib.network.traffic.json
new file mode 100644
--- /dev/null
+++ b/site-modules/profile/files/grafana/dashboards/grafanalib.network.traffic.json
@@ -0,0 +1,413 @@
+{
+ "__inputs": [],
+ "annotations": {
+ "list": []
+ },
+ "description": "",
+ "editable": true,
+ "gnetId": null,
+ "hideControls": false,
+ "id": null,
+ "links": [],
+ "panels": [],
+ "refresh": "10s",
+ "rows": [
+ {
+ "collapse": false,
+ "editable": true,
+ "height": "250px",
+ "panels": [
+ {
+ "aliasColors": {},
+ "bars": false,
+ "cacheTimeout": null,
+ "datasource": "Prometheus (Pergamon)",
+ "description": null,
+ "editable": true,
+ "error": false,
+ "fill": 1,
+ "grid": {
+ "threshold1": null,
+ "threshold1Color": "rgba(216, 200, 27, 0.27)",
+ "threshold2": null,
+ "threshold2Color": "rgba(234, 112, 112, 0.22)"
+ },
+ "gridPos": null,
+ "height": null,
+ "hideTimeOverride": false,
+ "id": 1,
+ "interval": null,
+ "isNew": true,
+ "legend": {
+ "alignAsTable": false,
+ "avg": true,
+ "current": true,
+ "hideEmpty": false,
+ "hideZero": false,
+ "max": true,
+ "min": true,
+ "rightSide": false,
+ "show": true,
+ "sideWidth": null,
+ "sort": null,
+ "sortDesc": false,
+ "total": false,
+ "values": true
+ },
+ "lines": true,
+ "linewidth": 2,
+ "links": [],
+ "maxDataPoints": 100,
+ "maxPerRow": null,
+ "minSpan": null,
+ "nullPointMode": "connected",
+ "options": {
+ "alertThreshold": true,
+ "dataLinks": []
+ },
+ "percentage": false,
+ "pointradius": 5,
+ "points": false,
+ "renderer": "flot",
+ "repeat": null,
+ "repeatDirection": null,
+ "seriesOverrides": [],
+ "span": 6,
+ "stack": true,
+ "steppedLine": false,
+ "targets": [
+ {
+ "datasource": null,
+ "expr": "irate(node_network_receive_bytes_total{instance=\"$target\",device=\"$interface\"}[5m]) * 8",
+ "format": "time_series",
+ "hide": false,
+ "instant": false,
+ "interval": "",
+ "intervalFactor": 2,
+ "legendFormat": "bytes per second in",
+ "metric": "",
+ "refId": "A",
+ "step": 10,
+ "target": ""
+ },
+ {
+ "datasource": null,
+ "expr": "irate(node_network_transmit_bytes_total{instance=\"$target\",device=\"$interface\"}[5m]) * 8",
+ "format": "time_series",
+ "hide": false,
+ "instant": false,
+ "interval": "",
+ "intervalFactor": 2,
+ "legendFormat": "bytes per second out",
+ "metric": "",
+ "refId": "B",
+ "step": 10,
+ "target": ""
+ }
+ ],
+ "thresholds": [],
+ "timeFrom": null,
+ "timeShift": null,
+ "title": "Network traffic",
+ "tooltip": {
+ "msResolution": true,
+ "shared": true,
+ "sort": 0,
+ "value_type": "individual"
+ },
+ "transformations": [],
+ "transparent": false,
+ "type": "graph",
+ "xaxis": {
+ "mode": "time",
+ "name": null,
+ "show": true,
+ "values": []
+ },
+ "yaxes": [
+ {
+ "decimals": null,
+ "format": "bits",
+ "label": null,
+ "logBase": 1,
+ "max": null,
+ "min": null,
+ "show": true
+ },
+ {
+ "decimals": null,
+ "format": "short",
+ "label": null,
+ "logBase": 1,
+ "max": null,
+ "min": null,
+ "show": true
+ }
+ ],
+ "yaxis": {
+ "align": false,
+ "alignLevel": 0
+ }
+ },
+ {
+ "aliasColors": {},
+ "bars": false,
+ "cacheTimeout": null,
+ "datasource": "Prometheus (Pergamon)",
+ "description": null,
+ "editable": true,
+ "error": false,
+ "fill": 1,
+ "grid": {
+ "threshold1": null,
+ "threshold1Color": "rgba(216, 200, 27, 0.27)",
+ "threshold2": null,
+ "threshold2Color": "rgba(234, 112, 112, 0.22)"
+ },
+ "gridPos": null,
+ "height": null,
+ "hideTimeOverride": false,
+ "id": 2,
+ "interval": null,
+ "isNew": true,
+ "legend": {
+ "alignAsTable": false,
+ "avg": true,
+ "current": true,
+ "hideEmpty": false,
+ "hideZero": false,
+ "max": true,
+ "min": true,
+ "rightSide": false,
+ "show": true,
+ "sideWidth": null,
+ "sort": null,
+ "sortDesc": false,
+ "total": false,
+ "values": true
+ },
+ "lines": true,
+ "linewidth": 2,
+ "links": [],
+ "maxDataPoints": 100,
+ "maxPerRow": null,
+ "minSpan": null,
+ "nullPointMode": "connected",
+ "options": {
+ "alertThreshold": true,
+ "dataLinks": []
+ },
+ "percentage": false,
+ "pointradius": 5,
+ "points": false,
+ "renderer": "flot",
+ "repeat": null,
+ "repeatDirection": null,
+ "seriesOverrides": [],
+ "span": 6,
+ "stack": true,
+ "steppedLine": false,
+ "targets": [
+ {
+ "datasource": null,
+ "expr": "irate(node_network_receive_bytes_total{instance=\"$target\",device=\"$interface\"}[5m]) * 8",
+ "format": "time_series",
+ "hide": false,
+ "instant": false,
+ "interval": "",
+ "intervalFactor": 2,
+ "legendFormat": "bytes per second in",
+ "metric": "",
+ "refId": "A",
+ "step": 10,
+ "target": ""
+ },
+ {
+ "datasource": null,
+ "expr": "irate(node_network_transmit_bytes_total{instance=\"$target\",device=\"$interface\"}[5m]) * 8",
+ "format": "time_series",
+ "hide": false,
+ "instant": false,
+ "interval": "",
+ "intervalFactor": 2,
+ "legendFormat": "bytes per second out",
+ "metric": "",
+ "refId": "B",
+ "step": 10,
+ "target": ""
+ }
+ ],
+ "thresholds": [],
+ "timeFrom": "1y",
+ "timeShift": null,
+ "title": "Network traffic",
+ "tooltip": {
+ "msResolution": true,
+ "shared": true,
+ "sort": 0,
+ "value_type": "individual"
+ },
+ "transformations": [],
+ "transparent": false,
+ "type": "graph",
+ "xaxis": {
+ "mode": "time",
+ "name": null,
+ "show": true,
+ "values": []
+ },
+ "yaxes": [
+ {
+ "decimals": null,
+ "format": "bits",
+ "label": null,
+ "logBase": 1,
+ "max": null,
+ "min": null,
+ "show": true
+ },
+ {
+ "decimals": null,
+ "format": "short",
+ "label": null,
+ "logBase": 1,
+ "max": null,
+ "min": null,
+ "show": true
+ }
+ ],
+ "yaxis": {
+ "align": false,
+ "alignLevel": 0
+ }
+ }
+ ],
+ "repeat": "interface",
+ "showTitle": true,
+ "title": "$interface traffic"
+ }
+ ],
+ "schemaVersion": 12,
+ "sharedCrosshair": false,
+ "style": "dark",
+ "tags": [],
+ "templating": {
+ "list": [
+ {
+ "allValue": null,
+ "auto": false,
+ "auto_count": 30,
+ "auto_min": "10s",
+ "current": {
+ "selected": false,
+ "tags": [],
+ "text": null,
+ "value": null
+ },
+ "datasource": "Prometheus (Pergamon)",
+ "hide": 0,
+ "includeAll": false,
+ "label": "",
+ "multi": false,
+ "name": "host",
+ "options": [],
+ "query": "node_uname_info{instance=\"$target\"}",
+ "refresh": 1,
+ "regex": "/nodename=\"([^\"]*)\"/",
+ "sort": 1,
+ "tagValuesQuery": null,
+ "tagsQuery": null,
+ "type": "query",
+ "useTags": false
+ },
+ {
+ "allValue": null,
+ "auto": false,
+ "auto_count": 30,
+ "auto_min": "10s",
+ "current": {
+ "selected": false,
+ "tags": [],
+ "text": null,
+ "value": null
+ },
+ "datasource": "Prometheus (Pergamon)",
+ "hide": 0,
+ "includeAll": false,
+ "label": "",
+ "multi": false,
+ "name": "target",
+ "options": [],
+ "query": "node_network_receive_bytes_total",
+ "refresh": 1,
+ "regex": "/instance=\"([^\"]*)\"/",
+ "sort": 1,
+ "tagValuesQuery": null,
+ "tagsQuery": null,
+ "type": "query",
+ "useTags": false
+ },
+ {
+ "allValue": null,
+ "auto": false,
+ "auto_count": 30,
+ "auto_min": "10s",
+ "current": {
+ "selected": true,
+ "tags": [],
+ "text": "All",
+ "value": "All"
+ },
+ "datasource": "Prometheus (Pergamon)",
+ "hide": 2,
+ "includeAll": true,
+ "label": "",
+ "multi": false,
+ "name": "interface",
+ "options": [],
+ "query": "node_network_receive_bytes_total{instance=\"$target\"}",
+ "refresh": 1,
+ "regex": "/device=\"([^\"]*)/",
+ "sort": 1,
+ "tagValuesQuery": null,
+ "tagsQuery": null,
+ "type": "query",
+ "useTags": false
+ }
+ ]
+ },
+ "time": {
+ "from": "now-1h",
+ "to": "now"
+ },
+ "timepicker": {
+ "hidden": false,
+ "refresh_intervals": [
+ "5s",
+ "10s",
+ "30s",
+ "1m",
+ "5m",
+ "15m",
+ "30m",
+ "1h",
+ "2h",
+ "1d"
+ ],
+ "time_options": [
+ "5m",
+ "15m",
+ "1h",
+ "6h",
+ "12h",
+ "24h",
+ "2d",
+ "7d",
+ "30d"
+ ]
+ },
+ "timezone": "utc",
+ "title": "Network traffic auto-generated",
+ "uid": null,
+ "version": 0
+}
diff --git a/site-modules/profile/files/grafana/dashboards/grafanalib.swap.json b/site-modules/profile/files/grafana/dashboards/grafanalib.swap.json
new file mode 100644
--- /dev/null
+++ b/site-modules/profile/files/grafana/dashboards/grafanalib.swap.json
@@ -0,0 +1,386 @@
+{
+ "__inputs": [],
+ "annotations": {
+ "list": []
+ },
+ "description": "",
+ "editable": true,
+ "gnetId": null,
+ "hideControls": false,
+ "id": null,
+ "links": [],
+ "panels": [],
+ "refresh": "10s",
+ "rows": [
+ {
+ "collapse": false,
+ "editable": true,
+ "height": "250px",
+ "panels": [
+ {
+ "aliasColors": {},
+ "bars": false,
+ "cacheTimeout": null,
+ "datasource": "Prometheus (Pergamon)",
+ "description": null,
+ "editable": true,
+ "error": false,
+ "fill": 1,
+ "grid": {
+ "threshold1": null,
+ "threshold1Color": "rgba(216, 200, 27, 0.27)",
+ "threshold2": null,
+ "threshold2Color": "rgba(234, 112, 112, 0.22)"
+ },
+ "gridPos": null,
+ "height": null,
+ "hideTimeOverride": false,
+ "id": 1,
+ "interval": null,
+ "isNew": true,
+ "legend": {
+ "alignAsTable": false,
+ "avg": false,
+ "current": false,
+ "hideEmpty": false,
+ "hideZero": false,
+ "max": false,
+ "min": false,
+ "rightSide": false,
+ "show": true,
+ "sideWidth": null,
+ "sort": null,
+ "sortDesc": false,
+ "total": false,
+ "values": false
+ },
+ "lines": true,
+ "linewidth": 2,
+ "links": [],
+ "maxDataPoints": 100,
+ "maxPerRow": null,
+ "minSpan": null,
+ "nullPointMode": "connected",
+ "options": {
+ "alertThreshold": true,
+ "dataLinks": []
+ },
+ "percentage": false,
+ "pointradius": 5,
+ "points": false,
+ "renderer": "flot",
+ "repeat": null,
+ "repeatDirection": null,
+ "seriesOverrides": [],
+ "span": 6,
+ "stack": false,
+ "steppedLine": false,
+ "targets": [
+ {
+ "datasource": null,
+ "expr": "irate(node_vmstat_pswpin{instance=\"$target\"}[5m])",
+ "format": "time_series",
+ "hide": false,
+ "instant": false,
+ "interval": "",
+ "intervalFactor": 2,
+ "legendFormat": "pages per second in",
+ "metric": "",
+ "refId": "A",
+ "step": 10,
+ "target": ""
+ },
+ {
+ "datasource": null,
+ "expr": "irate(node_vmstat_pswpout{instance=\"$target\"}[5m])",
+ "format": "time_series",
+ "hide": false,
+ "instant": false,
+ "interval": "",
+ "intervalFactor": 2,
+ "legendFormat": "pages per second out",
+ "metric": "",
+ "refId": "B",
+ "step": 10,
+ "target": ""
+ }
+ ],
+ "thresholds": [],
+ "timeFrom": null,
+ "timeShift": null,
+ "title": "Swap activity",
+ "tooltip": {
+ "msResolution": true,
+ "shared": true,
+ "sort": 0,
+ "value_type": "cumulative"
+ },
+ "transformations": [],
+ "transparent": false,
+ "type": "graph",
+ "xaxis": {
+ "mode": "time",
+ "name": null,
+ "show": true,
+ "values": []
+ },
+ "yaxes": [
+ {
+ "decimals": null,
+ "format": "short",
+ "label": null,
+ "logBase": 1,
+ "max": null,
+ "min": null,
+ "show": true
+ },
+ {
+ "decimals": null,
+ "format": "short",
+ "label": null,
+ "logBase": 1,
+ "max": null,
+ "min": null,
+ "show": true
+ }
+ ],
+ "yaxis": {
+ "align": false,
+ "alignLevel": 0
+ }
+ },
+ {
+ "aliasColors": {},
+ "bars": false,
+ "cacheTimeout": null,
+ "datasource": "Prometheus (Pergamon)",
+ "description": null,
+ "editable": true,
+ "error": false,
+ "fill": 1,
+ "grid": {
+ "threshold1": null,
+ "threshold1Color": "rgba(216, 200, 27, 0.27)",
+ "threshold2": null,
+ "threshold2Color": "rgba(234, 112, 112, 0.22)"
+ },
+ "gridPos": null,
+ "height": null,
+ "hideTimeOverride": false,
+ "id": 2,
+ "interval": null,
+ "isNew": true,
+ "legend": {
+ "alignAsTable": false,
+ "avg": false,
+ "current": false,
+ "hideEmpty": false,
+ "hideZero": false,
+ "max": false,
+ "min": false,
+ "rightSide": false,
+ "show": true,
+ "sideWidth": null,
+ "sort": null,
+ "sortDesc": false,
+ "total": false,
+ "values": false
+ },
+ "lines": true,
+ "linewidth": 2,
+ "links": [],
+ "maxDataPoints": 100,
+ "maxPerRow": null,
+ "minSpan": null,
+ "nullPointMode": "connected",
+ "options": {
+ "alertThreshold": true,
+ "dataLinks": []
+ },
+ "percentage": false,
+ "pointradius": 5,
+ "points": false,
+ "renderer": "flot",
+ "repeat": null,
+ "repeatDirection": null,
+ "seriesOverrides": [],
+ "span": 6,
+ "stack": false,
+ "steppedLine": false,
+ "targets": [
+ {
+ "datasource": null,
+ "expr": "irate(node_vmstat_pswpin{instance=\"$target\"}[5m])",
+ "format": "time_series",
+ "hide": false,
+ "instant": false,
+ "interval": "",
+ "intervalFactor": 2,
+ "legendFormat": "pages per second in",
+ "metric": "",
+ "refId": "A",
+ "step": 10,
+ "target": ""
+ },
+ {
+ "datasource": null,
+ "expr": "irate(node_vmstat_pswpout{instance=\"$target\"}[5m])",
+ "format": "time_series",
+ "hide": false,
+ "instant": false,
+ "interval": "",
+ "intervalFactor": 2,
+ "legendFormat": "pages per second out",
+ "metric": "",
+ "refId": "B",
+ "step": 10,
+ "target": ""
+ }
+ ],
+ "thresholds": [],
+ "timeFrom": "1y",
+ "timeShift": null,
+ "title": "Swap activity",
+ "tooltip": {
+ "msResolution": true,
+ "shared": true,
+ "sort": 0,
+ "value_type": "cumulative"
+ },
+ "transformations": [],
+ "transparent": false,
+ "type": "graph",
+ "xaxis": {
+ "mode": "time",
+ "name": null,
+ "show": true,
+ "values": []
+ },
+ "yaxes": [
+ {
+ "decimals": null,
+ "format": "short",
+ "label": null,
+ "logBase": 1,
+ "max": null,
+ "min": null,
+ "show": true
+ },
+ {
+ "decimals": null,
+ "format": "short",
+ "label": null,
+ "logBase": 1,
+ "max": null,
+ "min": null,
+ "show": true
+ }
+ ],
+ "yaxis": {
+ "align": false,
+ "alignLevel": 0
+ }
+ }
+ ],
+ "repeat": null,
+ "showTitle": true,
+ "title": "Swap"
+ }
+ ],
+ "schemaVersion": 12,
+ "sharedCrosshair": false,
+ "style": "dark",
+ "tags": [],
+ "templating": {
+ "list": [
+ {
+ "allValue": null,
+ "auto": false,
+ "auto_count": 30,
+ "auto_min": "10s",
+ "current": {
+ "selected": false,
+ "tags": [],
+ "text": null,
+ "value": null
+ },
+ "datasource": "Prometheus (Pergamon)",
+ "hide": 0,
+ "includeAll": false,
+ "label": "",
+ "multi": false,
+ "name": "host",
+ "options": [],
+ "query": "node_uname_info{instance=\"$target\"}",
+ "refresh": 1,
+ "regex": "/nodename=\"([^\"]*)\"/",
+ "sort": 1,
+ "tagValuesQuery": null,
+ "tagsQuery": null,
+ "type": "query",
+ "useTags": false
+ },
+ {
+ "allValue": null,
+ "auto": false,
+ "auto_count": 30,
+ "auto_min": "10s",
+ "current": {
+ "selected": false,
+ "tags": [],
+ "text": null,
+ "value": null
+ },
+ "datasource": "Prometheus (Pergamon)",
+ "hide": 0,
+ "includeAll": false,
+ "label": "",
+ "multi": false,
+ "name": "target",
+ "options": [],
+ "query": "node_memory_SwapTotal_bytes",
+ "refresh": 1,
+ "regex": "/instance=\"([^\"]*)\"/",
+ "sort": 1,
+ "tagValuesQuery": null,
+ "tagsQuery": null,
+ "type": "query",
+ "useTags": false
+ }
+ ]
+ },
+ "time": {
+ "from": "now-1h",
+ "to": "now"
+ },
+ "timepicker": {
+ "hidden": false,
+ "refresh_intervals": [
+ "5s",
+ "10s",
+ "30s",
+ "1m",
+ "5m",
+ "15m",
+ "30m",
+ "1h",
+ "2h",
+ "1d"
+ ],
+ "time_options": [
+ "5m",
+ "15m",
+ "1h",
+ "6h",
+ "12h",
+ "24h",
+ "2d",
+ "7d",
+ "30d"
+ ]
+ },
+ "timezone": "utc",
+ "title": "Swap usage auto-generated",
+ "uid": null,
+ "version": 0
+}
diff --git a/site-modules/profile/files/grafana/dashboards/grafanalib.uptime.json b/site-modules/profile/files/grafana/dashboards/grafanalib.uptime.json
new file mode 100644
--- /dev/null
+++ b/site-modules/profile/files/grafana/dashboards/grafanalib.uptime.json
@@ -0,0 +1,358 @@
+{
+ "__inputs": [],
+ "annotations": {
+ "list": []
+ },
+ "description": "",
+ "editable": true,
+ "gnetId": null,
+ "hideControls": false,
+ "id": null,
+ "links": [],
+ "panels": [],
+ "refresh": "10s",
+ "rows": [
+ {
+ "collapse": false,
+ "editable": true,
+ "height": "250px",
+ "panels": [
+ {
+ "aliasColors": {},
+ "bars": false,
+ "cacheTimeout": null,
+ "datasource": "Prometheus (Pergamon)",
+ "description": null,
+ "editable": true,
+ "error": false,
+ "fill": 1,
+ "grid": {
+ "threshold1": null,
+ "threshold1Color": "rgba(216, 200, 27, 0.27)",
+ "threshold2": null,
+ "threshold2Color": "rgba(234, 112, 112, 0.22)"
+ },
+ "gridPos": null,
+ "height": null,
+ "hideTimeOverride": false,
+ "id": 1,
+ "interval": null,
+ "isNew": true,
+ "legend": {
+ "alignAsTable": false,
+ "avg": false,
+ "current": false,
+ "hideEmpty": false,
+ "hideZero": false,
+ "max": false,
+ "min": false,
+ "rightSide": false,
+ "show": true,
+ "sideWidth": null,
+ "sort": null,
+ "sortDesc": false,
+ "total": false,
+ "values": false
+ },
+ "lines": true,
+ "linewidth": 2,
+ "links": [],
+ "maxDataPoints": 100,
+ "maxPerRow": null,
+ "minSpan": null,
+ "nullPointMode": "connected",
+ "options": {
+ "alertThreshold": true,
+ "dataLinks": []
+ },
+ "percentage": false,
+ "pointradius": 5,
+ "points": false,
+ "renderer": "flot",
+ "repeat": null,
+ "repeatDirection": null,
+ "seriesOverrides": [],
+ "span": 6,
+ "stack": false,
+ "steppedLine": false,
+ "targets": [
+ {
+ "datasource": null,
+ "expr": "time() - node_boot_time_seconds{instance=\"$target\"}",
+ "format": "time_series",
+ "hide": false,
+ "instant": false,
+ "interval": "",
+ "intervalFactor": 2,
+ "legendFormat": "uptime",
+ "metric": "",
+ "refId": "A",
+ "step": 10,
+ "target": ""
+ }
+ ],
+ "thresholds": [],
+ "timeFrom": null,
+ "timeShift": null,
+ "title": "Uptime",
+ "tooltip": {
+ "msResolution": true,
+ "shared": true,
+ "sort": 0,
+ "value_type": "cumulative"
+ },
+ "transformations": [],
+ "transparent": false,
+ "type": "graph",
+ "xaxis": {
+ "mode": "time",
+ "name": null,
+ "show": true,
+ "values": []
+ },
+ "yaxes": [
+ {
+ "decimals": null,
+ "format": "s",
+ "label": null,
+ "logBase": 1,
+ "max": null,
+ "min": null,
+ "show": true
+ },
+ {
+ "decimals": null,
+ "format": "short",
+ "label": null,
+ "logBase": 1,
+ "max": null,
+ "min": null,
+ "show": true
+ }
+ ],
+ "yaxis": {
+ "align": false,
+ "alignLevel": 0
+ }
+ },
+ {
+ "aliasColors": {},
+ "bars": false,
+ "cacheTimeout": null,
+ "datasource": "Prometheus (Pergamon)",
+ "description": null,
+ "editable": true,
+ "error": false,
+ "fill": 1,
+ "grid": {
+ "threshold1": null,
+ "threshold1Color": "rgba(216, 200, 27, 0.27)",
+ "threshold2": null,
+ "threshold2Color": "rgba(234, 112, 112, 0.22)"
+ },
+ "gridPos": null,
+ "height": null,
+ "hideTimeOverride": false,
+ "id": 2,
+ "interval": null,
+ "isNew": true,
+ "legend": {
+ "alignAsTable": false,
+ "avg": false,
+ "current": false,
+ "hideEmpty": false,
+ "hideZero": false,
+ "max": false,
+ "min": false,
+ "rightSide": false,
+ "show": true,
+ "sideWidth": null,
+ "sort": null,
+ "sortDesc": false,
+ "total": false,
+ "values": false
+ },
+ "lines": true,
+ "linewidth": 2,
+ "links": [],
+ "maxDataPoints": 100,
+ "maxPerRow": null,
+ "minSpan": null,
+ "nullPointMode": "connected",
+ "options": {
+ "alertThreshold": true,
+ "dataLinks": []
+ },
+ "percentage": false,
+ "pointradius": 5,
+ "points": false,
+ "renderer": "flot",
+ "repeat": null,
+ "repeatDirection": null,
+ "seriesOverrides": [],
+ "span": 6,
+ "stack": false,
+ "steppedLine": false,
+ "targets": [
+ {
+ "datasource": null,
+ "expr": "time() - node_boot_time_seconds{instance=\"$target\"}",
+ "format": "time_series",
+ "hide": false,
+ "instant": false,
+ "interval": "",
+ "intervalFactor": 2,
+ "legendFormat": "uptime",
+ "metric": "",
+ "refId": "A",
+ "step": 10,
+ "target": ""
+ }
+ ],
+ "thresholds": [],
+ "timeFrom": "1y",
+ "timeShift": null,
+ "title": "Uptime",
+ "tooltip": {
+ "msResolution": true,
+ "shared": true,
+ "sort": 0,
+ "value_type": "cumulative"
+ },
+ "transformations": [],
+ "transparent": false,
+ "type": "graph",
+ "xaxis": {
+ "mode": "time",
+ "name": null,
+ "show": true,
+ "values": []
+ },
+ "yaxes": [
+ {
+ "decimals": null,
+ "format": "s",
+ "label": null,
+ "logBase": 1,
+ "max": null,
+ "min": null,
+ "show": true
+ },
+ {
+ "decimals": null,
+ "format": "short",
+ "label": null,
+ "logBase": 1,
+ "max": null,
+ "min": null,
+ "show": true
+ }
+ ],
+ "yaxis": {
+ "align": false,
+ "alignLevel": 0
+ }
+ }
+ ],
+ "repeat": null,
+ "showTitle": true,
+ "title": "Uptime"
+ }
+ ],
+ "schemaVersion": 12,
+ "sharedCrosshair": false,
+ "style": "dark",
+ "tags": [],
+ "templating": {
+ "list": [
+ {
+ "allValue": null,
+ "auto": false,
+ "auto_count": 30,
+ "auto_min": "10s",
+ "current": {
+ "selected": false,
+ "tags": [],
+ "text": null,
+ "value": null
+ },
+ "datasource": "Prometheus (Pergamon)",
+ "hide": 0,
+ "includeAll": false,
+ "label": "",
+ "multi": false,
+ "name": "host",
+ "options": [],
+ "query": "node_uname_info{instance=\"$target\"}",
+ "refresh": 1,
+ "regex": "/nodename=\"([^\"]*)\"/",
+ "sort": 1,
+ "tagValuesQuery": null,
+ "tagsQuery": null,
+ "type": "query",
+ "useTags": false
+ },
+ {
+ "allValue": null,
+ "auto": false,
+ "auto_count": 30,
+ "auto_min": "10s",
+ "current": {
+ "selected": false,
+ "tags": [],
+ "text": null,
+ "value": null
+ },
+ "datasource": "Prometheus (Pergamon)",
+ "hide": 0,
+ "includeAll": false,
+ "label": "",
+ "multi": false,
+ "name": "target",
+ "options": [],
+ "query": "node_boot_time_seconds",
+ "refresh": 1,
+ "regex": "/instance=\"([^\"]*)\"/",
+ "sort": 1,
+ "tagValuesQuery": null,
+ "tagsQuery": null,
+ "type": "query",
+ "useTags": false
+ }
+ ]
+ },
+ "time": {
+ "from": "now-1h",
+ "to": "now"
+ },
+ "timepicker": {
+ "hidden": false,
+ "refresh_intervals": [
+ "5s",
+ "10s",
+ "30s",
+ "1m",
+ "5m",
+ "15m",
+ "30m",
+ "1h",
+ "2h",
+ "1d"
+ ],
+ "time_options": [
+ "5m",
+ "15m",
+ "1h",
+ "6h",
+ "12h",
+ "24h",
+ "2d",
+ "7d",
+ "30d"
+ ]
+ },
+ "timezone": "utc",
+ "title": "Uptime auto-generated",
+ "uid": null,
+ "version": 0
+}
diff --git a/site-modules/profile/files/grafana/dashboards/node_exporter.json b/site-modules/profile/files/grafana/dashboards/node_exporter.json
new file mode 100644
--- /dev/null
+++ b/site-modules/profile/files/grafana/dashboards/node_exporter.json
@@ -0,0 +1,532 @@
+{
+ "annotations": {
+ "list": [
+ {
+ "builtIn": 1,
+ "datasource": "-- Grafana --",
+ "enable": true,
+ "hide": true,
+ "iconColor": "rgba(0, 211, 255, 1)",
+ "name": "Annotations & Alerts",
+ "type": "dashboard"
+ }
+ ]
+ },
+ "description": "Basic host stats: CPU, Memory Usage, Disk Utilisation, Filesystem usage and Predicted time to filesystems filling. This for the Node Exporter version 0.16.0 or later.",
+ "editable": true,
+ "gnetId": 6014,
+ "graphTooltip": 0,
+ "iteration": 1543931464979,
+ "links": [],
+ "panels": [
+ {
+ "aliasColors": {},
+ "bars": false,
+ "dashLength": 10,
+ "dashes": false,
+ "datasource": "Prometheus (Pergamon)",
+ "editable": true,
+ "error": false,
+ "fill": 1,
+ "grid": {},
+ "gridPos": {
+ "h": 7,
+ "w": 12,
+ "x": 0,
+ "y": 0
+ },
+ "id": 1,
+ "legend": {
+ "avg": false,
+ "current": false,
+ "max": false,
+ "min": false,
+ "show": true,
+ "total": false,
+ "values": false
+ },
+ "lines": true,
+ "linewidth": 2,
+ "links": [],
+ "nullPointMode": "connected",
+ "percentage": false,
+ "pointradius": 5,
+ "points": false,
+ "renderer": "flot",
+ "seriesOverrides": [],
+ "spaceLength": 10,
+ "stack": true,
+ "steppedLine": false,
+ "targets": [
+ {
+ "expr": "avg without (cpu)(irate(node_cpu_seconds_total{job=\"node\",instance=\"$instance\",mode!=\"idle\"}[5m]))",
+ "format": "time_series",
+ "interval": "",
+ "intervalFactor": 2,
+ "legendFormat": "{{mode}}",
+ "metric": "node_cpu",
+ "refId": "A",
+ "step": 2
+ }
+ ],
+ "thresholds": [],
+ "timeFrom": null,
+ "timeShift": null,
+ "title": "CPU",
+ "tooltip": {
+ "msResolution": false,
+ "shared": true,
+ "sort": 0,
+ "value_type": "individual"
+ },
+ "type": "graph",
+ "xaxis": {
+ "buckets": null,
+ "mode": "time",
+ "name": null,
+ "show": true,
+ "values": []
+ },
+ "yaxes": [
+ {
+ "format": "percentunit",
+ "logBase": 1,
+ "max": 1,
+ "min": null,
+ "show": true
+ },
+ {
+ "format": "short",
+ "logBase": 1,
+ "max": null,
+ "min": null,
+ "show": true
+ }
+ ],
+ "yaxis": {
+ "align": false,
+ "alignLevel": null
+ }
+ },
+ {
+ "aliasColors": {},
+ "bars": false,
+ "dashLength": 10,
+ "dashes": false,
+ "datasource": "Prometheus (Pergamon)",
+ "editable": true,
+ "error": false,
+ "fill": 1,
+ "grid": {},
+ "gridPos": {
+ "h": 7,
+ "w": 12,
+ "x": 12,
+ "y": 0
+ },
+ "id": 2,
+ "legend": {
+ "alignAsTable": false,
+ "avg": false,
+ "current": false,
+ "max": false,
+ "min": false,
+ "rightSide": false,
+ "show": true,
+ "total": false,
+ "values": false
+ },
+ "lines": true,
+ "linewidth": 2,
+ "links": [],
+ "minSpan": null,
+ "nullPointMode": "connected",
+ "percentage": false,
+ "pointradius": 5,
+ "points": false,
+ "renderer": "flot",
+ "repeat": null,
+ "seriesOverrides": [],
+ "spaceLength": 10,
+ "stack": true,
+ "steppedLine": false,
+ "targets": [
+ {
+ "expr": "node_memory_MemTotal_bytes{job='node',instance='$instance'} - node_memory_MemFree_bytes{job='node',instance='$instance'} - node_memory_Buffers_bytes{job='node',instance='$instance'} - node_memory_Cached_bytes{job='node',instance='$instance'}",
+ "format": "time_series",
+ "intervalFactor": 2,
+ "legendFormat": "Used",
+ "refId": "A",
+ "step": 2
+ },
+ {
+ "expr": "node_memory_Buffers_bytes{job='node',instance='$instance'}",
+ "format": "time_series",
+ "intervalFactor": 2,
+ "legendFormat": "Buffers",
+ "refId": "B",
+ "step": 2
+ },
+ {
+ "expr": "node_memory_Cached_bytes{job='node',instance='$instance'}",
+ "format": "time_series",
+ "intervalFactor": 2,
+ "legendFormat": "Cached",
+ "refId": "D",
+ "step": 2
+ },
+ {
+ "expr": "node_memory_MemFree_bytes{job='node',instance='$instance'}",
+ "format": "time_series",
+ "hide": false,
+ "intervalFactor": 2,
+ "legendFormat": "Free",
+ "refId": "C",
+ "step": 2
+ }
+ ],
+ "thresholds": [],
+ "timeFrom": null,
+ "timeShift": null,
+ "title": "Memory",
+ "tooltip": {
+ "msResolution": false,
+ "shared": true,
+ "sort": 0,
+ "value_type": "individual"
+ },
+ "type": "graph",
+ "xaxis": {
+ "buckets": null,
+ "mode": "time",
+ "name": null,
+ "show": true,
+ "values": []
+ },
+ "yaxes": [
+ {
+ "format": "bytes",
+ "label": "",
+ "logBase": 1,
+ "max": null,
+ "min": 0,
+ "show": true
+ },
+ {
+ "format": "short",
+ "logBase": 1,
+ "max": null,
+ "min": null,
+ "show": true
+ }
+ ],
+ "yaxis": {
+ "align": false,
+ "alignLevel": null
+ }
+ },
+ {
+ "aliasColors": {},
+ "bars": false,
+ "dashLength": 10,
+ "dashes": false,
+ "datasource": "Prometheus (Pergamon)",
+ "editable": true,
+ "error": false,
+ "fill": 1,
+ "grid": {},
+ "gridPos": {
+ "h": 7,
+ "w": 8,
+ "x": 0,
+ "y": 7
+ },
+ "id": 3,
+ "legend": {
+ "avg": false,
+ "current": false,
+ "max": false,
+ "min": false,
+ "show": true,
+ "total": false,
+ "values": false
+ },
+ "lines": true,
+ "linewidth": 2,
+ "links": [],
+ "nullPointMode": "connected",
+ "percentage": false,
+ "pointradius": 5,
+ "points": false,
+ "renderer": "flot",
+ "seriesOverrides": [],
+ "spaceLength": 10,
+ "stack": false,
+ "steppedLine": false,
+ "targets": [
+ {
+ "expr": "irate(node_disk_io_time_seconds_total{job='node',instance='$instance',device!~'^(md\\\\d+$|dm-)'}[5m])",
+ "format": "time_series",
+ "intervalFactor": 2,
+ "legendFormat": "{{device}}",
+ "refId": "A",
+ "step": 2
+ }
+ ],
+ "thresholds": [],
+ "timeFrom": null,
+ "timeShift": null,
+ "title": "Disk I/O Utilisation",
+ "tooltip": {
+ "msResolution": false,
+ "shared": true,
+ "sort": 0,
+ "value_type": "cumulative"
+ },
+ "type": "graph",
+ "xaxis": {
+ "buckets": null,
+ "mode": "time",
+ "name": null,
+ "show": true,
+ "values": []
+ },
+ "yaxes": [
+ {
+ "format": "percentunit",
+ "logBase": 1,
+ "max": 1,
+ "min": null,
+ "show": true
+ },
+ {
+ "format": "short",
+ "logBase": 1,
+ "max": null,
+ "min": null,
+ "show": true
+ }
+ ],
+ "yaxis": {
+ "align": false,
+ "alignLevel": null
+ }
+ },
+ {
+ "aliasColors": {},
+ "bars": false,
+ "dashLength": 10,
+ "dashes": false,
+ "datasource": "Prometheus (Pergamon)",
+ "editable": true,
+ "error": false,
+ "fill": 1,
+ "grid": {},
+ "gridPos": {
+ "h": 7,
+ "w": 8,
+ "x": 8,
+ "y": 7
+ },
+ "id": 4,
+ "legend": {
+ "avg": false,
+ "current": false,
+ "max": false,
+ "min": false,
+ "show": true,
+ "total": false,
+ "values": false
+ },
+ "lines": true,
+ "linewidth": 2,
+ "links": [],
+ "nullPointMode": "connected",
+ "percentage": false,
+ "pointradius": 5,
+ "points": false,
+ "renderer": "flot",
+ "seriesOverrides": [],
+ "spaceLength": 10,
+ "stack": false,
+ "steppedLine": false,
+ "targets": [
+ {
+ "expr": "1 - node_filesystem_free_bytes{job='node',instance='$instance',fstype!='rootfs',mountpoint!~'/(run|var).*',mountpoint!=''} / node_filesystem_size_bytes{job='node',instance='$instance'}",
+ "format": "time_series",
+ "interval": "",
+ "intervalFactor": 2,
+ "legendFormat": "{{mountpoint}}",
+ "refId": "A",
+ "step": 2
+ }
+ ],
+ "thresholds": [],
+ "timeFrom": null,
+ "timeShift": null,
+ "title": "Filesystem Fullness",
+ "tooltip": {
+ "msResolution": false,
+ "shared": true,
+ "sort": 0,
+ "value_type": "cumulative"
+ },
+ "type": "graph",
+ "xaxis": {
+ "buckets": null,
+ "mode": "time",
+ "name": null,
+ "show": true,
+ "values": []
+ },
+ "yaxes": [
+ {
+ "format": "percentunit",
+ "logBase": 1,
+ "max": 1,
+ "min": 0,
+ "show": true
+ },
+ {
+ "format": "short",
+ "logBase": 1,
+ "max": null,
+ "min": null,
+ "show": true
+ }
+ ],
+ "yaxis": {
+ "align": false,
+ "alignLevel": null
+ }
+ },
+ {
+ "columns": [
+ {
+ "text": "Current",
+ "value": "current"
+ }
+ ],
+ "datasource": null,
+ "editable": true,
+ "error": false,
+ "fontSize": "100%",
+ "gridPos": {
+ "h": 7,
+ "w": 8,
+ "x": 16,
+ "y": 7
+ },
+ "hideTimeOverride": true,
+ "id": 5,
+ "links": [],
+ "pageSize": null,
+ "scroll": true,
+ "showHeader": true,
+ "sort": {
+ "col": 0,
+ "desc": true
+ },
+ "styles": [
+ {
+ "colorMode": null,
+ "colors": [
+ "rgba(245, 54, 54, 0.9)",
+ "rgba(237, 129, 40, 0.89)",
+ "rgba(50, 172, 45, 0.97)"
+ ],
+ "decimals": 0,
+ "pattern": "/.*/",
+ "thresholds": [],
+ "type": "number",
+ "unit": "s"
+ }
+ ],
+ "targets": [
+ {
+ "expr": "(node_filesystem_size_bytes{job='node',instance='$instance'} - node_filesystem_free_bytes{job='node',instance='$instance'}) / deriv(node_filesystem_free_bytes{job='node',instance='$instance',fstype!='rootfs',mountpoint!~'/(run|var).*',mountpoint!=''}[3d]) > 0",
+ "format": "time_series",
+ "interval": "",
+ "intervalFactor": 2,
+ "legendFormat": "{{mountpoint}}",
+ "metric": "",
+ "refId": "A",
+ "step": 20
+ }
+ ],
+ "timeFrom": "1h",
+ "timeShift": null,
+ "title": "Filesystem Fill Up Time",
+ "transform": "timeseries_aggregations",
+ "transparent": false,
+ "type": "table"
+ }
+ ],
+ "schemaVersion": 16,
+ "style": "dark",
+ "tags": [],
+ "templating": {
+ "list": [
+ {
+ "allFormat": "glob",
+ "allValue": null,
+ "current": {
+ "text": "192.168.100.100:9100",
+ "value": "192.168.100.100:9100"
+ },
+ "datasource": "Prometheus (Pergamon)",
+ "hide": 0,
+ "hideLabel": false,
+ "includeAll": false,
+ "label": "Machine",
+ "multi": false,
+ "multiFormat": "glob",
+ "name": "instance",
+ "options": [],
+ "query": "up{job=\"node\"}",
+ "refresh": 1,
+ "regex": ".*instance=\"(.*?)\".*",
+ "skipUrlSync": false,
+ "sort": 0,
+ "tagValuesQuery": "",
+ "tags": [],
+ "tagsQuery": "",
+ "type": "query",
+ "useTags": false
+ }
+ ]
+ },
+ "time": {
+ "from": "now-5m",
+ "to": "now"
+ },
+ "timepicker": {
+ "now": true,
+ "refresh_intervals": [
+ "5s",
+ "10s",
+ "30s",
+ "1m",
+ "5m",
+ "15m",
+ "30m",
+ "1h",
+ "2h",
+ "1d"
+ ],
+ "time_options": [
+ "5m",
+ "15m",
+ "1h",
+ "6h",
+ "12h",
+ "24h",
+ "2d",
+ "7d",
+ "30d"
+ ]
+ },
+ "timezone": "browser",
+ "title": "Node Exporter",
+ "version": 1
+}
diff --git a/site-modules/profile/manifests/grafana/backend.pp b/site-modules/profile/manifests/grafana/backend.pp
new file mode 100644
--- /dev/null
+++ b/site-modules/profile/manifests/grafana/backend.pp
@@ -0,0 +1,44 @@
+# install the grafana stack
+class profile::grafana::backend {
+ $db = lookup('grafana::db::database')
+ $db_username = lookup('grafana::db::username')
+ $db_password = lookup('grafana::db::password')
+
+ $config = lookup('grafana::config')
+
+ include profile::postgresql
+ include profile::postgresql::server
+
+ class {'::grafana':
+ install_method => 'repo',
+ provisioning_dashboards => {
+ apiVersion => 1,
+ providers => [
+ {
+ name => 'default',
+ orgId => 1,
+ folder => '',
+ type => 'file',
+ disableDeletion => true,
+ options => {
+ path => '/var/lib/grafana/dashboards',
+ puppetsource => 'puppet:///modules/profile/grafana/dashboards',
+ },
+ },
+ ],
+ },
+ cfg => $config + {
+ database => {
+ type => 'postgres',
+ host => '127.0.0.1:5432',
+ name => $db,
+ user => $db_username,
+ password => $db_password
+ }
+ }
+ }
+
+ grafana_plugin {'grafana-piechart-panel':
+ ensure => present,
+ }
+}
diff --git a/site-modules/role/manifests/swh_grafana.pp b/site-modules/role/manifests/swh_grafana.pp
new file mode 100644
--- /dev/null
+++ b/site-modules/role/manifests/swh_grafana.pp
@@ -0,0 +1,3 @@
+class role::swh_grafana inherits role::swh_server {
+ include profile::grafana::backend
+}

File Metadata

Mime Type
text/plain
Expires
Tue, Dec 17, 2:27 PM (2 d, 21 h ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3225142

Event Timeline