Skip to content

Commit 567bd04

Browse files
Merge pull request #4010 from Azure/grafana_sync_dashboards
Sync grafana dashboards from git
2 parents ba069d8 + a7e6e1d commit 567bd04

File tree

20 files changed

+854
-437
lines changed

20 files changed

+854
-437
lines changed

dev-infrastructure/global-pipeline.yaml

Lines changed: 15 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,12 @@
1010
$schema: "pipeline.schema.v1"
1111
serviceGroup: Microsoft.Azure.ARO.HCP.Global
1212
rolloutName: Global Resource Rollout
13+
buildStep:
14+
command: make
15+
args:
16+
- -C
17+
- ../tooling/grafanactl
18+
- bundle
1319
resourceGroups:
1420
- name: global
1521
resourceGroup: '{{ .global.rg }}'
@@ -91,22 +97,25 @@ resourceGroups:
9197
- name: grafana-dashboards
9298
action: Shell
9399
omitFromServiceGroupCompletion: true
94-
command: make grafana
95-
workingDir: ./../observability/
100+
command: ./grafanactl sync dashboards --subscription=${SUBSCRIPTION_ID} --resource-group=${GLOBAL_RESOURCEGROUP} --grafana-name=${GRAFANA_NAME} --config-file=./observability.yaml
101+
workingDir: ../tooling/grafanactl
96102
dependsOn:
97103
- resourceGroup: global
98104
step: housekeeping
99105
- resourceGroup: global
100-
step: infra
106+
step: output
101107
dryRun:
102-
variables:
103-
- name: DRY_RUN
104-
value: "true"
108+
command: ./grafanactl sync dashboards --subscription=${SUBSCRIPTION_ID} --resource-group=${GLOBAL_RESOURCEGROUP} --grafana-name=${GRAFANA_NAME} --config-file=./observability.yaml --dry-run
105109
variables:
106110
- name: GRAFANA_NAME
107111
configRef: monitoring.grafanaName
108112
- name: GLOBAL_RESOURCEGROUP
109113
configRef: global.rg
114+
- name: SUBSCRIPTION_ID
115+
input:
116+
resourceGroup: global
117+
step: output
118+
name: subscriptionId
110119
shellIdentity:
111120
input:
112121
resourceGroup: global

dev-infrastructure/templates/output-global.bicep

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,3 +107,9 @@ resource genevaActionsKV 'Microsoft.KeyVault/vaults@2024-04-01-preview' existing
107107
}
108108

109109
output genevaActionKeyVaultUrl string = genevaActionsKV.properties.vaultUri
110+
111+
//
112+
// S U B S C R I P T I O N
113+
//
114+
115+
output subscriptionId string = subscription().subscriptionId

observability/Makefile

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,6 @@ deploy:
22
make -C ./tracing deploy
33
.PHONY: deploy
44

5-
grafana:
6-
python3 grafana/grafana.py
7-
.PHONY: grafana
8-
95
kubernetesControlPlane-prometheusRule:
106
PROMETHEUS_OPERATOR_REF=$(shell yq -r '.prometheusRules.prometheusOperatorVersion' observability.yaml) && \
117
wget --quiet --output-document=alerts/kubernetesControlPlane-prometheusRule.yaml \

observability/grafana/Makefile

Lines changed: 0 additions & 7 deletions
This file was deleted.

observability/grafana/grafana.py

Lines changed: 0 additions & 287 deletions
This file was deleted.

0 commit comments

Comments
 (0)