Skip to content

Commit 935b2fa

Browse files
authored
amg: add examples for manage Prometheus (#6440)
* add examples for Prometheus * update version
1 parent 8eaf2a6 commit 935b2fa

File tree

2 files changed

+32
-5
lines changed

2 files changed

+32
-5
lines changed

src/amg/azext_amg/_help.py

Lines changed: 31 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,6 @@
6767
- name: create a data source of Azure Monitor using Managed Identity
6868
text: |
6969
az grafana data-source create -n MyGrafana --definition '{
70-
"uid": "5SjzhUu4n",
7170
"access": "proxy",
7271
"jsonData": {
7372
"azureAuthType": "msi",
@@ -79,7 +78,6 @@
7978
- name: create a data source of Azure Monitor using App Registration
8079
text: |
8180
az grafana data-source create -n MyGrafana --definition '{
82-
"uid": "5SjzhUu4z",
8381
"name": "Azure Monitor-2",
8482
"type": "grafana-azure-monitor-datasource",
8583
"access": "proxy",
@@ -95,7 +93,6 @@
9593
- name: create a data source of Azure Data Explorer using Managed Identity
9694
text: |
9795
az grafana data-source create -n MyGrafana --definition '{
98-
"uid": "3JTnaUuVz",
9996
"name": "Azure Data Explorer Datasource-2",
10097
"type": "grafana-azure-data-explorer-datasource",
10198
"access": "proxy",
@@ -107,7 +104,6 @@
107104
- name: create a data source of Azure Data Explorer using App Registration
108105
text: |
109106
az grafana data-source create -n MyGrafana --definition '{
110-
"uid": "uEi-b8X4k",
111107
"name": "Azure Data Explorer Datasource-1",
112108
"type": "grafana-azure-data-explorer-datasource",
113109
"access": "proxy",
@@ -122,6 +118,37 @@
122118
},
123119
"secureJsonData": { "azureClientSecret": "verySecret" }
124120
}'
121+
- name: create a data source of Azure Managed Prometheus using App Registration
122+
text: |
123+
az grafana data-source create -n MyGrafana --definition '{
124+
"name": "Azure Managed Prometheus-1",
125+
"type": "prometheus",
126+
"access": "proxy",
127+
"url": "https://myprom-abcd.westcentralus.prometheus.monitor.azure.com",
128+
"jsonData": {
129+
"httpMethod": "POST",
130+
"azureCredentials": {
131+
"authType": "clientsecret",
132+
"azureCloud": "AzureCloud",
133+
"tenantId": "72f988bf-86f1-41af-91ab-111111111111",
134+
"clientId": "fb31a2f5-9122-4be9-9705-111111111111"
135+
},
136+
"timeInterval": "30s"
137+
},
138+
"secureJsonData": { "azureClientSecret": "verySecret" }
139+
}'
140+
- name: create a data source of Azure Managed Prometheus using managed identity
141+
text: |
142+
az grafana data-source create -n MyGrafana --definition '{
143+
"name": "Azure Managed Prometheus-1",
144+
"type": "prometheus",
145+
"access": "proxy",
146+
"url": "https://myprom-jryu.westcentralus.prometheus.monitor.azure.com",
147+
"jsonData": {
148+
"httpMethod": "POST",
149+
"azureCredentials": { "authType": "msi" }
150+
}
151+
}'
125152
- name: create a data source of Azure SQL
126153
text: |
127154
az grafana data-source create -n MyGrafana --definition '{

src/amg/setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616

1717
# TODO: Confirm this is the right version number you want and it matches your
1818
# HISTORY.rst entry.
19-
VERSION = '1.2.5'
19+
VERSION = '1.2.6'
2020

2121
# The full list of classifiers is available at
2222
# https://pypi.python.org/pypi?%3Aaction=list_classifiers

0 commit comments

Comments
 (0)