grafana.assert.LogConfig
Manages Asserts Log Configuration through Grafana API.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as grafana from "@pulumiverse/grafana";
const production = new grafana.assert.LogConfig("production", {
name: "production",
priority: 1000,
defaultConfig: false,
dataSourceUid: "grafanacloud-logs",
errorLabel: "error",
matches: [
{
property: "asserts_entity_type",
op: "EQUALS",
values: ["Service"],
},
{
property: "environment",
op: "EQUALS",
values: [
"production",
"staging",
],
},
{
property: "site",
op: "EQUALS",
values: [
"us-east-1",
"us-west-2",
],
},
],
entityPropertyToLogLabelMapping: {
otel_namespace: "service_namespace",
otel_service: "service_name",
environment: "env",
site: "region",
},
filterBySpanId: true,
filterByTraceId: true,
});
const development = new grafana.assert.LogConfig("development", {
name: "development",
priority: 2000,
defaultConfig: true,
dataSourceUid: "elasticsearch-dev",
errorLabel: "error",
matches: [
{
property: "asserts_entity_type",
op: "EQUALS",
values: ["Service"],
},
{
property: "environment",
op: "EQUALS",
values: [
"development",
"testing",
],
},
{
property: "site",
op: "EQUALS",
values: ["us-east-1"],
},
{
property: "service",
op: "EQUALS",
values: ["api"],
},
],
entityPropertyToLogLabelMapping: {
otel_namespace: "service_namespace",
otel_service: "service_name",
environment: "env",
site: "region",
service: "app",
},
filterBySpanId: true,
filterByTraceId: true,
});
const minimal = new grafana.assert.LogConfig("minimal", {
name: "minimal",
priority: 3000,
defaultConfig: false,
dataSourceUid: "loki-minimal",
matches: [{
property: "asserts_entity_type",
op: "IS_NOT_NULL",
values: [],
}],
});
import pulumi
import pulumiverse_grafana as grafana
production = grafana.assert_.LogConfig("production",
name="production",
priority=1000,
default_config=False,
data_source_uid="grafanacloud-logs",
error_label="error",
matches=[
{
"property": "asserts_entity_type",
"op": "EQUALS",
"values": ["Service"],
},
{
"property": "environment",
"op": "EQUALS",
"values": [
"production",
"staging",
],
},
{
"property": "site",
"op": "EQUALS",
"values": [
"us-east-1",
"us-west-2",
],
},
],
entity_property_to_log_label_mapping={
"otel_namespace": "service_namespace",
"otel_service": "service_name",
"environment": "env",
"site": "region",
},
filter_by_span_id=True,
filter_by_trace_id=True)
development = grafana.assert_.LogConfig("development",
name="development",
priority=2000,
default_config=True,
data_source_uid="elasticsearch-dev",
error_label="error",
matches=[
{
"property": "asserts_entity_type",
"op": "EQUALS",
"values": ["Service"],
},
{
"property": "environment",
"op": "EQUALS",
"values": [
"development",
"testing",
],
},
{
"property": "site",
"op": "EQUALS",
"values": ["us-east-1"],
},
{
"property": "service",
"op": "EQUALS",
"values": ["api"],
},
],
entity_property_to_log_label_mapping={
"otel_namespace": "service_namespace",
"otel_service": "service_name",
"environment": "env",
"site": "region",
"service": "app",
},
filter_by_span_id=True,
filter_by_trace_id=True)
minimal = grafana.assert_.LogConfig("minimal",
name="minimal",
priority=3000,
default_config=False,
data_source_uid="loki-minimal",
matches=[{
"property": "asserts_entity_type",
"op": "IS_NOT_NULL",
"values": [],
}])
package main
import (
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/pulumiverse/pulumi-grafana/sdk/v2/go/grafana/assert"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := assert.NewLogConfig(ctx, "production", &assert.LogConfigArgs{
Name: pulumi.String("production"),
Priority: pulumi.Int(1000),
DefaultConfig: pulumi.Bool(false),
DataSourceUid: pulumi.String("grafanacloud-logs"),
ErrorLabel: pulumi.String("error"),
Matches: assert.LogConfigMatchArray{
&assert.LogConfigMatchArgs{
Property: pulumi.String("asserts_entity_type"),
Op: pulumi.String("EQUALS"),
Values: pulumi.StringArray{
pulumi.String("Service"),
},
},
&assert.LogConfigMatchArgs{
Property: pulumi.String("environment"),
Op: pulumi.String("EQUALS"),
Values: pulumi.StringArray{
pulumi.String("production"),
pulumi.String("staging"),
},
},
&assert.LogConfigMatchArgs{
Property: pulumi.String("site"),
Op: pulumi.String("EQUALS"),
Values: pulumi.StringArray{
pulumi.String("us-east-1"),
pulumi.String("us-west-2"),
},
},
},
EntityPropertyToLogLabelMapping: pulumi.StringMap{
"otel_namespace": pulumi.String("service_namespace"),
"otel_service": pulumi.String("service_name"),
"environment": pulumi.String("env"),
"site": pulumi.String("region"),
},
FilterBySpanId: pulumi.Bool(true),
FilterByTraceId: pulumi.Bool(true),
})
if err != nil {
return err
}
_, err = assert.NewLogConfig(ctx, "development", &assert.LogConfigArgs{
Name: pulumi.String("development"),
Priority: pulumi.Int(2000),
DefaultConfig: pulumi.Bool(true),
DataSourceUid: pulumi.String("elasticsearch-dev"),
ErrorLabel: pulumi.String("error"),
Matches: assert.LogConfigMatchArray{
&assert.LogConfigMatchArgs{
Property: pulumi.String("asserts_entity_type"),
Op: pulumi.String("EQUALS"),
Values: pulumi.StringArray{
pulumi.String("Service"),
},
},
&assert.LogConfigMatchArgs{
Property: pulumi.String("environment"),
Op: pulumi.String("EQUALS"),
Values: pulumi.StringArray{
pulumi.String("development"),
pulumi.String("testing"),
},
},
&assert.LogConfigMatchArgs{
Property: pulumi.String("site"),
Op: pulumi.String("EQUALS"),
Values: pulumi.StringArray{
pulumi.String("us-east-1"),
},
},
&assert.LogConfigMatchArgs{
Property: pulumi.String("service"),
Op: pulumi.String("EQUALS"),
Values: pulumi.StringArray{
pulumi.String("api"),
},
},
},
EntityPropertyToLogLabelMapping: pulumi.StringMap{
"otel_namespace": pulumi.String("service_namespace"),
"otel_service": pulumi.String("service_name"),
"environment": pulumi.String("env"),
"site": pulumi.String("region"),
"service": pulumi.String("app"),
},
FilterBySpanId: pulumi.Bool(true),
FilterByTraceId: pulumi.Bool(true),
})
if err != nil {
return err
}
_, err = assert.NewLogConfig(ctx, "minimal", &assert.LogConfigArgs{
Name: pulumi.String("minimal"),
Priority: pulumi.Int(3000),
DefaultConfig: pulumi.Bool(false),
DataSourceUid: pulumi.String("loki-minimal"),
Matches: assert.LogConfigMatchArray{
&assert.LogConfigMatchArgs{
Property: pulumi.String("asserts_entity_type"),
Op: pulumi.String("IS_NOT_NULL"),
Values: pulumi.StringArray{},
},
},
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Grafana = Pulumiverse.Grafana;
return await Deployment.RunAsync(() =>
{
var production = new Grafana.Assert.LogConfig("production", new()
{
Name = "production",
Priority = 1000,
DefaultConfig = false,
DataSourceUid = "grafanacloud-logs",
ErrorLabel = "error",
Matches = new[]
{
new Grafana.Assert.Inputs.LogConfigMatchArgs
{
Property = "asserts_entity_type",
Op = "EQUALS",
Values = new[]
{
"Service",
},
},
new Grafana.Assert.Inputs.LogConfigMatchArgs
{
Property = "environment",
Op = "EQUALS",
Values = new[]
{
"production",
"staging",
},
},
new Grafana.Assert.Inputs.LogConfigMatchArgs
{
Property = "site",
Op = "EQUALS",
Values = new[]
{
"us-east-1",
"us-west-2",
},
},
},
EntityPropertyToLogLabelMapping =
{
{ "otel_namespace", "service_namespace" },
{ "otel_service", "service_name" },
{ "environment", "env" },
{ "site", "region" },
},
FilterBySpanId = true,
FilterByTraceId = true,
});
var development = new Grafana.Assert.LogConfig("development", new()
{
Name = "development",
Priority = 2000,
DefaultConfig = true,
DataSourceUid = "elasticsearch-dev",
ErrorLabel = "error",
Matches = new[]
{
new Grafana.Assert.Inputs.LogConfigMatchArgs
{
Property = "asserts_entity_type",
Op = "EQUALS",
Values = new[]
{
"Service",
},
},
new Grafana.Assert.Inputs.LogConfigMatchArgs
{
Property = "environment",
Op = "EQUALS",
Values = new[]
{
"development",
"testing",
},
},
new Grafana.Assert.Inputs.LogConfigMatchArgs
{
Property = "site",
Op = "EQUALS",
Values = new[]
{
"us-east-1",
},
},
new Grafana.Assert.Inputs.LogConfigMatchArgs
{
Property = "service",
Op = "EQUALS",
Values = new[]
{
"api",
},
},
},
EntityPropertyToLogLabelMapping =
{
{ "otel_namespace", "service_namespace" },
{ "otel_service", "service_name" },
{ "environment", "env" },
{ "site", "region" },
{ "service", "app" },
},
FilterBySpanId = true,
FilterByTraceId = true,
});
var minimal = new Grafana.Assert.LogConfig("minimal", new()
{
Name = "minimal",
Priority = 3000,
DefaultConfig = false,
DataSourceUid = "loki-minimal",
Matches = new[]
{
new Grafana.Assert.Inputs.LogConfigMatchArgs
{
Property = "asserts_entity_type",
Op = "IS_NOT_NULL",
Values = new() { },
},
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.grafana.assert.LogConfig;
import com.pulumi.grafana.assert.LogConfigArgs;
import com.pulumi.grafana.assert.inputs.LogConfigMatchArgs;
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 production = new LogConfig("production", LogConfigArgs.builder()
.name("production")
.priority(1000)
.defaultConfig(false)
.dataSourceUid("grafanacloud-logs")
.errorLabel("error")
.matches(
LogConfigMatchArgs.builder()
.property("asserts_entity_type")
.op("EQUALS")
.values("Service")
.build(),
LogConfigMatchArgs.builder()
.property("environment")
.op("EQUALS")
.values(
"production",
"staging")
.build(),
LogConfigMatchArgs.builder()
.property("site")
.op("EQUALS")
.values(
"us-east-1",
"us-west-2")
.build())
.entityPropertyToLogLabelMapping(Map.ofEntries(
Map.entry("otel_namespace", "service_namespace"),
Map.entry("otel_service", "service_name"),
Map.entry("environment", "env"),
Map.entry("site", "region")
))
.filterBySpanId(true)
.filterByTraceId(true)
.build());
var development = new LogConfig("development", LogConfigArgs.builder()
.name("development")
.priority(2000)
.defaultConfig(true)
.dataSourceUid("elasticsearch-dev")
.errorLabel("error")
.matches(
LogConfigMatchArgs.builder()
.property("asserts_entity_type")
.op("EQUALS")
.values("Service")
.build(),
LogConfigMatchArgs.builder()
.property("environment")
.op("EQUALS")
.values(
"development",
"testing")
.build(),
LogConfigMatchArgs.builder()
.property("site")
.op("EQUALS")
.values("us-east-1")
.build(),
LogConfigMatchArgs.builder()
.property("service")
.op("EQUALS")
.values("api")
.build())
.entityPropertyToLogLabelMapping(Map.ofEntries(
Map.entry("otel_namespace", "service_namespace"),
Map.entry("otel_service", "service_name"),
Map.entry("environment", "env"),
Map.entry("site", "region"),
Map.entry("service", "app")
))
.filterBySpanId(true)
.filterByTraceId(true)
.build());
var minimal = new LogConfig("minimal", LogConfigArgs.builder()
.name("minimal")
.priority(3000)
.defaultConfig(false)
.dataSourceUid("loki-minimal")
.matches(LogConfigMatchArgs.builder()
.property("asserts_entity_type")
.op("IS_NOT_NULL")
.values()
.build())
.build());
}
}
resources:
production:
type: grafana:assert:LogConfig
properties:
name: production
priority: 1000
defaultConfig: false
dataSourceUid: grafanacloud-logs
errorLabel: error
matches:
- property: asserts_entity_type
op: EQUALS
values:
- Service
- property: environment
op: EQUALS
values:
- production
- staging
- property: site
op: EQUALS
values:
- us-east-1
- us-west-2
entityPropertyToLogLabelMapping:
otel_namespace: service_namespace
otel_service: service_name
environment: env
site: region
filterBySpanId: true
filterByTraceId: true
development:
type: grafana:assert:LogConfig
properties:
name: development
priority: 2000
defaultConfig: true
dataSourceUid: elasticsearch-dev
errorLabel: error
matches:
- property: asserts_entity_type
op: EQUALS
values:
- Service
- property: environment
op: EQUALS
values:
- development
- testing
- property: site
op: EQUALS
values:
- us-east-1
- property: service
op: EQUALS
values:
- api
entityPropertyToLogLabelMapping:
otel_namespace: service_namespace
otel_service: service_name
environment: env
site: region
service: app
filterBySpanId: true
filterByTraceId: true
minimal:
type: grafana:assert:LogConfig
properties:
name: minimal
priority: 3000
defaultConfig: false
dataSourceUid: loki-minimal
matches:
- property: asserts_entity_type
op: IS_NOT_NULL
values: []
Create LogConfig Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new LogConfig(name: string, args: LogConfigArgs, opts?: CustomResourceOptions);@overload
def LogConfig(resource_name: str,
args: LogConfigArgs,
opts: Optional[ResourceOptions] = None)
@overload
def LogConfig(resource_name: str,
opts: Optional[ResourceOptions] = None,
data_source_uid: Optional[str] = None,
default_config: Optional[bool] = None,
priority: Optional[int] = None,
entity_property_to_log_label_mapping: Optional[Mapping[str, str]] = None,
error_label: Optional[str] = None,
filter_by_span_id: Optional[bool] = None,
filter_by_trace_id: Optional[bool] = None,
matches: Optional[Sequence[LogConfigMatchArgs]] = None,
name: Optional[str] = None)func NewLogConfig(ctx *Context, name string, args LogConfigArgs, opts ...ResourceOption) (*LogConfig, error)public LogConfig(string name, LogConfigArgs args, CustomResourceOptions? opts = null)
public LogConfig(String name, LogConfigArgs args)
public LogConfig(String name, LogConfigArgs args, CustomResourceOptions options)
type: grafana:assert:LogConfig
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args LogConfigArgs
- 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 LogConfigArgs
- 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 LogConfigArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args LogConfigArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args LogConfigArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var logConfigResource = new Grafana.Assert.LogConfig("logConfigResource", new()
{
DataSourceUid = "string",
DefaultConfig = false,
Priority = 0,
EntityPropertyToLogLabelMapping =
{
{ "string", "string" },
},
ErrorLabel = "string",
FilterBySpanId = false,
FilterByTraceId = false,
Matches = new[]
{
new Grafana.Assert.Inputs.LogConfigMatchArgs
{
Op = "string",
Property = "string",
Values = new[]
{
"string",
},
},
},
Name = "string",
});
example, err := assert.NewLogConfig(ctx, "logConfigResource", &assert.LogConfigArgs{
DataSourceUid: pulumi.String("string"),
DefaultConfig: pulumi.Bool(false),
Priority: pulumi.Int(0),
EntityPropertyToLogLabelMapping: pulumi.StringMap{
"string": pulumi.String("string"),
},
ErrorLabel: pulumi.String("string"),
FilterBySpanId: pulumi.Bool(false),
FilterByTraceId: pulumi.Bool(false),
Matches: assert.LogConfigMatchArray{
&assert.LogConfigMatchArgs{
Op: pulumi.String("string"),
Property: pulumi.String("string"),
Values: pulumi.StringArray{
pulumi.String("string"),
},
},
},
Name: pulumi.String("string"),
})
var logConfigResource = new LogConfig("logConfigResource", LogConfigArgs.builder()
.dataSourceUid("string")
.defaultConfig(false)
.priority(0)
.entityPropertyToLogLabelMapping(Map.of("string", "string"))
.errorLabel("string")
.filterBySpanId(false)
.filterByTraceId(false)
.matches(LogConfigMatchArgs.builder()
.op("string")
.property("string")
.values("string")
.build())
.name("string")
.build());
log_config_resource = grafana.assert_.LogConfig("logConfigResource",
data_source_uid="string",
default_config=False,
priority=0,
entity_property_to_log_label_mapping={
"string": "string",
},
error_label="string",
filter_by_span_id=False,
filter_by_trace_id=False,
matches=[{
"op": "string",
"property": "string",
"values": ["string"],
}],
name="string")
const logConfigResource = new grafana.assert.LogConfig("logConfigResource", {
dataSourceUid: "string",
defaultConfig: false,
priority: 0,
entityPropertyToLogLabelMapping: {
string: "string",
},
errorLabel: "string",
filterBySpanId: false,
filterByTraceId: false,
matches: [{
op: "string",
property: "string",
values: ["string"],
}],
name: "string",
});
type: grafana:assert:LogConfig
properties:
dataSourceUid: string
defaultConfig: false
entityPropertyToLogLabelMapping:
string: string
errorLabel: string
filterBySpanId: false
filterByTraceId: false
matches:
- op: string
property: string
values:
- string
name: string
priority: 0
LogConfig Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The LogConfig resource accepts the following input properties:
- Data
Source stringUid - DataSource to be queried (e.g., a Loki instance).
- Default
Config bool - Is it the default config, therefore undeletable?
- Priority int
- Priority of the log configuration. A lower number means a higher priority.
- Entity
Property Dictionary<string, string>To Log Label Mapping - Mapping of entity properties to log labels.
- Error
Label string - Error label to filter logs.
- Filter
By boolSpan Id - Filter logs by span ID.
- Filter
By boolTrace Id - Filter logs by trace ID.
- Matches
List<Pulumiverse.
Grafana. Assert. Inputs. Log Config Match> - List of match rules for entity properties.
- Name string
- The name of the log configuration.
- Data
Source stringUid - DataSource to be queried (e.g., a Loki instance).
- Default
Config bool - Is it the default config, therefore undeletable?
- Priority int
- Priority of the log configuration. A lower number means a higher priority.
- Entity
Property map[string]stringTo Log Label Mapping - Mapping of entity properties to log labels.
- Error
Label string - Error label to filter logs.
- Filter
By boolSpan Id - Filter logs by span ID.
- Filter
By boolTrace Id - Filter logs by trace ID.
- Matches
[]Log
Config Match Args - List of match rules for entity properties.
- Name string
- The name of the log configuration.
- data
Source StringUid - DataSource to be queried (e.g., a Loki instance).
- default
Config Boolean - Is it the default config, therefore undeletable?
- priority Integer
- Priority of the log configuration. A lower number means a higher priority.
- entity
Property Map<String,String>To Log Label Mapping - Mapping of entity properties to log labels.
- error
Label String - Error label to filter logs.
- filter
By BooleanSpan Id - Filter logs by span ID.
- filter
By BooleanTrace Id - Filter logs by trace ID.
- matches
List<Log
Config Match> - List of match rules for entity properties.
- name String
- The name of the log configuration.
- data
Source stringUid - DataSource to be queried (e.g., a Loki instance).
- default
Config boolean - Is it the default config, therefore undeletable?
- priority number
- Priority of the log configuration. A lower number means a higher priority.
- entity
Property {[key: string]: string}To Log Label Mapping - Mapping of entity properties to log labels.
- error
Label string - Error label to filter logs.
- filter
By booleanSpan Id - Filter logs by span ID.
- filter
By booleanTrace Id - Filter logs by trace ID.
- matches
Log
Config Match[] - List of match rules for entity properties.
- name string
- The name of the log configuration.
- data_
source_ struid - DataSource to be queried (e.g., a Loki instance).
- default_
config bool - Is it the default config, therefore undeletable?
- priority int
- Priority of the log configuration. A lower number means a higher priority.
- entity_
property_ Mapping[str, str]to_ log_ label_ mapping - Mapping of entity properties to log labels.
- error_
label str - Error label to filter logs.
- filter_
by_ boolspan_ id - Filter logs by span ID.
- filter_
by_ booltrace_ id - Filter logs by trace ID.
- matches
Sequence[Log
Config Match Args] - List of match rules for entity properties.
- name str
- The name of the log configuration.
- data
Source StringUid - DataSource to be queried (e.g., a Loki instance).
- default
Config Boolean - Is it the default config, therefore undeletable?
- priority Number
- Priority of the log configuration. A lower number means a higher priority.
- entity
Property Map<String>To Log Label Mapping - Mapping of entity properties to log labels.
- error
Label String - Error label to filter logs.
- filter
By BooleanSpan Id - Filter logs by span ID.
- filter
By BooleanTrace Id - Filter logs by trace ID.
- matches List<Property Map>
- List of match rules for entity properties.
- name String
- The name of the log configuration.
Outputs
All input properties are implicitly available as output properties. Additionally, the LogConfig 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 LogConfig Resource
Get an existing LogConfig 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?: LogConfigState, opts?: CustomResourceOptions): LogConfig@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
data_source_uid: Optional[str] = None,
default_config: Optional[bool] = None,
entity_property_to_log_label_mapping: Optional[Mapping[str, str]] = None,
error_label: Optional[str] = None,
filter_by_span_id: Optional[bool] = None,
filter_by_trace_id: Optional[bool] = None,
matches: Optional[Sequence[LogConfigMatchArgs]] = None,
name: Optional[str] = None,
priority: Optional[int] = None) -> LogConfigfunc GetLogConfig(ctx *Context, name string, id IDInput, state *LogConfigState, opts ...ResourceOption) (*LogConfig, error)public static LogConfig Get(string name, Input<string> id, LogConfigState? state, CustomResourceOptions? opts = null)public static LogConfig get(String name, Output<String> id, LogConfigState state, CustomResourceOptions options)resources: _: type: grafana:assert:LogConfig get: id: ${id}- 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.
- Data
Source stringUid - DataSource to be queried (e.g., a Loki instance).
- Default
Config bool - Is it the default config, therefore undeletable?
- Entity
Property Dictionary<string, string>To Log Label Mapping - Mapping of entity properties to log labels.
- Error
Label string - Error label to filter logs.
- Filter
By boolSpan Id - Filter logs by span ID.
- Filter
By boolTrace Id - Filter logs by trace ID.
- Matches
List<Pulumiverse.
Grafana. Assert. Inputs. Log Config Match> - List of match rules for entity properties.
- Name string
- The name of the log configuration.
- Priority int
- Priority of the log configuration. A lower number means a higher priority.
- Data
Source stringUid - DataSource to be queried (e.g., a Loki instance).
- Default
Config bool - Is it the default config, therefore undeletable?
- Entity
Property map[string]stringTo Log Label Mapping - Mapping of entity properties to log labels.
- Error
Label string - Error label to filter logs.
- Filter
By boolSpan Id - Filter logs by span ID.
- Filter
By boolTrace Id - Filter logs by trace ID.
- Matches
[]Log
Config Match Args - List of match rules for entity properties.
- Name string
- The name of the log configuration.
- Priority int
- Priority of the log configuration. A lower number means a higher priority.
- data
Source StringUid - DataSource to be queried (e.g., a Loki instance).
- default
Config Boolean - Is it the default config, therefore undeletable?
- entity
Property Map<String,String>To Log Label Mapping - Mapping of entity properties to log labels.
- error
Label String - Error label to filter logs.
- filter
By BooleanSpan Id - Filter logs by span ID.
- filter
By BooleanTrace Id - Filter logs by trace ID.
- matches
List<Log
Config Match> - List of match rules for entity properties.
- name String
- The name of the log configuration.
- priority Integer
- Priority of the log configuration. A lower number means a higher priority.
- data
Source stringUid - DataSource to be queried (e.g., a Loki instance).
- default
Config boolean - Is it the default config, therefore undeletable?
- entity
Property {[key: string]: string}To Log Label Mapping - Mapping of entity properties to log labels.
- error
Label string - Error label to filter logs.
- filter
By booleanSpan Id - Filter logs by span ID.
- filter
By booleanTrace Id - Filter logs by trace ID.
- matches
Log
Config Match[] - List of match rules for entity properties.
- name string
- The name of the log configuration.
- priority number
- Priority of the log configuration. A lower number means a higher priority.
- data_
source_ struid - DataSource to be queried (e.g., a Loki instance).
- default_
config bool - Is it the default config, therefore undeletable?
- entity_
property_ Mapping[str, str]to_ log_ label_ mapping - Mapping of entity properties to log labels.
- error_
label str - Error label to filter logs.
- filter_
by_ boolspan_ id - Filter logs by span ID.
- filter_
by_ booltrace_ id - Filter logs by trace ID.
- matches
Sequence[Log
Config Match Args] - List of match rules for entity properties.
- name str
- The name of the log configuration.
- priority int
- Priority of the log configuration. A lower number means a higher priority.
- data
Source StringUid - DataSource to be queried (e.g., a Loki instance).
- default
Config Boolean - Is it the default config, therefore undeletable?
- entity
Property Map<String>To Log Label Mapping - Mapping of entity properties to log labels.
- error
Label String - Error label to filter logs.
- filter
By BooleanSpan Id - Filter logs by span ID.
- filter
By BooleanTrace Id - Filter logs by trace ID.
- matches List<Property Map>
- List of match rules for entity properties.
- name String
- The name of the log configuration.
- priority Number
- Priority of the log configuration. A lower number means a higher priority.
Supporting Types
LogConfigMatch, LogConfigMatchArgs
Import
$ pulumi import grafana:assert/logConfig:LogConfig name "{{ name }}"
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- grafana pulumiverse/pulumi-grafana
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
grafanaTerraform Provider.
