Skip to content

Commit

Permalink
I broke grafana with my rename, so now I'm fixing it, and adding a be…
Browse files Browse the repository at this point in the history
…tter name in overall that is less focused on alerts.
  • Loading branch information
rebeccahhh committed Sep 27, 2022
1 parent 4ffa577 commit eaad749
Show file tree
Hide file tree
Showing 3 changed files with 38 additions and 38 deletions.
14 changes: 7 additions & 7 deletions tools/grafana/alerting/alerts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ groups:
relativeTimeRange:
from: 600
to: 0
datasourceUid: awx_alert
datasourceUid: awx_prometheus
model:
editorMode: code
expr: >-
Expand Down Expand Up @@ -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",
Expand Down Expand Up @@ -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])
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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"}
Expand Down
60 changes: 30 additions & 30 deletions tools/grafana/dashboards/demo_dashboard.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
{
"datasource": {
"type": "prometheus",
"uid": "PBFA97CFB590B2093"
"uid": "awx_prometheus"
},
"fieldConfig": {
"defaults": {
Expand Down Expand Up @@ -108,7 +108,7 @@
{
"datasource": {
"type": "prometheus",
"uid": "PBFA97CFB590B2093"
"uid": "awx_prometheus"
},
"expr": "awx_status_total",
"refId": "A"
Expand All @@ -120,7 +120,7 @@
{
"datasource": {
"type": "prometheus",
"uid": "PBFA97CFB590B2093"
"uid": "awx_prometheus"
},
"fieldConfig": {
"defaults": {
Expand Down Expand Up @@ -232,7 +232,7 @@
{
"datasource": {
"type": "prometheus",
"uid": "PBFA97CFB590B2093"
"uid": "awx_prometheus"
},
"editorMode": "builder",
"expr": "callback_receiver_events_queue_size_redis",
Expand All @@ -243,7 +243,7 @@
{
"datasource": {
"type": "prometheus",
"uid": "PBFA97CFB590B2093"
"uid": "awx_prometheus"
},
"editorMode": "code",
"expr": "irate(callback_receiver_events_insert_db[1m])*60",
Expand All @@ -259,7 +259,7 @@
{
"datasource": {
"type": "prometheus",
"uid": "PBFA97CFB590B2093"
"uid": "awx_prometheus"
},
"fieldConfig": {
"defaults": {
Expand Down Expand Up @@ -336,7 +336,7 @@
{
"datasource": {
"type": "prometheus",
"uid": "PBFA97CFB590B2093"
"uid": "awx_prometheus"
},
"editorMode": "builder",
"expr": "awx_instance_consumed_capacity",
Expand All @@ -351,7 +351,7 @@
{
"datasource": {
"type": "prometheus",
"uid": "PBFA97CFB590B2093"
"uid": "awx_prometheus"
},
"fieldConfig": {
"defaults": {
Expand Down Expand Up @@ -451,7 +451,7 @@
{
"datasource": {
"type": "prometheus",
"uid": "PBFA97CFB590B2093"
"uid": "awx_prometheus"
},
"editorMode": "builder",
"expr": "callback_receiver_event_processing_avg_seconds",
Expand All @@ -466,7 +466,7 @@
{
"datasource": {
"type": "prometheus",
"uid": "PBFA97CFB590B2093"
"uid": "awx_prometheus"
},
"fieldConfig": {
"defaults": {
Expand Down Expand Up @@ -570,15 +570,15 @@
{
"datasource": {
"type": "prometheus",
"uid": "PBFA97CFB590B2093"
"uid": "awx_prometheus"
},
"expr": "task_manager_running_processed",
"refId": "A"
},
{
"datasource": {
"type": "prometheus",
"uid": "PBFA97CFB590B2093"
"uid": "awx_prometheus"
},
"expr": "task_manager_pending_processed",
"hide": false,
Expand All @@ -587,7 +587,7 @@
{
"datasource": {
"type": "prometheus",
"uid": "PBFA97CFB590B2093"
"uid": "awx_prometheus"
},
"expr": "task_manager_tasks_blocked",
"hide": false,
Expand All @@ -596,7 +596,7 @@
{
"datasource": {
"type": "prometheus",
"uid": "PBFA97CFB590B2093"
"uid": "awx_prometheus"
},
"expr": "task_manager_tasks_started",
"hide": false,
Expand All @@ -609,7 +609,7 @@
{
"datasource": {
"type": "prometheus",
"uid": "PBFA97CFB590B2093"
"uid": "awx_prometheus"
},
"description": "",
"fieldConfig": {
Expand Down Expand Up @@ -687,7 +687,7 @@
{
"datasource": {
"type": "prometheus",
"uid": "PBFA97CFB590B2093"
"uid": "awx_prometheus"
},
"editorMode": "builder",
"expr": "dependency_manager__schedule_seconds",
Expand All @@ -698,7 +698,7 @@
{
"datasource": {
"type": "prometheus",
"uid": "PBFA97CFB590B2093"
"uid": "awx_prometheus"
},
"editorMode": "builder",
"expr": "dependency_manager_generate_dependencies_seconds",
Expand All @@ -710,7 +710,7 @@
{
"datasource": {
"type": "prometheus",
"uid": "PBFA97CFB590B2093"
"uid": "awx_prometheus"
},
"editorMode": "builder",
"expr": "dependency_manager_get_tasks_seconds",
Expand All @@ -722,7 +722,7 @@
{
"datasource": {
"type": "prometheus",
"uid": "PBFA97CFB590B2093"
"uid": "awx_prometheus"
},
"hide": false,
"refId": "D"
Expand All @@ -734,7 +734,7 @@
{
"datasource": {
"type": "prometheus",
"uid": "PBFA97CFB590B2093"
"uid": "awx_prometheus"
},
"fieldConfig": {
"defaults": {
Expand Down Expand Up @@ -811,7 +811,7 @@
{
"datasource": {
"type": "prometheus",
"uid": "PBFA97CFB590B2093"
"uid": "awx_prometheus"
},
"editorMode": "builder",
"expr": "task_manager_process_pending_tasks_seconds",
Expand All @@ -822,7 +822,7 @@
{
"datasource": {
"type": "prometheus",
"uid": "PBFA97CFB590B2093"
"uid": "awx_prometheus"
},
"editorMode": "builder",
"expr": "task_manager_process_running_tasks_seconds",
Expand All @@ -834,7 +834,7 @@
{
"datasource": {
"type": "prometheus",
"uid": "PBFA97CFB590B2093"
"uid": "awx_prometheus"
},
"editorMode": "builder",
"expr": "task_manager_get_tasks_seconds",
Expand All @@ -846,7 +846,7 @@
{
"datasource": {
"type": "prometheus",
"uid": "PBFA97CFB590B2093"
"uid": "awx_prometheus"
},
"editorMode": "builder",
"expr": "task_manager_commit_seconds",
Expand All @@ -858,7 +858,7 @@
{
"datasource": {
"type": "prometheus",
"uid": "PBFA97CFB590B2093"
"uid": "awx_prometheus"
},
"editorMode": "builder",
"expr": "task_manager__schedule_seconds",
Expand All @@ -874,7 +874,7 @@
{
"datasource": {
"type": "prometheus",
"uid": "PBFA97CFB590B2093"
"uid": "awx_prometheus"
},
"fieldConfig": {
"defaults": {
Expand Down Expand Up @@ -951,7 +951,7 @@
{
"datasource": {
"type": "prometheus",
"uid": "PBFA97CFB590B2093"
"uid": "awx_prometheus"
},
"editorMode": "builder",
"expr": "workflow_manager__schedule_seconds",
Expand All @@ -962,7 +962,7 @@
{
"datasource": {
"type": "prometheus",
"uid": "PBFA97CFB590B2093"
"uid": "awx_prometheus"
},
"hide": false,
"refId": "B"
Expand All @@ -974,7 +974,7 @@
{
"datasource": {
"type": "prometheus",
"uid": "PBFA97CFB590B2093"
"uid": "awx_prometheus"
},
"fieldConfig": {
"defaults": {
Expand Down Expand Up @@ -1051,7 +1051,7 @@
{
"datasource": {
"type": "prometheus",
"uid": "PBFA97CFB590B2093"
"uid": "awx_prometheus"
},
"editorMode": "builder",
"expr": "awx_database_connections_total",
Expand Down
2 changes: 1 addition & 1 deletion tools/grafana/datasources/prometheus_source.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@ datasources:
editable: true
jsonData:
timeInterval: 5s
uid: awx_alert
uid: awx_prometheus

0 comments on commit eaad749

Please sign in to comment.