Welcome to OGeek Q&A 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 Reply

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

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...