Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
1.4k views
in Technique[技术] by (71.8m points)

grafana - Datasource config for Azure Monitor datasource in kube-prometheus-stack

I'm trying to figure out how to configure an Azure Monitor datasource for Grafana. What works so far is that the datasource is listed in Grafana when I deploy the stack via HELM.

Azure Monitor Datasource

This is the respective config from my values.yml:

grafana:
  additionalDataSources:
  - name: Azure Monitor
    type: grafana-azure-monitor-datasource
    version: 1
    id: 2
    orgId: 1
    typeLogoUrl: public/app/plugins/datasource/grafana-azure-monitor-datasource/img/logo.jpg
    url: /api/datasources/proxy/2
    access: proxy
    isDefault: false
    readOnly: false
    editable: true
    jsonData:
      timeInterval: 30s
      azureLogAnalyticsSameAs: true
      cloudName: azuremonitor
      clientId: $GF_AZURE_CLIENT_ID
      tenantId: $GF_AZURE_TENANT_ID
      subscriptionId: $GF_AZURE_SUBSCRIPTION_ID

Now, everytime grafana restarts, I'd need to set the client secret again. Is there any way to configure it directly for the startup of Grafana, as well as the Default subscription being used?


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
等待大神答复

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

2.1m questions

2.1m answers

60 comments

57.0k users

...