summaryrefslogtreecommitdiffstats
path: root/tools/grafana/dashboards
diff options
context:
space:
mode:
authorSeth Foster <fosterseth@users.noreply.github.com>2022-06-01 23:55:43 +0200
committerGitHub <noreply@github.com>2022-06-01 23:55:43 +0200
commitb548ad21a9d3e9e9a6c873d108e5ff5e78f20bf2 (patch)
treef17aa821aa620a8b553ec09eaf20a2458f8f57ed /tools/grafana/dashboards
parentAdd popover help text to job details and ad hoc job details (#12261) (diff)
parenttypo (diff)
downloadawx-21.1.0.tar.xz
awx-21.1.0.zip
Merge pull request #12240 from fosterseth/make_prometheus_grafana21.1.0
Add prometheus and grafana make commands for local environment
Diffstat (limited to 'tools/grafana/dashboards')
-rw-r--r--tools/grafana/dashboards/awx_dashboard.yml8
-rw-r--r--tools/grafana/dashboards/demo_dashboard.json134
2 files changed, 142 insertions, 0 deletions
diff --git a/tools/grafana/dashboards/awx_dashboard.yml b/tools/grafana/dashboards/awx_dashboard.yml
new file mode 100644
index 0000000000..9692ffe1b7
--- /dev/null
+++ b/tools/grafana/dashboards/awx_dashboard.yml
@@ -0,0 +1,8 @@
+---
+apiVersion: 1
+
+providers:
+ - name: awx
+ allowUiUpdates: true
+ options:
+ path: /etc/grafana/provisioning/dashboards/demo_dashboard.json
diff --git a/tools/grafana/dashboards/demo_dashboard.json b/tools/grafana/dashboards/demo_dashboard.json
new file mode 100644
index 0000000000..0294fa4168
--- /dev/null
+++ b/tools/grafana/dashboards/demo_dashboard.json
@@ -0,0 +1,134 @@
+{
+ "annotations": {
+ "list": [
+ {
+ "builtIn": 1,
+ "datasource": {
+ "type": "grafana",
+ "uid": "-- Grafana --"
+ },
+ "enable": true,
+ "hide": true,
+ "iconColor": "rgba(0, 211, 255, 1)",
+ "name": "Annotations & Alerts",
+ "target": {
+ "limit": 100,
+ "matchAny": false,
+ "tags": [],
+ "type": "dashboard"
+ },
+ "type": "dashboard"
+ }
+ ]
+ },
+ "editable": true,
+ "fiscalYearStartMonth": 0,
+ "graphTooltip": 0,
+ "id": 1,
+ "links": [],
+ "liveNow": false,
+ "panels": [
+ {
+ "datasource": {
+ "type": "prometheus",
+ "uid": "PBFA97CFB590B2093"
+ },
+ "fieldConfig": {
+ "defaults": {
+ "color": {
+ "mode": "palette-classic"
+ },
+ "custom": {
+ "axisLabel": "",
+ "axisPlacement": "auto",
+ "barAlignment": 0,
+ "drawStyle": "line",
+ "fillOpacity": 0,
+ "gradientMode": "none",
+ "hideFrom": {
+ "legend": false,
+ "tooltip": false,
+ "viz": false
+ },
+ "lineInterpolation": "linear",
+ "lineWidth": 1,
+ "pointSize": 5,
+ "scaleDistribution": {
+ "type": "linear"
+ },
+ "showPoints": "auto",
+ "spanNulls": false,
+ "stacking": {
+ "group": "A",
+ "mode": "none"
+ },
+ "thresholdsStyle": {
+ "mode": "off"
+ }
+ },
+ "mappings": [],
+ "thresholds": {
+ "mode": "absolute",
+ "steps": [
+ {
+ "color": "green",
+ "value": null
+ },
+ {
+ "color": "red",
+ "value": 80
+ }
+ ]
+ }
+ },
+ "overrides": []
+ },
+ "gridPos": {
+ "h": 8,
+ "w": 12,
+ "x": 0,
+ "y": 0
+ },
+ "id": 8,
+ "options": {
+ "legend": {
+ "calcs": [],
+ "displayMode": "list",
+ "placement": "bottom"
+ },
+ "tooltip": {
+ "mode": "single",
+ "sort": "none"
+ }
+ },
+ "targets": [
+ {
+ "datasource": {
+ "type": "prometheus",
+ "uid": "PBFA97CFB590B2093"
+ },
+ "expr": "awx_status_total",
+ "refId": "A"
+ }
+ ],
+ "title": "job status",
+ "type": "timeseries"
+ }
+ ],
+ "schemaVersion": 36,
+ "style": "dark",
+ "tags": [],
+ "templating": {
+ "list": []
+ },
+ "time": {
+ "from": "now-30m",
+ "to": "now"
+ },
+ "timepicker": {},
+ "timezone": "",
+ "title": "awx-demo",
+ "uid": "GISWZOXnk",
+ "version": 6,
+ "weekStart": ""
+}