菜单
文档breadcrumb arrow 插件breadcrumb arrow Azure Cosmos DB 数据源breadcrumb arrow 配置 Azure Cosmos DB 数据源

配置 Azure Cosmos DB 数据源

要安装数据源,请参阅 安装 Grafana 插件。有关添加数据源的一般信息,请参阅 添加数据源

只有拥有组织 administrator 角色的用户才能添加数据源。管理员还可以使用 Grafana 的配置系统通过 YAML 配置数据源。

要安装 Azure Cosmos DB 插件,请参阅 Azure Cosmos DB 插件页面上的安装说明。

您需要您的帐户终结点和帐户密钥。要查找您的帐户终结点和密钥,请参阅在 Azure Cosmos DB 中安全访问数据

通过配置系统配置数据源

可以使用 Grafana 的配置系统通过配置文件配置数据源。要了解其工作原理,包括可以为此数据源设置的所有设置,请参阅配置 Grafana 数据源

以下是一些使用帐户终结点和帐户密钥进行身份验证的数据源配置示例

yaml
apiVersion: 1
datasources:
  - name: Cosmos DB
    type: grafana-azurecosmosdb-datasource
    jsonData:
      accountEndpoint: your_endpoint
    secureJsonData:
      accountKey: your_key