github.com/polarismesh/polaris@v1.17.8/release/standalone/docker-compose/grafana/provisioning/datasources/datasource.yml (about)

     1  # config file version
     2  apiVersion: 1
     3  
     4  # list of datasources to insert/update
     5  datasources:
     6    # <string, required> name of the datasource. Required
     7    - name: Prometheus
     8      # <string, required> datasource type. Required
     9      type: prometheus
    10      # <string, required> access mode. proxy or direct (Server or Browser in the UI). Required
    11      access: proxy
    12      # <int> org id. will default to orgId 1 if not specified
    13      orgId: 1
    14      # <string> custom UID which can be used to reference this datasource in other parts of the configuration, if not specified will be generated automatically
    15      # uid: my_unique_uid
    16      # <string> url
    17      url: "http://polaris-prometheus:9090"
    18      user:
    19      # <string> database name
    20      database:
    21      # <bool> allow updating provisioned dashboards from the UI
    22      allowUiUpdates: true
    23      # <bool> mark as default datasource. Max one per org
    24      isDefault: true
    25      # <map> fields that will be converted to json and stored in jsonData
    26      jsonData:
    27        httpMethod: POST
    28      secureJsonData:
    29        # <string> database password, if used
    30        password: ""
    31      version: 1
    32      # <bool> allow users to edit datasources from the UI.
    33      editable: true