summaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
authorPavan Gudiwada <25551553+pavangudiwada@users.noreply.github.com>2023-06-26 12:55:01 +0530
committerGitHub <noreply@github.com>2023-06-26 12:55:01 +0530
commit8092442cac29122dc4bd94e6b7c0709903845b09 (patch)
tree82549c46ae53013369d57798b69d391ee551487c /README.md
parent68d1a858fa2ccbd87b007e825d1c491a3e10fcb3 (diff)
parent5089696adc224f9dad5eb68023863f0a96a9a904 (diff)
Merge pull request #86 from robusta-dev/azure_managed_prometheus
Azure managed prometheus
Diffstat (limited to 'README.md')
-rw-r--r--README.md18
1 files changed, 18 insertions, 0 deletions
diff --git a/README.md b/README.md
index 7a545b4..1bbceed 100644
--- a/README.md
+++ b/README.md
@@ -349,6 +349,24 @@ krr.py simple -p http://my-centralized-prometheus:9090 --prometheus-label env -l
<p align="right">(<a href="#readme-top">back to top</a>)</p>
+## Azure managed Prometheus
+
+For Azure managed Prometheus you need to generate an access token, which can be done by running the following command:
+
+```sh
+# If you are not logged in to Azure, uncomment out the following line
+# az login
+AZURE_BEARER=$(az account get-access-token --resource=https://prometheus.monitor.azure.com --query accesssToken --output tsv); echo $AZURE_BEARER
+```
+
+Than run the following command with PROMETHEUS_URL substituted for your Azure Managed Prometheus URL:
+
+```sh
+python krr.py simple --namespace default -p PROMETHEUS_URL --prometheus-auth-header "Bearer $AZURE_BEARER"
+```
+
+<p align="right">(<a href="#readme-top">back to top</a>)</p>
+
<!-- Formatters -->
## Available formatters