Skip to content

使用Grafana API自动创建datasource, 无法保存用户名密码, 同时可以显示URL,但实际点击测试502,需要重新手动输入URL #256

@loliuy

Description

@loliuy

测试使用api构建一个自动化流程的时候,mysql等数据源可以做到自动连接,但是tdengine必须要手动输入用户名密码。同时可以显示URL,但实际点击测试error502,需要重新手动输入URL
post /api/datasources
{

"name": "tdengine-datasource",
"type": "tdengine-datasource",
"url": "http://tdengine-openiiot-shimu.openiiot-shimu.svc.cluster.local:6041",
"access": "proxy",
"basicAuth": true,
"basicAuthUser": "root",
"isDefault": true,
"secureJsonData": {
    "basicAuthPassword": "taosdata"
         }       

}

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