Grafana Infinity 数据源

问题描述 投票:0回答:1

如何在grafana中允许所有主机使用无限数据源。我的数据源配置映射的 json 是

kubectl describe configmap grafana-app-config-datasource -n grafana
Name:         grafana-app-config-datasource
Namespace:    grafana
Labels:       <none>
Annotations:  <none>

Data
====
influxdb-datasource.yml:
----
# config file version
apiVersion: 1

datasources:
  - name: infuxdb
    type: "influxdb"
    access: "proxy"
    url: "http://influxdb2-abcd-service:8085"
    editable: true
    secureJsonData:
      token: "7hgdfhgfhghghghMMJkbkylrGlwfXTS"
    jsonData:
      version: Flux
      organization: "fgfgfg450"
      defaultBucket: xyz-bucket
      tlsSkipVerify: true
      timeInterval: "1m"
  - uid: "Z_L7ZejIz"
    orgId: 1
    name: "Infinity"
    type: "yesoreyeram-infinity-datasource"
    url: ""
    basicAuth: false
    basicAuthUser: ""
    isDefault: false
    jsonData:
      auth_method: "bearerToken"
      global_queries: []
      allowedHosts: "*"
      oauthPassThru: false
    version: 2
    readOnly: false
    secureJsonData:
      bearerToken: "hhjy-hfjfhfghhfgid6ZzDXlhjhfjhfjhfjhfjfhjwrw"

Events:  <none>

我认为它不接受 allowedHosts:“*”如何允许所有主机,我收到错误数据源缺少允许的主机/URL,在数据源设置页面中配置它以增强安全性

grafana datasource infinity
1个回答
0
投票

我不确定您使用的插件版本,但在最新版本中,

allowedHosts
设置是可选的,因此您应该能够忽略它或按照文档添加几个相关选项。

© www.soinside.com 2019 - 2024. All rights reserved.