Skip to content

Fail to authenticate with provisioning basicAuth in Grafana alert rule creation #280

@davide-prade

Description

@davide-prade

grafana: 11.1.4
tdengine: 3.2.3.0
grafanaplugin: 3.5.2

apiVersion: 1
datasources:
- name: TDengine
  type: tdengine-datasource
  orgId: 1
  url: "http://taosd:6041"
  basicAuth: true
  isDefault: true
  secureJsonData:
    url: "http://taosd:6041"
    basicAuth: "cm9vdDp0YW9zZGF0YQ==" # printf root:taosdata|base64 - DO NOT WORK FOR ALERTS!
  version: 1
  editable: true

With this provisioned configuration dashboards works correctly, but the Grafana alert creation not (clicking on "Preview" button).

image

If I then change manually username and password from the web interface, then the alert creation works.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions