

grafana.DataSource
Explore with Pulumi AI
The required arguments for this resource vary depending on the type of data source selected (via the ’type’ argument).
Example Usage
using System.Collections.Generic;
using System.Linq;
using System.Text.Json;
using Pulumi;
using Grafana = Lbrlabs.PulumiPackage.Grafana;
return await Deployment.RunAsync(() =>
{
var arbitrary_data = new Grafana.DataSource("arbitrary-data", new()
{
Type = "stackdriver",
JsonDataEncoded = JsonSerializer.Serialize(new Dictionary<string, object?>
{
["tokenUri"] = "https://oauth2.googleapis.com/token",
["authenticationType"] = "jwt",
["defaultProject"] = "default-project",
["clientEmail"] = "client-email@default-project.iam.gserviceaccount.com",
}),
SecureJsonDataEncoded = JsonSerializer.Serialize(new Dictionary<string, object?>
{
["privateKey"] = @"-----BEGIN PRIVATE KEY-----
private-key
-----END PRIVATE KEY-----
",
}),
});
var influxdb = new Grafana.DataSource("influxdb", new()
{
Type = "influxdb",
Url = "http://influxdb.example.net:8086/",
BasicAuthEnabled = true,
BasicAuthUsername = "username",
DatabaseName = influxdb_database.Metrics.Name,
JsonDataEncoded = JsonSerializer.Serialize(new Dictionary<string, object?>
{
["authType"] = "default",
["basicAuthPassword"] = "mypassword",
}),
});
var cloudwatch = new Grafana.DataSource("cloudwatch", new()
{
Type = "cloudwatch",
JsonDataEncoded = JsonSerializer.Serialize(new Dictionary<string, object?>
{
["defaultRegion"] = "us-east-1",
["authType"] = "keys",
}),
SecureJsonDataEncoded = JsonSerializer.Serialize(new Dictionary<string, object?>
{
["accessKey"] = "123",
["secretKey"] = "456",
}),
});
var prometheus = new Grafana.DataSource("prometheus", new()
{
Type = "prometheus",
Url = "https://my-instances.com",
BasicAuthEnabled = true,
BasicAuthUsername = "username",
JsonDataEncoded = JsonSerializer.Serialize(new Dictionary<string, object?>
{
["httpMethod"] = "POST",
["prometheusType"] = "Mimir",
["prometheusVersion"] = "2.4.0",
}),
SecureJsonDataEncoded = JsonSerializer.Serialize(new Dictionary<string, object?>
{
["basicAuthPassword"] = "password",
}),
});
});
package main
import (
"encoding/json"
"github.com/lbrlabs/pulumi-grafana/sdk/go/grafana"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
tmpJSON0, err := json.Marshal(map[string]interface{}{
"tokenUri": "https://oauth2.googleapis.com/token",
"authenticationType": "jwt",
"defaultProject": "default-project",
"clientEmail": "client-email@default-project.iam.gserviceaccount.com",
})
if err != nil {
return err
}
json0 := string(tmpJSON0)
tmpJSON1, err := json.Marshal(map[string]interface{}{
"privateKey": "-----BEGIN PRIVATE KEY-----\nprivate-key\n-----END PRIVATE KEY-----\n",
})
if err != nil {
return err
}
json1 := string(tmpJSON1)
_, err = grafana.NewDataSource(ctx, "arbitrary-data", &grafana.DataSourceArgs{
Type: pulumi.String("stackdriver"),
JsonDataEncoded: pulumi.String(json0),
SecureJsonDataEncoded: pulumi.String(json1),
})
if err != nil {
return err
}
tmpJSON2, err := json.Marshal(map[string]interface{}{
"authType": "default",
"basicAuthPassword": "mypassword",
})
if err != nil {
return err
}
json2 := string(tmpJSON2)
_, err = grafana.NewDataSource(ctx, "influxdb", &grafana.DataSourceArgs{
Type: pulumi.String("influxdb"),
Url: pulumi.String("http://influxdb.example.net:8086/"),
BasicAuthEnabled: pulumi.Bool(true),
BasicAuthUsername: pulumi.String("username"),
DatabaseName: pulumi.Any(influxdb_database.Metrics.Name),
JsonDataEncoded: pulumi.String(json2),
})
if err != nil {
return err
}
tmpJSON3, err := json.Marshal(map[string]interface{}{
"defaultRegion": "us-east-1",
"authType": "keys",
})
if err != nil {
return err
}
json3 := string(tmpJSON3)
tmpJSON4, err := json.Marshal(map[string]interface{}{
"accessKey": "123",
"secretKey": "456",
})
if err != nil {
return err
}
json4 := string(tmpJSON4)
_, err = grafana.NewDataSource(ctx, "cloudwatch", &grafana.DataSourceArgs{
Type: pulumi.String("cloudwatch"),
JsonDataEncoded: pulumi.String(json3),
SecureJsonDataEncoded: pulumi.String(json4),
})
if err != nil {
return err
}
tmpJSON5, err := json.Marshal(map[string]interface{}{
"httpMethod": "POST",
"prometheusType": "Mimir",
"prometheusVersion": "2.4.0",
})
if err != nil {
return err
}
json5 := string(tmpJSON5)
tmpJSON6, err := json.Marshal(map[string]interface{}{
"basicAuthPassword": "password",
})
if err != nil {
return err
}
json6 := string(tmpJSON6)
_, err = grafana.NewDataSource(ctx, "prometheus", &grafana.DataSourceArgs{
Type: pulumi.String("prometheus"),
Url: pulumi.String("https://my-instances.com"),
BasicAuthEnabled: pulumi.Bool(true),
BasicAuthUsername: pulumi.String("username"),
JsonDataEncoded: pulumi.String(json5),
SecureJsonDataEncoded: pulumi.String(json6),
})
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.grafana.DataSource;
import com.pulumi.grafana.DataSourceArgs;
import static com.pulumi.codegen.internal.Serialization.*;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var arbitrary_data = new DataSource("arbitrary-data", DataSourceArgs.builder()
.type("stackdriver")
.jsonDataEncoded(serializeJson(
jsonObject(
jsonProperty("tokenUri", "https://oauth2.googleapis.com/token"),
jsonProperty("authenticationType", "jwt"),
jsonProperty("defaultProject", "default-project"),
jsonProperty("clientEmail", "client-email@default-project.iam.gserviceaccount.com")
)))
.secureJsonDataEncoded(serializeJson(
jsonObject(
jsonProperty("privateKey", """
-----BEGIN PRIVATE KEY-----
private-key
-----END PRIVATE KEY-----
""")
)))
.build());
var influxdb = new DataSource("influxdb", DataSourceArgs.builder()
.type("influxdb")
.url("http://influxdb.example.net:8086/")
.basicAuthEnabled(true)
.basicAuthUsername("username")
.databaseName(influxdb_database.metrics().name())
.jsonDataEncoded(serializeJson(
jsonObject(
jsonProperty("authType", "default"),
jsonProperty("basicAuthPassword", "mypassword")
)))
.build());
var cloudwatch = new DataSource("cloudwatch", DataSourceArgs.builder()
.type("cloudwatch")
.jsonDataEncoded(serializeJson(
jsonObject(
jsonProperty("defaultRegion", "us-east-1"),
jsonProperty("authType", "keys")
)))
.secureJsonDataEncoded(serializeJson(
jsonObject(
jsonProperty("accessKey", "123"),
jsonProperty("secretKey", "456")
)))
.build());
var prometheus = new DataSource("prometheus", DataSourceArgs.builder()
.type("prometheus")
.url("https://my-instances.com")
.basicAuthEnabled(true)
.basicAuthUsername("username")
.jsonDataEncoded(serializeJson(
jsonObject(
jsonProperty("httpMethod", "POST"),
jsonProperty("prometheusType", "Mimir"),
jsonProperty("prometheusVersion", "2.4.0")
)))
.secureJsonDataEncoded(serializeJson(
jsonObject(
jsonProperty("basicAuthPassword", "password")
)))
.build());
}
}
import pulumi
import json
import lbrlabs_pulumi_grafana as grafana
arbitrary_data = grafana.DataSource("arbitrary-data",
type="stackdriver",
json_data_encoded=json.dumps({
"tokenUri": "https://oauth2.googleapis.com/token",
"authenticationType": "jwt",
"defaultProject": "default-project",
"clientEmail": "client-email@default-project.iam.gserviceaccount.com",
}),
secure_json_data_encoded=json.dumps({
"privateKey": """-----BEGIN PRIVATE KEY-----
private-key
-----END PRIVATE KEY-----
""",
}))
influxdb = grafana.DataSource("influxdb",
type="influxdb",
url="http://influxdb.example.net:8086/",
basic_auth_enabled=True,
basic_auth_username="username",
database_name=influxdb_database["metrics"]["name"],
json_data_encoded=json.dumps({
"authType": "default",
"basicAuthPassword": "mypassword",
}))
cloudwatch = grafana.DataSource("cloudwatch",
type="cloudwatch",
json_data_encoded=json.dumps({
"defaultRegion": "us-east-1",
"authType": "keys",
}),
secure_json_data_encoded=json.dumps({
"accessKey": "123",
"secretKey": "456",
}))
prometheus = grafana.DataSource("prometheus",
type="prometheus",
url="https://my-instances.com",
basic_auth_enabled=True,
basic_auth_username="username",
json_data_encoded=json.dumps({
"httpMethod": "POST",
"prometheusType": "Mimir",
"prometheusVersion": "2.4.0",
}),
secure_json_data_encoded=json.dumps({
"basicAuthPassword": "password",
}))
import * as pulumi from "@pulumi/pulumi";
import * as grafana from "@lbrlabs/pulumi-grafana";
const arbitrary_data = new grafana.DataSource("arbitrary-data", {
type: "stackdriver",
jsonDataEncoded: JSON.stringify({
tokenUri: "https://oauth2.googleapis.com/token",
authenticationType: "jwt",
defaultProject: "default-project",
clientEmail: "client-email@default-project.iam.gserviceaccount.com",
}),
secureJsonDataEncoded: JSON.stringify({
privateKey: `-----BEGIN PRIVATE KEY-----
private-key
-----END PRIVATE KEY-----
`,
}),
});
const influxdb = new grafana.DataSource("influxdb", {
type: "influxdb",
url: "http://influxdb.example.net:8086/",
basicAuthEnabled: true,
basicAuthUsername: "username",
databaseName: influxdb_database.metrics.name,
jsonDataEncoded: JSON.stringify({
authType: "default",
basicAuthPassword: "mypassword",
}),
});
const cloudwatch = new grafana.DataSource("cloudwatch", {
type: "cloudwatch",
jsonDataEncoded: JSON.stringify({
defaultRegion: "us-east-1",
authType: "keys",
}),
secureJsonDataEncoded: JSON.stringify({
accessKey: "123",
secretKey: "456",
}),
});
const prometheus = new grafana.DataSource("prometheus", {
type: "prometheus",
url: "https://my-instances.com",
basicAuthEnabled: true,
basicAuthUsername: "username",
jsonDataEncoded: JSON.stringify({
httpMethod: "POST",
prometheusType: "Mimir",
prometheusVersion: "2.4.0",
}),
secureJsonDataEncoded: JSON.stringify({
basicAuthPassword: "password",
}),
});
resources:
arbitrary-data:
type: grafana:DataSource
properties:
type: stackdriver
jsonDataEncoded:
fn::toJSON:
tokenUri: https://oauth2.googleapis.com/token
authenticationType: jwt
defaultProject: default-project
clientEmail: client-email@default-project.iam.gserviceaccount.com
secureJsonDataEncoded:
fn::toJSON:
privateKey: |
-----BEGIN PRIVATE KEY-----
private-key
-----END PRIVATE KEY-----
influxdb:
type: grafana:DataSource
properties:
type: influxdb
url: http://influxdb.example.net:8086/
basicAuthEnabled: true
basicAuthUsername: username
databaseName: ${influxdb_database.metrics.name}
jsonDataEncoded:
fn::toJSON:
authType: default
basicAuthPassword: mypassword
cloudwatch:
type: grafana:DataSource
properties:
type: cloudwatch
jsonDataEncoded:
fn::toJSON:
defaultRegion: us-east-1
authType: keys
secureJsonDataEncoded:
fn::toJSON:
accessKey: '123'
secretKey: '456'
prometheus:
type: grafana:DataSource
properties:
type: prometheus
url: https://my-instances.com
basicAuthEnabled: true
basicAuthUsername: username
jsonDataEncoded:
fn::toJSON:
httpMethod: POST
prometheusType: Mimir
prometheusVersion: 2.4.0
secureJsonDataEncoded:
fn::toJSON:
basicAuthPassword: password
Create DataSource Resource
new DataSource(name: string, args: DataSourceArgs, opts?: CustomResourceOptions);
@overload
def DataSource(resource_name: str,
opts: Optional[ResourceOptions] = None,
access_mode: Optional[str] = None,
basic_auth_enabled: Optional[bool] = None,
basic_auth_password: Optional[str] = None,
basic_auth_username: Optional[str] = None,
database_name: Optional[str] = None,
http_headers: Optional[Mapping[str, str]] = None,
is_default: Optional[bool] = None,
json_data_encoded: Optional[str] = None,
json_datas: Optional[Sequence[DataSourceJsonDataArgs]] = None,
name: Optional[str] = None,
password: Optional[str] = None,
secure_json_data_encoded: Optional[str] = None,
secure_json_datas: Optional[Sequence[DataSourceSecureJsonDataArgs]] = None,
type: Optional[str] = None,
uid: Optional[str] = None,
url: Optional[str] = None,
username: Optional[str] = None)
@overload
def DataSource(resource_name: str,
args: DataSourceArgs,
opts: Optional[ResourceOptions] = None)
func NewDataSource(ctx *Context, name string, args DataSourceArgs, opts ...ResourceOption) (*DataSource, error)
public DataSource(string name, DataSourceArgs args, CustomResourceOptions? opts = null)
public DataSource(String name, DataSourceArgs args)
public DataSource(String name, DataSourceArgs args, CustomResourceOptions options)
type: grafana:DataSource
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args DataSourceArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args DataSourceArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args DataSourceArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args DataSourceArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args DataSourceArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
DataSource Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
The DataSource resource accepts the following input properties:
- Type string
The data source type. Must be one of the supported data source keywords.
- Access
Mode string The method by which Grafana will access the data source:
proxy
ordirect
. Defaults toproxy
.- Basic
Auth boolEnabled Whether to enable basic auth for the data source. Defaults to
false
.- Basic
Auth stringPassword Use securejsondata_encoded.basicAuthPassword instead. Defaults to ``.
Use secure_json_data_encoded.basicAuthPassword instead.
- Basic
Auth stringUsername Basic auth username. Defaults to ``.
- Database
Name string (Required by some data source types) The name of the database to use on the selected data source server. Defaults to ``.
- Http
Headers Dictionary<string, string> Custom HTTP headers
- Is
Default bool Whether to set the data source as default. This should only be
true
to a single data source. Defaults tofalse
.- Json
Data stringEncoded Serialized JSON string containing the json data. This attribute can be used to pass configuration options to the data source. To figure out what options a datasource has available, see its docs or inspect the network data when saving it from the Grafana UI. Note that keys in this map are usually camelCased.
- Json
Datas List<Lbrlabs.Pulumi Package. Grafana. Inputs. Data Source Json Data Args> Use jsondataencoded instead.
Use json_data_encoded instead.
- Name string
A unique name for the data source.
- Password string
Use securejsondata_encoded.password instead. Defaults to ``.
Use secure_json_data_encoded.password instead.
- Secure
Json stringData Encoded Serialized JSON string containing the secure json data. This attribute can be used to pass secure configuration options to the data source. To figure out what options a datasource has available, see its docs or inspect the network data when saving it from the Grafana UI. Note that keys in this map are usually camelCased.
- Secure
Json List<Lbrlabs.Datas Pulumi Package. Grafana. Inputs. Data Source Secure Json Data Args> Use securejsondata*encoded instead.
Use secure_json_data_encoded instead.
- Uid string
Unique identifier. If unset, this will be automatically generated.
- Url string
The URL for the data source. The type of URL required varies depending on the chosen data source type.
- Username string
(Required by some data source types) The username to use to authenticate to the data source. Defaults to ``.
- Type string
The data source type. Must be one of the supported data source keywords.
- Access
Mode string The method by which Grafana will access the data source:
proxy
ordirect
. Defaults toproxy
.- Basic
Auth boolEnabled Whether to enable basic auth for the data source. Defaults to
false
.- Basic
Auth stringPassword Use securejsondata_encoded.basicAuthPassword instead. Defaults to ``.
Use secure_json_data_encoded.basicAuthPassword instead.
- Basic
Auth stringUsername Basic auth username. Defaults to ``.
- Database
Name string (Required by some data source types) The name of the database to use on the selected data source server. Defaults to ``.
- Http
Headers map[string]string Custom HTTP headers
- Is
Default bool Whether to set the data source as default. This should only be
true
to a single data source. Defaults tofalse
.- Json
Data stringEncoded Serialized JSON string containing the json data. This attribute can be used to pass configuration options to the data source. To figure out what options a datasource has available, see its docs or inspect the network data when saving it from the Grafana UI. Note that keys in this map are usually camelCased.
- Json
Datas []DataSource Json Data Args Use jsondataencoded instead.
Use json_data_encoded instead.
- Name string
A unique name for the data source.
- Password string
Use securejsondata_encoded.password instead. Defaults to ``.
Use secure_json_data_encoded.password instead.
- Secure
Json stringData Encoded Serialized JSON string containing the secure json data. This attribute can be used to pass secure configuration options to the data source. To figure out what options a datasource has available, see its docs or inspect the network data when saving it from the Grafana UI. Note that keys in this map are usually camelCased.
- Secure
Json []DataDatas Source Secure Json Data Args Use securejsondata*encoded instead.
Use secure_json_data_encoded instead.
- Uid string
Unique identifier. If unset, this will be automatically generated.
- Url string
The URL for the data source. The type of URL required varies depending on the chosen data source type.
- Username string
(Required by some data source types) The username to use to authenticate to the data source. Defaults to ``.
- type String
The data source type. Must be one of the supported data source keywords.
- access
Mode String The method by which Grafana will access the data source:
proxy
ordirect
. Defaults toproxy
.- basic
Auth BooleanEnabled Whether to enable basic auth for the data source. Defaults to
false
.- basic
Auth StringPassword Use securejsondata_encoded.basicAuthPassword instead. Defaults to ``.
Use secure_json_data_encoded.basicAuthPassword instead.
- basic
Auth StringUsername Basic auth username. Defaults to ``.
- database
Name String (Required by some data source types) The name of the database to use on the selected data source server. Defaults to ``.
- http
Headers Map<String,String> Custom HTTP headers
- is
Default Boolean Whether to set the data source as default. This should only be
true
to a single data source. Defaults tofalse
.- json
Data StringEncoded Serialized JSON string containing the json data. This attribute can be used to pass configuration options to the data source. To figure out what options a datasource has available, see its docs or inspect the network data when saving it from the Grafana UI. Note that keys in this map are usually camelCased.
- json
Datas List<DataSource Json Data Args> Use jsondataencoded instead.
Use json_data_encoded instead.
- name String
A unique name for the data source.
- password String
Use securejsondata_encoded.password instead. Defaults to ``.
Use secure_json_data_encoded.password instead.
- secure
Json StringData Encoded Serialized JSON string containing the secure json data. This attribute can be used to pass secure configuration options to the data source. To figure out what options a datasource has available, see its docs or inspect the network data when saving it from the Grafana UI. Note that keys in this map are usually camelCased.
- secure
Json List<DataDatas Source Secure Json Data Args> Use securejsondata*encoded instead.
Use secure_json_data_encoded instead.
- uid String
Unique identifier. If unset, this will be automatically generated.
- url String
The URL for the data source. The type of URL required varies depending on the chosen data source type.
- username String
(Required by some data source types) The username to use to authenticate to the data source. Defaults to ``.
- type string
The data source type. Must be one of the supported data source keywords.
- access
Mode string The method by which Grafana will access the data source:
proxy
ordirect
. Defaults toproxy
.- basic
Auth booleanEnabled Whether to enable basic auth for the data source. Defaults to
false
.- basic
Auth stringPassword Use securejsondata_encoded.basicAuthPassword instead. Defaults to ``.
Use secure_json_data_encoded.basicAuthPassword instead.
- basic
Auth stringUsername Basic auth username. Defaults to ``.
- database
Name string (Required by some data source types) The name of the database to use on the selected data source server. Defaults to ``.
- http
Headers {[key: string]: string} Custom HTTP headers
- is
Default boolean Whether to set the data source as default. This should only be
true
to a single data source. Defaults tofalse
.- json
Data stringEncoded Serialized JSON string containing the json data. This attribute can be used to pass configuration options to the data source. To figure out what options a datasource has available, see its docs or inspect the network data when saving it from the Grafana UI. Note that keys in this map are usually camelCased.
- json
Datas DataSource Json Data Args[] Use jsondataencoded instead.
Use json_data_encoded instead.
- name string
A unique name for the data source.
- password string
Use securejsondata_encoded.password instead. Defaults to ``.
Use secure_json_data_encoded.password instead.
- secure
Json stringData Encoded Serialized JSON string containing the secure json data. This attribute can be used to pass secure configuration options to the data source. To figure out what options a datasource has available, see its docs or inspect the network data when saving it from the Grafana UI. Note that keys in this map are usually camelCased.
- secure
Json DataDatas Source Secure Json Data Args[] Use securejsondata*encoded instead.
Use secure_json_data_encoded instead.
- uid string
Unique identifier. If unset, this will be automatically generated.
- url string
The URL for the data source. The type of URL required varies depending on the chosen data source type.
- username string
(Required by some data source types) The username to use to authenticate to the data source. Defaults to ``.
- type str
The data source type. Must be one of the supported data source keywords.
- access_
mode str The method by which Grafana will access the data source:
proxy
ordirect
. Defaults toproxy
.- basic_
auth_ boolenabled Whether to enable basic auth for the data source. Defaults to
false
.- basic_
auth_ strpassword Use securejsondata_encoded.basicAuthPassword instead. Defaults to ``.
Use secure_json_data_encoded.basicAuthPassword instead.
- basic_
auth_ strusername Basic auth username. Defaults to ``.
- database_
name str (Required by some data source types) The name of the database to use on the selected data source server. Defaults to ``.
- http_
headers Mapping[str, str] Custom HTTP headers
- is_
default bool Whether to set the data source as default. This should only be
true
to a single data source. Defaults tofalse
.- json_
data_ strencoded Serialized JSON string containing the json data. This attribute can be used to pass configuration options to the data source. To figure out what options a datasource has available, see its docs or inspect the network data when saving it from the Grafana UI. Note that keys in this map are usually camelCased.
- json_
datas Sequence[DataSource Json Data Args] Use jsondataencoded instead.
Use json_data_encoded instead.
- name str
A unique name for the data source.
- password str
Use securejsondata_encoded.password instead. Defaults to ``.
Use secure_json_data_encoded.password instead.
- secure_
json_ strdata_ encoded Serialized JSON string containing the secure json data. This attribute can be used to pass secure configuration options to the data source. To figure out what options a datasource has available, see its docs or inspect the network data when saving it from the Grafana UI. Note that keys in this map are usually camelCased.
- secure_
json_ Sequence[Datadatas Source Secure Json Data Args] Use securejsondata*encoded instead.
Use secure_json_data_encoded instead.
- uid str
Unique identifier. If unset, this will be automatically generated.
- url str
The URL for the data source. The type of URL required varies depending on the chosen data source type.
- username str
(Required by some data source types) The username to use to authenticate to the data source. Defaults to ``.
- type String
The data source type. Must be one of the supported data source keywords.
- access
Mode String The method by which Grafana will access the data source:
proxy
ordirect
. Defaults toproxy
.- basic
Auth BooleanEnabled Whether to enable basic auth for the data source. Defaults to
false
.- basic
Auth StringPassword Use securejsondata_encoded.basicAuthPassword instead. Defaults to ``.
Use secure_json_data_encoded.basicAuthPassword instead.
- basic
Auth StringUsername Basic auth username. Defaults to ``.
- database
Name String (Required by some data source types) The name of the database to use on the selected data source server. Defaults to ``.
- http
Headers Map<String> Custom HTTP headers
- is
Default Boolean Whether to set the data source as default. This should only be
true
to a single data source. Defaults tofalse
.- json
Data StringEncoded Serialized JSON string containing the json data. This attribute can be used to pass configuration options to the data source. To figure out what options a datasource has available, see its docs or inspect the network data when saving it from the Grafana UI. Note that keys in this map are usually camelCased.
- json
Datas List<Property Map> Use jsondataencoded instead.
Use json_data_encoded instead.
- name String
A unique name for the data source.
- password String
Use securejsondata_encoded.password instead. Defaults to ``.
Use secure_json_data_encoded.password instead.
- secure
Json StringData Encoded Serialized JSON string containing the secure json data. This attribute can be used to pass secure configuration options to the data source. To figure out what options a datasource has available, see its docs or inspect the network data when saving it from the Grafana UI. Note that keys in this map are usually camelCased.
- secure
Json List<Property Map>Datas Use securejsondata*encoded instead.
Use secure_json_data_encoded instead.
- uid String
Unique identifier. If unset, this will be automatically generated.
- url String
The URL for the data source. The type of URL required varies depending on the chosen data source type.
- username String
(Required by some data source types) The username to use to authenticate to the data source. Defaults to ``.
Outputs
All input properties are implicitly available as output properties. Additionally, the DataSource resource produces the following output properties:
- Id string
The provider-assigned unique ID for this managed resource.
- Id string
The provider-assigned unique ID for this managed resource.
- id String
The provider-assigned unique ID for this managed resource.
- id string
The provider-assigned unique ID for this managed resource.
- id str
The provider-assigned unique ID for this managed resource.
- id String
The provider-assigned unique ID for this managed resource.
Look up Existing DataSource Resource
Get an existing DataSource resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: DataSourceState, opts?: CustomResourceOptions): DataSource
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
access_mode: Optional[str] = None,
basic_auth_enabled: Optional[bool] = None,
basic_auth_password: Optional[str] = None,
basic_auth_username: Optional[str] = None,
database_name: Optional[str] = None,
http_headers: Optional[Mapping[str, str]] = None,
is_default: Optional[bool] = None,
json_data_encoded: Optional[str] = None,
json_datas: Optional[Sequence[DataSourceJsonDataArgs]] = None,
name: Optional[str] = None,
password: Optional[str] = None,
secure_json_data_encoded: Optional[str] = None,
secure_json_datas: Optional[Sequence[DataSourceSecureJsonDataArgs]] = None,
type: Optional[str] = None,
uid: Optional[str] = None,
url: Optional[str] = None,
username: Optional[str] = None) -> DataSource
func GetDataSource(ctx *Context, name string, id IDInput, state *DataSourceState, opts ...ResourceOption) (*DataSource, error)
public static DataSource Get(string name, Input<string> id, DataSourceState? state, CustomResourceOptions? opts = null)
public static DataSource get(String name, Output<String> id, DataSourceState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Access
Mode string The method by which Grafana will access the data source:
proxy
ordirect
. Defaults toproxy
.- Basic
Auth boolEnabled Whether to enable basic auth for the data source. Defaults to
false
.- Basic
Auth stringPassword Use securejsondata_encoded.basicAuthPassword instead. Defaults to ``.
Use secure_json_data_encoded.basicAuthPassword instead.
- Basic
Auth stringUsername Basic auth username. Defaults to ``.
- Database
Name string (Required by some data source types) The name of the database to use on the selected data source server. Defaults to ``.
- Http
Headers Dictionary<string, string> Custom HTTP headers
- Is
Default bool Whether to set the data source as default. This should only be
true
to a single data source. Defaults tofalse
.- Json
Data stringEncoded Serialized JSON string containing the json data. This attribute can be used to pass configuration options to the data source. To figure out what options a datasource has available, see its docs or inspect the network data when saving it from the Grafana UI. Note that keys in this map are usually camelCased.
- Json
Datas List<Lbrlabs.Pulumi Package. Grafana. Inputs. Data Source Json Data Args> Use jsondataencoded instead.
Use json_data_encoded instead.
- Name string
A unique name for the data source.
- Password string
Use securejsondata_encoded.password instead. Defaults to ``.
Use secure_json_data_encoded.password instead.
- Secure
Json stringData Encoded Serialized JSON string containing the secure json data. This attribute can be used to pass secure configuration options to the data source. To figure out what options a datasource has available, see its docs or inspect the network data when saving it from the Grafana UI. Note that keys in this map are usually camelCased.
- Secure
Json List<Lbrlabs.Datas Pulumi Package. Grafana. Inputs. Data Source Secure Json Data Args> Use securejsondata*encoded instead.
Use secure_json_data_encoded instead.
- Type string
The data source type. Must be one of the supported data source keywords.
- Uid string
Unique identifier. If unset, this will be automatically generated.
- Url string
The URL for the data source. The type of URL required varies depending on the chosen data source type.
- Username string
(Required by some data source types) The username to use to authenticate to the data source. Defaults to ``.
- Access
Mode string The method by which Grafana will access the data source:
proxy
ordirect
. Defaults toproxy
.- Basic
Auth boolEnabled Whether to enable basic auth for the data source. Defaults to
false
.- Basic
Auth stringPassword Use securejsondata_encoded.basicAuthPassword instead. Defaults to ``.
Use secure_json_data_encoded.basicAuthPassword instead.
- Basic
Auth stringUsername Basic auth username. Defaults to ``.
- Database
Name string (Required by some data source types) The name of the database to use on the selected data source server. Defaults to ``.
- Http
Headers map[string]string Custom HTTP headers
- Is
Default bool Whether to set the data source as default. This should only be
true
to a single data source. Defaults tofalse
.- Json
Data stringEncoded Serialized JSON string containing the json data. This attribute can be used to pass configuration options to the data source. To figure out what options a datasource has available, see its docs or inspect the network data when saving it from the Grafana UI. Note that keys in this map are usually camelCased.
- Json
Datas []DataSource Json Data Args Use jsondataencoded instead.
Use json_data_encoded instead.
- Name string
A unique name for the data source.
- Password string
Use securejsondata_encoded.password instead. Defaults to ``.
Use secure_json_data_encoded.password instead.
- Secure
Json stringData Encoded Serialized JSON string containing the secure json data. This attribute can be used to pass secure configuration options to the data source. To figure out what options a datasource has available, see its docs or inspect the network data when saving it from the Grafana UI. Note that keys in this map are usually camelCased.
- Secure
Json []DataDatas Source Secure Json Data Args Use securejsondata*encoded instead.
Use secure_json_data_encoded instead.
- Type string
The data source type. Must be one of the supported data source keywords.
- Uid string
Unique identifier. If unset, this will be automatically generated.
- Url string
The URL for the data source. The type of URL required varies depending on the chosen data source type.
- Username string
(Required by some data source types) The username to use to authenticate to the data source. Defaults to ``.
- access
Mode String The method by which Grafana will access the data source:
proxy
ordirect
. Defaults toproxy
.- basic
Auth BooleanEnabled Whether to enable basic auth for the data source. Defaults to
false
.- basic
Auth StringPassword Use securejsondata_encoded.basicAuthPassword instead. Defaults to ``.
Use secure_json_data_encoded.basicAuthPassword instead.
- basic
Auth StringUsername Basic auth username. Defaults to ``.
- database
Name String (Required by some data source types) The name of the database to use on the selected data source server. Defaults to ``.
- http
Headers Map<String,String> Custom HTTP headers
- is
Default Boolean Whether to set the data source as default. This should only be
true
to a single data source. Defaults tofalse
.- json
Data StringEncoded Serialized JSON string containing the json data. This attribute can be used to pass configuration options to the data source. To figure out what options a datasource has available, see its docs or inspect the network data when saving it from the Grafana UI. Note that keys in this map are usually camelCased.
- json
Datas List<DataSource Json Data Args> Use jsondataencoded instead.
Use json_data_encoded instead.
- name String
A unique name for the data source.
- password String
Use securejsondata_encoded.password instead. Defaults to ``.
Use secure_json_data_encoded.password instead.
- secure
Json StringData Encoded Serialized JSON string containing the secure json data. This attribute can be used to pass secure configuration options to the data source. To figure out what options a datasource has available, see its docs or inspect the network data when saving it from the Grafana UI. Note that keys in this map are usually camelCased.
- secure
Json List<DataDatas Source Secure Json Data Args> Use securejsondata*encoded instead.
Use secure_json_data_encoded instead.
- type String
The data source type. Must be one of the supported data source keywords.
- uid String
Unique identifier. If unset, this will be automatically generated.
- url String
The URL for the data source. The type of URL required varies depending on the chosen data source type.
- username String
(Required by some data source types) The username to use to authenticate to the data source. Defaults to ``.
- access
Mode string The method by which Grafana will access the data source:
proxy
ordirect
. Defaults toproxy
.- basic
Auth booleanEnabled Whether to enable basic auth for the data source. Defaults to
false
.- basic
Auth stringPassword Use securejsondata_encoded.basicAuthPassword instead. Defaults to ``.
Use secure_json_data_encoded.basicAuthPassword instead.
- basic
Auth stringUsername Basic auth username. Defaults to ``.
- database
Name string (Required by some data source types) The name of the database to use on the selected data source server. Defaults to ``.
- http
Headers {[key: string]: string} Custom HTTP headers
- is
Default boolean Whether to set the data source as default. This should only be
true
to a single data source. Defaults tofalse
.- json
Data stringEncoded Serialized JSON string containing the json data. This attribute can be used to pass configuration options to the data source. To figure out what options a datasource has available, see its docs or inspect the network data when saving it from the Grafana UI. Note that keys in this map are usually camelCased.
- json
Datas DataSource Json Data Args[] Use jsondataencoded instead.
Use json_data_encoded instead.
- name string
A unique name for the data source.
- password string
Use securejsondata_encoded.password instead. Defaults to ``.
Use secure_json_data_encoded.password instead.
- secure
Json stringData Encoded Serialized JSON string containing the secure json data. This attribute can be used to pass secure configuration options to the data source. To figure out what options a datasource has available, see its docs or inspect the network data when saving it from the Grafana UI. Note that keys in this map are usually camelCased.
- secure
Json DataDatas Source Secure Json Data Args[] Use securejsondata*encoded instead.
Use secure_json_data_encoded instead.
- type string
The data source type. Must be one of the supported data source keywords.
- uid string
Unique identifier. If unset, this will be automatically generated.
- url string
The URL for the data source. The type of URL required varies depending on the chosen data source type.
- username string
(Required by some data source types) The username to use to authenticate to the data source. Defaults to ``.
- access_
mode str The method by which Grafana will access the data source:
proxy
ordirect
. Defaults toproxy
.- basic_
auth_ boolenabled Whether to enable basic auth for the data source. Defaults to
false
.- basic_
auth_ strpassword Use securejsondata_encoded.basicAuthPassword instead. Defaults to ``.
Use secure_json_data_encoded.basicAuthPassword instead.
- basic_
auth_ strusername Basic auth username. Defaults to ``.
- database_
name str (Required by some data source types) The name of the database to use on the selected data source server. Defaults to ``.
- http_
headers Mapping[str, str] Custom HTTP headers
- is_
default bool Whether to set the data source as default. This should only be
true
to a single data source. Defaults tofalse
.- json_
data_ strencoded Serialized JSON string containing the json data. This attribute can be used to pass configuration options to the data source. To figure out what options a datasource has available, see its docs or inspect the network data when saving it from the Grafana UI. Note that keys in this map are usually camelCased.
- json_
datas Sequence[DataSource Json Data Args] Use jsondataencoded instead.
Use json_data_encoded instead.
- name str
A unique name for the data source.
- password str
Use securejsondata_encoded.password instead. Defaults to ``.
Use secure_json_data_encoded.password instead.
- secure_
json_ strdata_ encoded Serialized JSON string containing the secure json data. This attribute can be used to pass secure configuration options to the data source. To figure out what options a datasource has available, see its docs or inspect the network data when saving it from the Grafana UI. Note that keys in this map are usually camelCased.
- secure_
json_ Sequence[Datadatas Source Secure Json Data Args] Use securejsondata*encoded instead.
Use secure_json_data_encoded instead.
- type str
The data source type. Must be one of the supported data source keywords.
- uid str
Unique identifier. If unset, this will be automatically generated.
- url str
The URL for the data source. The type of URL required varies depending on the chosen data source type.
- username str
(Required by some data source types) The username to use to authenticate to the data source. Defaults to ``.
- access
Mode String The method by which Grafana will access the data source:
proxy
ordirect
. Defaults toproxy
.- basic
Auth BooleanEnabled Whether to enable basic auth for the data source. Defaults to
false
.- basic
Auth StringPassword Use securejsondata_encoded.basicAuthPassword instead. Defaults to ``.
Use secure_json_data_encoded.basicAuthPassword instead.
- basic
Auth StringUsername Basic auth username. Defaults to ``.
- database
Name String (Required by some data source types) The name of the database to use on the selected data source server. Defaults to ``.
- http
Headers Map<String> Custom HTTP headers
- is
Default Boolean Whether to set the data source as default. This should only be
true
to a single data source. Defaults tofalse
.- json
Data StringEncoded Serialized JSON string containing the json data. This attribute can be used to pass configuration options to the data source. To figure out what options a datasource has available, see its docs or inspect the network data when saving it from the Grafana UI. Note that keys in this map are usually camelCased.
- json
Datas List<Property Map> Use jsondataencoded instead.
Use json_data_encoded instead.
- name String
A unique name for the data source.
- password String
Use securejsondata_encoded.password instead. Defaults to ``.
Use secure_json_data_encoded.password instead.
- secure
Json StringData Encoded Serialized JSON string containing the secure json data. This attribute can be used to pass secure configuration options to the data source. To figure out what options a datasource has available, see its docs or inspect the network data when saving it from the Grafana UI. Note that keys in this map are usually camelCased.
- secure
Json List<Property Map>Datas Use securejsondata*encoded instead.
Use secure_json_data_encoded instead.
- type String
The data source type. Must be one of the supported data source keywords.
- uid String
Unique identifier. If unset, this will be automatically generated.
- url String
The URL for the data source. The type of URL required varies depending on the chosen data source type.
- username String
(Required by some data source types) The username to use to authenticate to the data source. Defaults to ``.
Supporting Types
DataSourceJsonData
- Alertmanager
Uid string (Prometheus) The name of the Alertmanager datasource to manage alerts via UI
- Assume
Role stringArn (CloudWatch, Athena) The ARN of the role to be assumed by Grafana when using the CloudWatch or Athena data source.
- Auth
Type string (CloudWatch, Athena) The authentication type used to access the data source.
- Authentication
Type string (Stackdriver) The authentication type:
jwt
orgce
.- Catalog string
(Athena) Athena catalog.
- Client
Email string (Stackdriver) Service account email address.
- Client
Id string (Azure Monitor) The service account client id.
- Cloud
Name string (Azure Monitor) The cloud name.
- Conn
Max intLifetime (MySQL, PostgreSQL, and MSSQL) Maximum amount of time in seconds a connection may be reused (Grafana v5.4+).
- Custom
Metrics stringNamespaces (CloudWatch) A comma-separated list of custom namespaces to be queried by the CloudWatch data source.
- Database string
(Athena) Name of the database within the catalog.
- Default
Bucket string (InfluxDB) The default bucket for the data source.
- Default
Project string (Stackdriver) The default project for the data source.
- Default
Region string (CloudWatch, Athena) The default region for the data source.
- Derived
Fields List<Lbrlabs.Pulumi Package. Grafana. Inputs. Data Source Json Data Derived Field> (Loki) See https://grafana.com/docs/grafana/latest/datasources/loki/#derived-fields
- Encrypt string
(MSSQL) Connection SSL encryption handling: 'disable', 'false' or 'true'.
- Es
Version string (Elasticsearch) Elasticsearch semantic version (Grafana v8.0+).
- External
Id string (CloudWatch, Athena) If you are assuming a role in another account, that has been created with an external ID, specify the external ID here.
- Github
Url string (Github) Github URL
- Graphite
Version string (Graphite) Graphite version.
- Http
Method string (Prometheus) HTTP method to use for making requests.
- Implementation string
(Alertmanager) Implementation of Alertmanager. Either 'cortex' or 'prometheus'
- Interval string
(Elasticsearch) Index date time format. nil(No Pattern), 'Hourly', 'Daily', 'Weekly', 'Monthly' or 'Yearly'.
- Log
Level stringField (Elasticsearch) Which field should be used to indicate the priority of the log message.
- Log
Message stringField (Elasticsearch) Which field should be used as the log message.
- Manage
Alerts bool (Prometheus) Manage alerts.
- Max
Concurrent intShard Requests (Elasticsearch) Maximum number of concurrent shard requests.
- Max
Idle intConns (MySQL, PostgreSQL and MSSQL) Maximum number of connections in the idle connection pool (Grafana v5.4+).
- Max
Lines int (Loki) Upper limit for the number of log lines returned by Loki
- Max
Open intConns (MySQL, PostgreSQL and MSSQL) Maximum number of open connections to the database (Grafana v5.4+).
- Org
Slug string (Sentry) Organization slug.
- Organization string
(InfluxDB) An organization is a workspace for a group of users. All dashboards, tasks, buckets, members, etc., belong to an organization.
- Output
Location string (Athena) AWS S3 bucket to store execution outputs. If not specified, the default query result location from the Workgroup configuration will be used.
- Postgres
Version int (PostgreSQL) Postgres version as a number (903/904/905/906/1000) meaning v9.3, v9.4, etc.
- Profile string
(CloudWatch, Athena) The credentials profile name to use when authentication type is set as 'Credentials file'.
- Query
Timeout string (Prometheus) Timeout for queries made to the Prometheus data source in seconds.
- Sigv4Assume
Role stringArn (Elasticsearch and Prometheus) Specifies the ARN of an IAM role to assume.
- Sigv4Auth bool
(Elasticsearch and Prometheus) Enable usage of SigV4.
- Sigv4Auth
Type string (Elasticsearch and Prometheus) The Sigv4 authentication provider to use: 'default', 'credentials' or 'keys' (AMG: 'workspace-iam-role').
- Sigv4External
Id string (Elasticsearch and Prometheus) When assuming a role in another account use this external ID.
- Sigv4Profile string
(Elasticsearch and Prometheus) Credentials profile name, leave blank for default.
- Sigv4Region string
(Elasticsearch and Prometheus) AWS region to use for Sigv4.
- Ssl
Mode string (PostgreSQL) SSLmode. 'disable', 'require', 'verify-ca' or 'verify-full'.
- Subscription
Id string (Azure Monitor) The subscription id
- Tenant
Id string (Azure Monitor) Service account tenant ID.
- Time
Field string (Elasticsearch) Which field that should be used as timestamp.
- Time
Interval string (Prometheus, Elasticsearch, InfluxDB, MySQL, PostgreSQL, and MSSQL) Lowest interval/step value that should be used for this data source. Sometimes called "Scrape Interval" in the Grafana UI.
- Timescaledb bool
(PostgreSQL) Enable usage of TimescaleDB extension.
- Tls
Auth bool (All) Enable TLS authentication using client cert configured in secure json data.
- Tls
Auth boolWith Ca Cert (All) Enable TLS authentication using CA cert.
- Tls
Configuration stringMethod (All) SSL Certificate configuration, either by ‘file-path’ or ‘file-content’.
- Tls
Skip boolVerify (All) Controls whether a client verifies the server’s certificate chain and host name.
- Token
Uri string (Stackdriver) The token URI used, provided in the service account key.
- Tracing
Datasource stringUid (Cloudwatch) The X-Ray datasource uid to associate to this Cloudwatch datasource.
- Tsdb
Resolution int (OpenTSDB) Resolution.
- Tsdb
Version int (OpenTSDB) Version.
- Version string
(InfluxDB) InfluxQL or Flux.
- Workgroup string
(Athena) Workgroup to use.
- Xpack
Enabled bool (Elasticsearch) Enable X-Pack support.
- Alertmanager
Uid string (Prometheus) The name of the Alertmanager datasource to manage alerts via UI
- Assume
Role stringArn (CloudWatch, Athena) The ARN of the role to be assumed by Grafana when using the CloudWatch or Athena data source.
- Auth
Type string (CloudWatch, Athena) The authentication type used to access the data source.
- Authentication
Type string (Stackdriver) The authentication type:
jwt
orgce
.- Catalog string
(Athena) Athena catalog.
- Client
Email string (Stackdriver) Service account email address.
- Client
Id string (Azure Monitor) The service account client id.
- Cloud
Name string (Azure Monitor) The cloud name.
- Conn
Max intLifetime (MySQL, PostgreSQL, and MSSQL) Maximum amount of time in seconds a connection may be reused (Grafana v5.4+).
- Custom
Metrics stringNamespaces (CloudWatch) A comma-separated list of custom namespaces to be queried by the CloudWatch data source.
- Database string
(Athena) Name of the database within the catalog.
- Default
Bucket string (InfluxDB) The default bucket for the data source.
- Default
Project string (Stackdriver) The default project for the data source.
- Default
Region string (CloudWatch, Athena) The default region for the data source.
- Derived
Fields []DataSource Json Data Derived Field (Loki) See https://grafana.com/docs/grafana/latest/datasources/loki/#derived-fields
- Encrypt string
(MSSQL) Connection SSL encryption handling: 'disable', 'false' or 'true'.
- Es
Version string (Elasticsearch) Elasticsearch semantic version (Grafana v8.0+).
- External
Id string (CloudWatch, Athena) If you are assuming a role in another account, that has been created with an external ID, specify the external ID here.
- Github
Url string (Github) Github URL
- Graphite
Version string (Graphite) Graphite version.
- Http
Method string (Prometheus) HTTP method to use for making requests.
- Implementation string
(Alertmanager) Implementation of Alertmanager. Either 'cortex' or 'prometheus'
- Interval string
(Elasticsearch) Index date time format. nil(No Pattern), 'Hourly', 'Daily', 'Weekly', 'Monthly' or 'Yearly'.
- Log
Level stringField (Elasticsearch) Which field should be used to indicate the priority of the log message.
- Log
Message stringField (Elasticsearch) Which field should be used as the log message.
- Manage
Alerts bool (Prometheus) Manage alerts.
- Max
Concurrent intShard Requests (Elasticsearch) Maximum number of concurrent shard requests.
- Max
Idle intConns (MySQL, PostgreSQL and MSSQL) Maximum number of connections in the idle connection pool (Grafana v5.4+).
- Max
Lines int (Loki) Upper limit for the number of log lines returned by Loki
- Max
Open intConns (MySQL, PostgreSQL and MSSQL) Maximum number of open connections to the database (Grafana v5.4+).
- Org
Slug string (Sentry) Organization slug.
- Organization string
(InfluxDB) An organization is a workspace for a group of users. All dashboards, tasks, buckets, members, etc., belong to an organization.
- Output
Location string (Athena) AWS S3 bucket to store execution outputs. If not specified, the default query result location from the Workgroup configuration will be used.
- Postgres
Version int (PostgreSQL) Postgres version as a number (903/904/905/906/1000) meaning v9.3, v9.4, etc.
- Profile string
(CloudWatch, Athena) The credentials profile name to use when authentication type is set as 'Credentials file'.
- Query
Timeout string (Prometheus) Timeout for queries made to the Prometheus data source in seconds.
- Sigv4Assume
Role stringArn (Elasticsearch and Prometheus) Specifies the ARN of an IAM role to assume.
- Sigv4Auth bool
(Elasticsearch and Prometheus) Enable usage of SigV4.
- Sigv4Auth
Type string (Elasticsearch and Prometheus) The Sigv4 authentication provider to use: 'default', 'credentials' or 'keys' (AMG: 'workspace-iam-role').
- Sigv4External
Id string (Elasticsearch and Prometheus) When assuming a role in another account use this external ID.
- Sigv4Profile string
(Elasticsearch and Prometheus) Credentials profile name, leave blank for default.
- Sigv4Region string
(Elasticsearch and Prometheus) AWS region to use for Sigv4.
- Ssl
Mode string (PostgreSQL) SSLmode. 'disable', 'require', 'verify-ca' or 'verify-full'.
- Subscription
Id string (Azure Monitor) The subscription id
- Tenant
Id string (Azure Monitor) Service account tenant ID.
- Time
Field string (Elasticsearch) Which field that should be used as timestamp.
- Time
Interval string (Prometheus, Elasticsearch, InfluxDB, MySQL, PostgreSQL, and MSSQL) Lowest interval/step value that should be used for this data source. Sometimes called "Scrape Interval" in the Grafana UI.
- Timescaledb bool
(PostgreSQL) Enable usage of TimescaleDB extension.
- Tls
Auth bool (All) Enable TLS authentication using client cert configured in secure json data.
- Tls
Auth boolWith Ca Cert (All) Enable TLS authentication using CA cert.
- Tls
Configuration stringMethod (All) SSL Certificate configuration, either by ‘file-path’ or ‘file-content’.
- Tls
Skip boolVerify (All) Controls whether a client verifies the server’s certificate chain and host name.
- Token
Uri string (Stackdriver) The token URI used, provided in the service account key.
- Tracing
Datasource stringUid (Cloudwatch) The X-Ray datasource uid to associate to this Cloudwatch datasource.
- Tsdb
Resolution int (OpenTSDB) Resolution.
- Tsdb
Version int (OpenTSDB) Version.
- Version string
(InfluxDB) InfluxQL or Flux.
- Workgroup string
(Athena) Workgroup to use.
- Xpack
Enabled bool (Elasticsearch) Enable X-Pack support.
- alertmanager
Uid String (Prometheus) The name of the Alertmanager datasource to manage alerts via UI
- assume
Role StringArn (CloudWatch, Athena) The ARN of the role to be assumed by Grafana when using the CloudWatch or Athena data source.
- auth
Type String (CloudWatch, Athena) The authentication type used to access the data source.
- authentication
Type String (Stackdriver) The authentication type:
jwt
orgce
.- catalog String
(Athena) Athena catalog.
- client
Email String (Stackdriver) Service account email address.
- client
Id String (Azure Monitor) The service account client id.
- cloud
Name String (Azure Monitor) The cloud name.
- conn
Max IntegerLifetime (MySQL, PostgreSQL, and MSSQL) Maximum amount of time in seconds a connection may be reused (Grafana v5.4+).
- custom
Metrics StringNamespaces (CloudWatch) A comma-separated list of custom namespaces to be queried by the CloudWatch data source.
- database String
(Athena) Name of the database within the catalog.
- default
Bucket String (InfluxDB) The default bucket for the data source.
- default
Project String (Stackdriver) The default project for the data source.
- default
Region String (CloudWatch, Athena) The default region for the data source.
- derived
Fields List<DataSource Json Data Derived Field> (Loki) See https://grafana.com/docs/grafana/latest/datasources/loki/#derived-fields
- encrypt String
(MSSQL) Connection SSL encryption handling: 'disable', 'false' or 'true'.
- es
Version String (Elasticsearch) Elasticsearch semantic version (Grafana v8.0+).
- external
Id String (CloudWatch, Athena) If you are assuming a role in another account, that has been created with an external ID, specify the external ID here.
- github
Url String (Github) Github URL
- graphite
Version String (Graphite) Graphite version.
- http
Method String (Prometheus) HTTP method to use for making requests.
- implementation String
(Alertmanager) Implementation of Alertmanager. Either 'cortex' or 'prometheus'
- interval String
(Elasticsearch) Index date time format. nil(No Pattern), 'Hourly', 'Daily', 'Weekly', 'Monthly' or 'Yearly'.
- log
Level StringField (Elasticsearch) Which field should be used to indicate the priority of the log message.
- log
Message StringField (Elasticsearch) Which field should be used as the log message.
- manage
Alerts Boolean (Prometheus) Manage alerts.
- max
Concurrent IntegerShard Requests (Elasticsearch) Maximum number of concurrent shard requests.
- max
Idle IntegerConns (MySQL, PostgreSQL and MSSQL) Maximum number of connections in the idle connection pool (Grafana v5.4+).
- max
Lines Integer (Loki) Upper limit for the number of log lines returned by Loki
- max
Open IntegerConns (MySQL, PostgreSQL and MSSQL) Maximum number of open connections to the database (Grafana v5.4+).
- org
Slug String (Sentry) Organization slug.
- organization String
(InfluxDB) An organization is a workspace for a group of users. All dashboards, tasks, buckets, members, etc., belong to an organization.
- output
Location String (Athena) AWS S3 bucket to store execution outputs. If not specified, the default query result location from the Workgroup configuration will be used.
- postgres
Version Integer (PostgreSQL) Postgres version as a number (903/904/905/906/1000) meaning v9.3, v9.4, etc.
- profile String
(CloudWatch, Athena) The credentials profile name to use when authentication type is set as 'Credentials file'.
- query
Timeout String (Prometheus) Timeout for queries made to the Prometheus data source in seconds.
- sigv4Assume
Role StringArn (Elasticsearch and Prometheus) Specifies the ARN of an IAM role to assume.
- sigv4Auth Boolean
(Elasticsearch and Prometheus) Enable usage of SigV4.
- sigv4Auth
Type String (Elasticsearch and Prometheus) The Sigv4 authentication provider to use: 'default', 'credentials' or 'keys' (AMG: 'workspace-iam-role').
- sigv4External
Id String (Elasticsearch and Prometheus) When assuming a role in another account use this external ID.
- sigv4Profile String
(Elasticsearch and Prometheus) Credentials profile name, leave blank for default.
- sigv4Region String
(Elasticsearch and Prometheus) AWS region to use for Sigv4.
- ssl
Mode String (PostgreSQL) SSLmode. 'disable', 'require', 'verify-ca' or 'verify-full'.
- subscription
Id String (Azure Monitor) The subscription id
- tenant
Id String (Azure Monitor) Service account tenant ID.
- time
Field String (Elasticsearch) Which field that should be used as timestamp.
- time
Interval String (Prometheus, Elasticsearch, InfluxDB, MySQL, PostgreSQL, and MSSQL) Lowest interval/step value that should be used for this data source. Sometimes called "Scrape Interval" in the Grafana UI.
- timescaledb Boolean
(PostgreSQL) Enable usage of TimescaleDB extension.
- tls
Auth Boolean (All) Enable TLS authentication using client cert configured in secure json data.
- tls
Auth BooleanWith Ca Cert (All) Enable TLS authentication using CA cert.
- tls
Configuration StringMethod (All) SSL Certificate configuration, either by ‘file-path’ or ‘file-content’.
- tls
Skip BooleanVerify (All) Controls whether a client verifies the server’s certificate chain and host name.
- token
Uri String (Stackdriver) The token URI used, provided in the service account key.
- tracing
Datasource StringUid (Cloudwatch) The X-Ray datasource uid to associate to this Cloudwatch datasource.
- tsdb
Resolution Integer (OpenTSDB) Resolution.
- tsdb
Version Integer (OpenTSDB) Version.
- version String
(InfluxDB) InfluxQL or Flux.
- workgroup String
(Athena) Workgroup to use.
- xpack
Enabled Boolean (Elasticsearch) Enable X-Pack support.
- alertmanager
Uid string (Prometheus) The name of the Alertmanager datasource to manage alerts via UI
- assume
Role stringArn (CloudWatch, Athena) The ARN of the role to be assumed by Grafana when using the CloudWatch or Athena data source.
- auth
Type string (CloudWatch, Athena) The authentication type used to access the data source.
- authentication
Type string (Stackdriver) The authentication type:
jwt
orgce
.- catalog string
(Athena) Athena catalog.
- client
Email string (Stackdriver) Service account email address.
- client
Id string (Azure Monitor) The service account client id.
- cloud
Name string (Azure Monitor) The cloud name.
- conn
Max numberLifetime (MySQL, PostgreSQL, and MSSQL) Maximum amount of time in seconds a connection may be reused (Grafana v5.4+).
- custom
Metrics stringNamespaces (CloudWatch) A comma-separated list of custom namespaces to be queried by the CloudWatch data source.
- database string
(Athena) Name of the database within the catalog.
- default
Bucket string (InfluxDB) The default bucket for the data source.
- default
Project string (Stackdriver) The default project for the data source.
- default
Region string (CloudWatch, Athena) The default region for the data source.
- derived
Fields DataSource Json Data Derived Field[] (Loki) See https://grafana.com/docs/grafana/latest/datasources/loki/#derived-fields
- encrypt string
(MSSQL) Connection SSL encryption handling: 'disable', 'false' or 'true'.
- es
Version string (Elasticsearch) Elasticsearch semantic version (Grafana v8.0+).
- external
Id string (CloudWatch, Athena) If you are assuming a role in another account, that has been created with an external ID, specify the external ID here.
- github
Url string (Github) Github URL
- graphite
Version string (Graphite) Graphite version.
- http
Method string (Prometheus) HTTP method to use for making requests.
- implementation string
(Alertmanager) Implementation of Alertmanager. Either 'cortex' or 'prometheus'
- interval string
(Elasticsearch) Index date time format. nil(No Pattern), 'Hourly', 'Daily', 'Weekly', 'Monthly' or 'Yearly'.
- log
Level stringField (Elasticsearch) Which field should be used to indicate the priority of the log message.
- log
Message stringField (Elasticsearch) Which field should be used as the log message.
- manage
Alerts boolean (Prometheus) Manage alerts.
- max
Concurrent numberShard Requests (Elasticsearch) Maximum number of concurrent shard requests.
- max
Idle numberConns (MySQL, PostgreSQL and MSSQL) Maximum number of connections in the idle connection pool (Grafana v5.4+).
- max
Lines number (Loki) Upper limit for the number of log lines returned by Loki
- max
Open numberConns (MySQL, PostgreSQL and MSSQL) Maximum number of open connections to the database (Grafana v5.4+).
- org
Slug string (Sentry) Organization slug.
- organization string
(InfluxDB) An organization is a workspace for a group of users. All dashboards, tasks, buckets, members, etc., belong to an organization.
- output
Location string (Athena) AWS S3 bucket to store execution outputs. If not specified, the default query result location from the Workgroup configuration will be used.
- postgres
Version number (PostgreSQL) Postgres version as a number (903/904/905/906/1000) meaning v9.3, v9.4, etc.
- profile string
(CloudWatch, Athena) The credentials profile name to use when authentication type is set as 'Credentials file'.
- query
Timeout string (Prometheus) Timeout for queries made to the Prometheus data source in seconds.
- sigv4Assume
Role stringArn (Elasticsearch and Prometheus) Specifies the ARN of an IAM role to assume.
- sigv4Auth boolean
(Elasticsearch and Prometheus) Enable usage of SigV4.
- sigv4Auth
Type string (Elasticsearch and Prometheus) The Sigv4 authentication provider to use: 'default', 'credentials' or 'keys' (AMG: 'workspace-iam-role').
- sigv4External
Id string (Elasticsearch and Prometheus) When assuming a role in another account use this external ID.
- sigv4Profile string
(Elasticsearch and Prometheus) Credentials profile name, leave blank for default.
- sigv4Region string
(Elasticsearch and Prometheus) AWS region to use for Sigv4.
- ssl
Mode string (PostgreSQL) SSLmode. 'disable', 'require', 'verify-ca' or 'verify-full'.
- subscription
Id string (Azure Monitor) The subscription id
- tenant
Id string (Azure Monitor) Service account tenant ID.
- time
Field string (Elasticsearch) Which field that should be used as timestamp.
- time
Interval string (Prometheus, Elasticsearch, InfluxDB, MySQL, PostgreSQL, and MSSQL) Lowest interval/step value that should be used for this data source. Sometimes called "Scrape Interval" in the Grafana UI.
- timescaledb boolean
(PostgreSQL) Enable usage of TimescaleDB extension.
- tls
Auth boolean (All) Enable TLS authentication using client cert configured in secure json data.
- tls
Auth booleanWith Ca Cert (All) Enable TLS authentication using CA cert.
- tls
Configuration stringMethod (All) SSL Certificate configuration, either by ‘file-path’ or ‘file-content’.
- tls
Skip booleanVerify (All) Controls whether a client verifies the server’s certificate chain and host name.
- token
Uri string (Stackdriver) The token URI used, provided in the service account key.
- tracing
Datasource stringUid (Cloudwatch) The X-Ray datasource uid to associate to this Cloudwatch datasource.
- tsdb
Resolution number (OpenTSDB) Resolution.
- tsdb
Version number (OpenTSDB) Version.
- version string
(InfluxDB) InfluxQL or Flux.
- workgroup string
(Athena) Workgroup to use.
- xpack
Enabled boolean (Elasticsearch) Enable X-Pack support.
- alertmanager_
uid str (Prometheus) The name of the Alertmanager datasource to manage alerts via UI
- assume_
role_ strarn (CloudWatch, Athena) The ARN of the role to be assumed by Grafana when using the CloudWatch or Athena data source.
- auth_
type str (CloudWatch, Athena) The authentication type used to access the data source.
- authentication_
type str (Stackdriver) The authentication type:
jwt
orgce
.- catalog str
(Athena) Athena catalog.
- client_
email str (Stackdriver) Service account email address.
- client_
id str (Azure Monitor) The service account client id.
- cloud_
name str (Azure Monitor) The cloud name.
- conn_
max_ intlifetime (MySQL, PostgreSQL, and MSSQL) Maximum amount of time in seconds a connection may be reused (Grafana v5.4+).
- custom_
metrics_ strnamespaces (CloudWatch) A comma-separated list of custom namespaces to be queried by the CloudWatch data source.
- database str
(Athena) Name of the database within the catalog.
- default_
bucket str (InfluxDB) The default bucket for the data source.
- default_
project str (Stackdriver) The default project for the data source.
- default_
region str (CloudWatch, Athena) The default region for the data source.
- derived_
fields Sequence[DataSource Json Data Derived Field] (Loki) See https://grafana.com/docs/grafana/latest/datasources/loki/#derived-fields
- encrypt str
(MSSQL) Connection SSL encryption handling: 'disable', 'false' or 'true'.
- es_
version str (Elasticsearch) Elasticsearch semantic version (Grafana v8.0+).
- external_
id str (CloudWatch, Athena) If you are assuming a role in another account, that has been created with an external ID, specify the external ID here.
- github_
url str (Github) Github URL
- graphite_
version str (Graphite) Graphite version.
- http_
method str (Prometheus) HTTP method to use for making requests.
- implementation str
(Alertmanager) Implementation of Alertmanager. Either 'cortex' or 'prometheus'
- interval str
(Elasticsearch) Index date time format. nil(No Pattern), 'Hourly', 'Daily', 'Weekly', 'Monthly' or 'Yearly'.
- log_
level_ strfield (Elasticsearch) Which field should be used to indicate the priority of the log message.
- log_
message_ strfield (Elasticsearch) Which field should be used as the log message.
- manage_
alerts bool (Prometheus) Manage alerts.
- max_
concurrent_ intshard_ requests (Elasticsearch) Maximum number of concurrent shard requests.
- max_
idle_ intconns (MySQL, PostgreSQL and MSSQL) Maximum number of connections in the idle connection pool (Grafana v5.4+).
- max_
lines int (Loki) Upper limit for the number of log lines returned by Loki
- max_
open_ intconns (MySQL, PostgreSQL and MSSQL) Maximum number of open connections to the database (Grafana v5.4+).
- org_
slug str (Sentry) Organization slug.
- organization str
(InfluxDB) An organization is a workspace for a group of users. All dashboards, tasks, buckets, members, etc., belong to an organization.
- output_
location str (Athena) AWS S3 bucket to store execution outputs. If not specified, the default query result location from the Workgroup configuration will be used.
- postgres_
version int (PostgreSQL) Postgres version as a number (903/904/905/906/1000) meaning v9.3, v9.4, etc.
- profile str
(CloudWatch, Athena) The credentials profile name to use when authentication type is set as 'Credentials file'.
- query_
timeout str (Prometheus) Timeout for queries made to the Prometheus data source in seconds.
- sigv4_
assume_ strrole_ arn (Elasticsearch and Prometheus) Specifies the ARN of an IAM role to assume.
- sigv4_
auth bool (Elasticsearch and Prometheus) Enable usage of SigV4.
- sigv4_
auth_ strtype (Elasticsearch and Prometheus) The Sigv4 authentication provider to use: 'default', 'credentials' or 'keys' (AMG: 'workspace-iam-role').
- sigv4_
external_ strid (Elasticsearch and Prometheus) When assuming a role in another account use this external ID.
- sigv4_
profile str (Elasticsearch and Prometheus) Credentials profile name, leave blank for default.
- sigv4_
region str (Elasticsearch and Prometheus) AWS region to use for Sigv4.
- ssl_
mode str (PostgreSQL) SSLmode. 'disable', 'require', 'verify-ca' or 'verify-full'.
- subscription_
id str (Azure Monitor) The subscription id
- tenant_
id str (Azure Monitor) Service account tenant ID.
- time_
field str (Elasticsearch) Which field that should be used as timestamp.
- time_
interval str (Prometheus, Elasticsearch, InfluxDB, MySQL, PostgreSQL, and MSSQL) Lowest interval/step value that should be used for this data source. Sometimes called "Scrape Interval" in the Grafana UI.
- timescaledb bool
(PostgreSQL) Enable usage of TimescaleDB extension.
- tls_
auth bool (All) Enable TLS authentication using client cert configured in secure json data.
- tls_
auth_ boolwith_ ca_ cert (All) Enable TLS authentication using CA cert.
- tls_
configuration_ strmethod (All) SSL Certificate configuration, either by ‘file-path’ or ‘file-content’.
- tls_
skip_ boolverify (All) Controls whether a client verifies the server’s certificate chain and host name.
- token_
uri str (Stackdriver) The token URI used, provided in the service account key.
- tracing_
datasource_ struid (Cloudwatch) The X-Ray datasource uid to associate to this Cloudwatch datasource.
- tsdb_
resolution int (OpenTSDB) Resolution.
- tsdb_
version int (OpenTSDB) Version.
- version str
(InfluxDB) InfluxQL or Flux.
- workgroup str
(Athena) Workgroup to use.
- xpack_
enabled bool (Elasticsearch) Enable X-Pack support.
- alertmanager
Uid String (Prometheus) The name of the Alertmanager datasource to manage alerts via UI
- assume
Role StringArn (CloudWatch, Athena) The ARN of the role to be assumed by Grafana when using the CloudWatch or Athena data source.
- auth
Type String (CloudWatch, Athena) The authentication type used to access the data source.
- authentication
Type String (Stackdriver) The authentication type:
jwt
orgce
.- catalog String
(Athena) Athena catalog.
- client
Email String (Stackdriver) Service account email address.
- client
Id String (Azure Monitor) The service account client id.
- cloud
Name String (Azure Monitor) The cloud name.
- conn
Max NumberLifetime (MySQL, PostgreSQL, and MSSQL) Maximum amount of time in seconds a connection may be reused (Grafana v5.4+).
- custom
Metrics StringNamespaces (CloudWatch) A comma-separated list of custom namespaces to be queried by the CloudWatch data source.
- database String
(Athena) Name of the database within the catalog.
- default
Bucket String (InfluxDB) The default bucket for the data source.
- default
Project String (Stackdriver) The default project for the data source.
- default
Region String (CloudWatch, Athena) The default region for the data source.
- derived
Fields List<Property Map> (Loki) See https://grafana.com/docs/grafana/latest/datasources/loki/#derived-fields
- encrypt String
(MSSQL) Connection SSL encryption handling: 'disable', 'false' or 'true'.
- es
Version String (Elasticsearch) Elasticsearch semantic version (Grafana v8.0+).
- external
Id String (CloudWatch, Athena) If you are assuming a role in another account, that has been created with an external ID, specify the external ID here.
- github
Url String (Github) Github URL
- graphite
Version String (Graphite) Graphite version.
- http
Method String (Prometheus) HTTP method to use for making requests.
- implementation String
(Alertmanager) Implementation of Alertmanager. Either 'cortex' or 'prometheus'
- interval String
(Elasticsearch) Index date time format. nil(No Pattern), 'Hourly', 'Daily', 'Weekly', 'Monthly' or 'Yearly'.
- log
Level StringField (Elasticsearch) Which field should be used to indicate the priority of the log message.
- log
Message StringField (Elasticsearch) Which field should be used as the log message.
- manage
Alerts Boolean (Prometheus) Manage alerts.
- max
Concurrent NumberShard Requests (Elasticsearch) Maximum number of concurrent shard requests.
- max
Idle NumberConns (MySQL, PostgreSQL and MSSQL) Maximum number of connections in the idle connection pool (Grafana v5.4+).
- max
Lines Number (Loki) Upper limit for the number of log lines returned by Loki
- max
Open NumberConns (MySQL, PostgreSQL and MSSQL) Maximum number of open connections to the database (Grafana v5.4+).
- org
Slug String (Sentry) Organization slug.
- organization String
(InfluxDB) An organization is a workspace for a group of users. All dashboards, tasks, buckets, members, etc., belong to an organization.
- output
Location String (Athena) AWS S3 bucket to store execution outputs. If not specified, the default query result location from the Workgroup configuration will be used.
- postgres
Version Number (PostgreSQL) Postgres version as a number (903/904/905/906/1000) meaning v9.3, v9.4, etc.
- profile String
(CloudWatch, Athena) The credentials profile name to use when authentication type is set as 'Credentials file'.
- query
Timeout String (Prometheus) Timeout for queries made to the Prometheus data source in seconds.
- sigv4Assume
Role StringArn (Elasticsearch and Prometheus) Specifies the ARN of an IAM role to assume.
- sigv4Auth Boolean
(Elasticsearch and Prometheus) Enable usage of SigV4.
- sigv4Auth
Type String (Elasticsearch and Prometheus) The Sigv4 authentication provider to use: 'default', 'credentials' or 'keys' (AMG: 'workspace-iam-role').
- sigv4External
Id String (Elasticsearch and Prometheus) When assuming a role in another account use this external ID.
- sigv4Profile String
(Elasticsearch and Prometheus) Credentials profile name, leave blank for default.
- sigv4Region String
(Elasticsearch and Prometheus) AWS region to use for Sigv4.
- ssl
Mode String (PostgreSQL) SSLmode. 'disable', 'require', 'verify-ca' or 'verify-full'.
- subscription
Id String (Azure Monitor) The subscription id
- tenant
Id String (Azure Monitor) Service account tenant ID.
- time
Field String (Elasticsearch) Which field that should be used as timestamp.
- time
Interval String (Prometheus, Elasticsearch, InfluxDB, MySQL, PostgreSQL, and MSSQL) Lowest interval/step value that should be used for this data source. Sometimes called "Scrape Interval" in the Grafana UI.
- timescaledb Boolean
(PostgreSQL) Enable usage of TimescaleDB extension.
- tls
Auth Boolean (All) Enable TLS authentication using client cert configured in secure json data.
- tls
Auth BooleanWith Ca Cert (All) Enable TLS authentication using CA cert.
- tls
Configuration StringMethod (All) SSL Certificate configuration, either by ‘file-path’ or ‘file-content’.
- tls
Skip BooleanVerify (All) Controls whether a client verifies the server’s certificate chain and host name.
- token
Uri String (Stackdriver) The token URI used, provided in the service account key.
- tracing
Datasource StringUid (Cloudwatch) The X-Ray datasource uid to associate to this Cloudwatch datasource.
- tsdb
Resolution Number (OpenTSDB) Resolution.
- tsdb
Version Number (OpenTSDB) Version.
- version String
(InfluxDB) InfluxQL or Flux.
- workgroup String
(Athena) Workgroup to use.
- xpack
Enabled Boolean (Elasticsearch) Enable X-Pack support.
DataSourceJsonDataDerivedField
- Datasource
Uid string - Matcher
Regex string - Name string
A unique name for the data source.
- Url string
The URL for the data source. The type of URL required varies depending on the chosen data source type.
- Datasource
Uid string - Matcher
Regex string - Name string
A unique name for the data source.
- Url string
The URL for the data source. The type of URL required varies depending on the chosen data source type.
- datasource
Uid String - matcher
Regex String - name String
A unique name for the data source.
- url String
The URL for the data source. The type of URL required varies depending on the chosen data source type.
- datasource
Uid string - matcher
Regex string - name string
A unique name for the data source.
- url string
The URL for the data source. The type of URL required varies depending on the chosen data source type.
- datasource_
uid str - matcher_
regex str - name str
A unique name for the data source.
- url str
The URL for the data source. The type of URL required varies depending on the chosen data source type.
- datasource
Uid String - matcher
Regex String - name String
A unique name for the data source.
- url String
The URL for the data source. The type of URL required varies depending on the chosen data source type.
DataSourceSecureJsonData
- Access
Key string (CloudWatch, Athena) The access key used to access the data source.
- Access
Token string (Github) The access token used to access the data source.
- Auth
Token string (Sentry) Authorization token.
- Basic
Auth stringPassword (All) Password to use for basic authentication.
- Client
Secret string (Azure Monitor) Client secret for authentication.
- Password string
(All) Password to use for authentication.
- Private
Key string (Stackdriver) The service account key
private_key
to use to access the data source.- Secret
Key string (CloudWatch, Athena) The secret key to use to access the data source.
- Sigv4Access
Key string (Elasticsearch and Prometheus) SigV4 access key. Required when using 'keys' auth provider.
- Sigv4Secret
Key string (Elasticsearch and Prometheus) SigV4 secret key. Required when using 'keys' auth provider.
- Tls
Ca stringCert (All) CA cert for out going requests.
- Tls
Client stringCert (All) TLS Client cert for outgoing requests.
- Tls
Client stringKey (All) TLS Client key for outgoing requests.
- Access
Key string (CloudWatch, Athena) The access key used to access the data source.
- Access
Token string (Github) The access token used to access the data source.
- Auth
Token string (Sentry) Authorization token.
- Basic
Auth stringPassword (All) Password to use for basic authentication.
- Client
Secret string (Azure Monitor) Client secret for authentication.
- Password string
(All) Password to use for authentication.
- Private
Key string (Stackdriver) The service account key
private_key
to use to access the data source.- Secret
Key string (CloudWatch, Athena) The secret key to use to access the data source.
- Sigv4Access
Key string (Elasticsearch and Prometheus) SigV4 access key. Required when using 'keys' auth provider.
- Sigv4Secret
Key string (Elasticsearch and Prometheus) SigV4 secret key. Required when using 'keys' auth provider.
- Tls
Ca stringCert (All) CA cert for out going requests.
- Tls
Client stringCert (All) TLS Client cert for outgoing requests.
- Tls
Client stringKey (All) TLS Client key for outgoing requests.
- access
Key String (CloudWatch, Athena) The access key used to access the data source.
- access
Token String (Github) The access token used to access the data source.
- auth
Token String (Sentry) Authorization token.
- basic
Auth StringPassword (All) Password to use for basic authentication.
- client
Secret String (Azure Monitor) Client secret for authentication.
- password String
(All) Password to use for authentication.
- private
Key String (Stackdriver) The service account key
private_key
to use to access the data source.- secret
Key String (CloudWatch, Athena) The secret key to use to access the data source.
- sigv4Access
Key String (Elasticsearch and Prometheus) SigV4 access key. Required when using 'keys' auth provider.
- sigv4Secret
Key String (Elasticsearch and Prometheus) SigV4 secret key. Required when using 'keys' auth provider.
- tls
Ca StringCert (All) CA cert for out going requests.
- tls
Client StringCert (All) TLS Client cert for outgoing requests.
- tls
Client StringKey (All) TLS Client key for outgoing requests.
- access
Key string (CloudWatch, Athena) The access key used to access the data source.
- access
Token string (Github) The access token used to access the data source.
- auth
Token string (Sentry) Authorization token.
- basic
Auth stringPassword (All) Password to use for basic authentication.
- client
Secret string (Azure Monitor) Client secret for authentication.
- password string
(All) Password to use for authentication.
- private
Key string (Stackdriver) The service account key
private_key
to use to access the data source.- secret
Key string (CloudWatch, Athena) The secret key to use to access the data source.
- sigv4Access
Key string (Elasticsearch and Prometheus) SigV4 access key. Required when using 'keys' auth provider.
- sigv4Secret
Key string (Elasticsearch and Prometheus) SigV4 secret key. Required when using 'keys' auth provider.
- tls
Ca stringCert (All) CA cert for out going requests.
- tls
Client stringCert (All) TLS Client cert for outgoing requests.
- tls
Client stringKey (All) TLS Client key for outgoing requests.
- access_
key str (CloudWatch, Athena) The access key used to access the data source.
- access_
token str (Github) The access token used to access the data source.
- auth_
token str (Sentry) Authorization token.
- basic_
auth_ strpassword (All) Password to use for basic authentication.
- client_
secret str (Azure Monitor) Client secret for authentication.
- password str
(All) Password to use for authentication.
- private_
key str (Stackdriver) The service account key
private_key
to use to access the data source.- secret_
key str (CloudWatch, Athena) The secret key to use to access the data source.
- sigv4_
access_ strkey (Elasticsearch and Prometheus) SigV4 access key. Required when using 'keys' auth provider.
- sigv4_
secret_ strkey (Elasticsearch and Prometheus) SigV4 secret key. Required when using 'keys' auth provider.
- tls_
ca_ strcert (All) CA cert for out going requests.
- tls_
client_ strcert (All) TLS Client cert for outgoing requests.
- tls_
client_ strkey (All) TLS Client key for outgoing requests.
- access
Key String (CloudWatch, Athena) The access key used to access the data source.
- access
Token String (Github) The access token used to access the data source.
- auth
Token String (Sentry) Authorization token.
- basic
Auth StringPassword (All) Password to use for basic authentication.
- client
Secret String (Azure Monitor) Client secret for authentication.
- password String
(All) Password to use for authentication.
- private
Key String (Stackdriver) The service account key
private_key
to use to access the data source.- secret
Key String (CloudWatch, Athena) The secret key to use to access the data source.
- sigv4Access
Key String (Elasticsearch and Prometheus) SigV4 access key. Required when using 'keys' auth provider.
- sigv4Secret
Key String (Elasticsearch and Prometheus) SigV4 secret key. Required when using 'keys' auth provider.
- tls
Ca StringCert (All) CA cert for out going requests.
- tls
Client StringCert (All) TLS Client cert for outgoing requests.
- tls
Client StringKey (All) TLS Client key for outgoing requests.
Import
$ pulumi import grafana:index/dataSource:DataSource by_integer_id {{datasource id}}
$ pulumi import grafana:index/dataSource:DataSource by_uid {{datasource uid}}
Package Details
- Repository
- grafana lbrlabs/pulumi-grafana
- License
- Apache-2.0
- Notes
This Pulumi package is based on the
grafana
Terraform Provider.