summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--tools/grafana/alerting/alerts.yml14
-rw-r--r--tools/grafana/dashboards/demo_dashboard.json60
-rw-r--r--tools/grafana/datasources/prometheus_source.yml2
3 files changed, 38 insertions, 38 deletions
diff --git a/tools/grafana/alerting/alerts.yml b/tools/grafana/alerting/alerts.yml
index 2a3760d84e..92325ce78c 100644
--- a/tools/grafana/alerting/alerts.yml
+++ b/tools/grafana/alerting/alerts.yml
@@ -14,7 +14,7 @@ groups:
relativeTimeRange:
from: 600
to: 0
- datasourceUid: awx_alert
+ datasourceUid: awx_prometheus
model:
editorMode: code
expr: >-
@@ -64,11 +64,11 @@ groups:
relativeTimeRange:
from: 600
to: 0
- datasourceUid: awx_alert
+ datasourceUid: awx_prometheus
model:
datasource:
type: prometheus
- uid: awx_alert
+ uid: awx_prometheus
editorMode: code
expr: >-
max(delta(awx_instance_status_total{instance="awx1:8013",
@@ -166,7 +166,7 @@ groups:
- condition: if_redis_queue_too_large
dashboardUid: awx
data:
- - datasourceUid: awx_alert
+ - datasourceUid: awx_prometheus
model:
editorMode: code
expr: irate(callback_receiver_events_insert_db{node='awx_1'}[1m])
@@ -212,11 +212,11 @@ groups:
relativeTimeRange:
from: 0
to: 0
- - datasourceUid: awx_alert
+ - datasourceUid: awx_prometheus
model:
datasource:
type: prometheus
- uid: awx_alert
+ uid: awx_prometheus
editorMode: code
expr: callback_receiver_events_queue_size_redis{node='awx_1'}
hide: false
@@ -308,7 +308,7 @@ groups:
relativeTimeRange:
from: 1800
to: 0
- datasourceUid: awx_alert
+ datasourceUid: awx_prometheus
model:
editorMode: builder
expr: awx_instance_remaining_capacity{instance="awx1:8013"}
diff --git a/tools/grafana/dashboards/demo_dashboard.json b/tools/grafana/dashboards/demo_dashboard.json
index 49ab3ed487..5f35787e9d 100644
--- a/tools/grafana/dashboards/demo_dashboard.json
+++ b/tools/grafana/dashboards/demo_dashboard.json
@@ -31,7 +31,7 @@
{
"datasource": {
"type": "prometheus",
- "uid": "PBFA97CFB590B2093"
+ "uid": "awx_prometheus"
},
"fieldConfig": {
"defaults": {
@@ -108,7 +108,7 @@
{
"datasource": {
"type": "prometheus",
- "uid": "PBFA97CFB590B2093"
+ "uid": "awx_prometheus"
},
"expr": "awx_status_total",
"refId": "A"
@@ -120,7 +120,7 @@
{
"datasource": {
"type": "prometheus",
- "uid": "PBFA97CFB590B2093"
+ "uid": "awx_prometheus"
},
"fieldConfig": {
"defaults": {
@@ -232,7 +232,7 @@
{
"datasource": {
"type": "prometheus",
- "uid": "PBFA97CFB590B2093"
+ "uid": "awx_prometheus"
},
"editorMode": "builder",
"expr": "callback_receiver_events_queue_size_redis",
@@ -243,7 +243,7 @@
{
"datasource": {
"type": "prometheus",
- "uid": "PBFA97CFB590B2093"
+ "uid": "awx_prometheus"
},
"editorMode": "code",
"expr": "irate(callback_receiver_events_insert_db[1m])*60",
@@ -259,7 +259,7 @@
{
"datasource": {
"type": "prometheus",
- "uid": "PBFA97CFB590B2093"
+ "uid": "awx_prometheus"
},
"fieldConfig": {
"defaults": {
@@ -336,7 +336,7 @@
{
"datasource": {
"type": "prometheus",
- "uid": "PBFA97CFB590B2093"
+ "uid": "awx_prometheus"
},
"editorMode": "builder",
"expr": "awx_instance_consumed_capacity",
@@ -351,7 +351,7 @@
{
"datasource": {
"type": "prometheus",
- "uid": "PBFA97CFB590B2093"
+ "uid": "awx_prometheus"
},
"fieldConfig": {
"defaults": {
@@ -451,7 +451,7 @@
{
"datasource": {
"type": "prometheus",
- "uid": "PBFA97CFB590B2093"
+ "uid": "awx_prometheus"
},
"editorMode": "builder",
"expr": "callback_receiver_event_processing_avg_seconds",
@@ -466,7 +466,7 @@
{
"datasource": {
"type": "prometheus",
- "uid": "PBFA97CFB590B2093"
+ "uid": "awx_prometheus"
},
"fieldConfig": {
"defaults": {
@@ -570,7 +570,7 @@
{
"datasource": {
"type": "prometheus",
- "uid": "PBFA97CFB590B2093"
+ "uid": "awx_prometheus"
},
"expr": "task_manager_running_processed",
"refId": "A"
@@ -578,7 +578,7 @@
{
"datasource": {
"type": "prometheus",
- "uid": "PBFA97CFB590B2093"
+ "uid": "awx_prometheus"
},
"expr": "task_manager_pending_processed",
"hide": false,
@@ -587,7 +587,7 @@
{
"datasource": {
"type": "prometheus",
- "uid": "PBFA97CFB590B2093"
+ "uid": "awx_prometheus"
},
"expr": "task_manager_tasks_blocked",
"hide": false,
@@ -596,7 +596,7 @@
{
"datasource": {
"type": "prometheus",
- "uid": "PBFA97CFB590B2093"
+ "uid": "awx_prometheus"
},
"expr": "task_manager_tasks_started",
"hide": false,
@@ -609,7 +609,7 @@
{
"datasource": {
"type": "prometheus",
- "uid": "PBFA97CFB590B2093"
+ "uid": "awx_prometheus"
},
"description": "",
"fieldConfig": {
@@ -687,7 +687,7 @@
{
"datasource": {
"type": "prometheus",
- "uid": "PBFA97CFB590B2093"
+ "uid": "awx_prometheus"
},
"editorMode": "builder",
"expr": "dependency_manager__schedule_seconds",
@@ -698,7 +698,7 @@
{
"datasource": {
"type": "prometheus",
- "uid": "PBFA97CFB590B2093"
+ "uid": "awx_prometheus"
},
"editorMode": "builder",
"expr": "dependency_manager_generate_dependencies_seconds",
@@ -710,7 +710,7 @@
{
"datasource": {
"type": "prometheus",
- "uid": "PBFA97CFB590B2093"
+ "uid": "awx_prometheus"
},
"editorMode": "builder",
"expr": "dependency_manager_get_tasks_seconds",
@@ -722,7 +722,7 @@
{
"datasource": {
"type": "prometheus",
- "uid": "PBFA97CFB590B2093"
+ "uid": "awx_prometheus"
},
"hide": false,
"refId": "D"
@@ -734,7 +734,7 @@
{
"datasource": {
"type": "prometheus",
- "uid": "PBFA97CFB590B2093"
+ "uid": "awx_prometheus"
},
"fieldConfig": {
"defaults": {
@@ -811,7 +811,7 @@
{
"datasource": {
"type": "prometheus",
- "uid": "PBFA97CFB590B2093"
+ "uid": "awx_prometheus"
},
"editorMode": "builder",
"expr": "task_manager_process_pending_tasks_seconds",
@@ -822,7 +822,7 @@
{
"datasource": {
"type": "prometheus",
- "uid": "PBFA97CFB590B2093"
+ "uid": "awx_prometheus"
},
"editorMode": "builder",
"expr": "task_manager_process_running_tasks_seconds",
@@ -834,7 +834,7 @@
{
"datasource": {
"type": "prometheus",
- "uid": "PBFA97CFB590B2093"
+ "uid": "awx_prometheus"
},
"editorMode": "builder",
"expr": "task_manager_get_tasks_seconds",
@@ -846,7 +846,7 @@
{
"datasource": {
"type": "prometheus",
- "uid": "PBFA97CFB590B2093"
+ "uid": "awx_prometheus"
},
"editorMode": "builder",
"expr": "task_manager_commit_seconds",
@@ -858,7 +858,7 @@
{
"datasource": {
"type": "prometheus",
- "uid": "PBFA97CFB590B2093"
+ "uid": "awx_prometheus"
},
"editorMode": "builder",
"expr": "task_manager__schedule_seconds",
@@ -874,7 +874,7 @@
{
"datasource": {
"type": "prometheus",
- "uid": "PBFA97CFB590B2093"
+ "uid": "awx_prometheus"
},
"fieldConfig": {
"defaults": {
@@ -951,7 +951,7 @@
{
"datasource": {
"type": "prometheus",
- "uid": "PBFA97CFB590B2093"
+ "uid": "awx_prometheus"
},
"editorMode": "builder",
"expr": "workflow_manager__schedule_seconds",
@@ -962,7 +962,7 @@
{
"datasource": {
"type": "prometheus",
- "uid": "PBFA97CFB590B2093"
+ "uid": "awx_prometheus"
},
"hide": false,
"refId": "B"
@@ -974,7 +974,7 @@
{
"datasource": {
"type": "prometheus",
- "uid": "PBFA97CFB590B2093"
+ "uid": "awx_prometheus"
},
"fieldConfig": {
"defaults": {
@@ -1051,7 +1051,7 @@
{
"datasource": {
"type": "prometheus",
- "uid": "PBFA97CFB590B2093"
+ "uid": "awx_prometheus"
},
"editorMode": "builder",
"expr": "awx_database_connections_total",
diff --git a/tools/grafana/datasources/prometheus_source.yml b/tools/grafana/datasources/prometheus_source.yml
index 80b9a88e5c..e22734c2b7 100644
--- a/tools/grafana/datasources/prometheus_source.yml
+++ b/tools/grafana/datasources/prometheus_source.yml
@@ -10,4 +10,4 @@ datasources:
editable: true
jsonData:
timeInterval: 5s
- uid: awx_alert
+ uid: awx_prometheus