published on Friday, Aug 7, 2026 by pulumiverse
published on Friday, Aug 7, 2026 by pulumiverse
Manages a Grafana Agent Observability online evaluation rule. Rules select which agent generations (or whole conversations) are sampled and scored by one or more evaluators.
Requires a Grafana instance with the grafana-agento11y-app plugin installed. Writes require a user or service account with the grafana-agento11y-app.eval:write permission, which only the Admin basic role grants by default.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as grafana from "@pulumiverse/grafana";
const example = new grafana.agento11y.Evaluator("example", {
evaluatorId: "no_secrets",
version: "1",
kind: "regex",
config: JSON.stringify({
pattern: "(?i)(api[_-]?key|password|secret)",
}),
outputKeys: JSON.stringify([{
key: "clean",
type: "bool",
}]),
});
const exampleEvaluationRule = new grafana.agento11y.EvaluationRule("example", {
ruleId: "score_user_turns",
enabled: true,
selector: "user_visible_turn",
sampleRate: 0.1,
evaluatorIds: [example.evaluatorId],
match: JSON.stringify({
agent_name: "checkout-*",
}),
});
import pulumi
import json
import pulumiverse_grafana as grafana
example = grafana.agento11y.Evaluator("example",
evaluator_id="no_secrets",
version="1",
kind="regex",
config=json.dumps({
"pattern": "(?i)(api[_-]?key|password|secret)",
}),
output_keys=json.dumps([{
"key": "clean",
"type": "bool",
}]))
example_evaluation_rule = grafana.agento11y.EvaluationRule("example",
rule_id="score_user_turns",
enabled=True,
selector="user_visible_turn",
sample_rate=0.1,
evaluator_ids=[example.evaluator_id],
match=json.dumps({
"agent_name": "checkout-*",
}))
package main
import (
"encoding/json"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/pulumiverse/pulumi-grafana/sdk/v2/go/grafana/agento11y"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
tmpJSON0, err := json.Marshal(map[string]interface{}{
"pattern": "(?i)(api[_-]?key|password|secret)",
})
if err != nil {
return err
}
json0 := string(tmpJSON0)
tmpJSON1, err := json.Marshal([]map[string]interface{}{
map[string]interface{}{
"key": "clean",
"type": "bool",
},
})
if err != nil {
return err
}
json1 := string(tmpJSON1)
example, err := agento11y.NewEvaluator(ctx, "example", &agento11y.EvaluatorArgs{
EvaluatorId: pulumi.String("no_secrets"),
Version: pulumi.String("1"),
Kind: pulumi.String("regex"),
Config: pulumi.String(pulumi.String(json0)),
OutputKeys: pulumi.String(pulumi.String(json1)),
})
if err != nil {
return err
}
tmpJSON2, err := json.Marshal(map[string]interface{}{
"agent_name": "checkout-*",
})
if err != nil {
return err
}
json2 := string(tmpJSON2)
_, err = agento11y.NewEvaluationRule(ctx, "example", &agento11y.EvaluationRuleArgs{
RuleId: pulumi.String("score_user_turns"),
Enabled: pulumi.Bool(true),
Selector: pulumi.String("user_visible_turn"),
SampleRate: pulumi.Float64(0.1),
EvaluatorIds: pulumi.StringArray{
example.EvaluatorId,
},
Match: pulumi.String(pulumi.String(json2)),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using System.Text.Json;
using Pulumi;
using Grafana = Pulumiverse.Grafana;
return await Deployment.RunAsync(() =>
{
var example = new Grafana.Agento11y.Evaluator("example", new()
{
EvaluatorId = "no_secrets",
Version = "1",
Kind = "regex",
Config = JsonSerializer.Serialize(new Dictionary<string, object?>
{
["pattern"] = "(?i)(api[_-]?key|password|secret)",
}),
OutputKeys = JsonSerializer.Serialize(new[]
{
new Dictionary<string, object?>
{
["key"] = "clean",
["type"] = "bool",
},
}),
});
var exampleEvaluationRule = new Grafana.Agento11y.EvaluationRule("example", new()
{
RuleId = "score_user_turns",
Enabled = true,
Selector = "user_visible_turn",
SampleRate = 0.1,
EvaluatorIds = new[]
{
example.EvaluatorId,
},
Match = JsonSerializer.Serialize(new Dictionary<string, object?>
{
["agent_name"] = "checkout-*",
}),
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.grafana.agento11y.Evaluator;
import com.pulumi.grafana.agento11y.EvaluatorArgs;
import com.pulumi.grafana.agento11y.EvaluationRule;
import com.pulumi.grafana.agento11y.EvaluationRuleArgs;
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 example = new Evaluator("example", EvaluatorArgs.builder()
.evaluatorId("no_secrets")
.version("1")
.kind("regex")
.config(serializeJson(
jsonObject(
jsonProperty("pattern", "(?i)(api[_-]?key|password|secret)")
)))
.outputKeys(serializeJson(
jsonArray(jsonObject(
jsonProperty("key", "clean"),
jsonProperty("type", "bool")
))))
.build());
var exampleEvaluationRule = new EvaluationRule("exampleEvaluationRule", EvaluationRuleArgs.builder()
.ruleId("score_user_turns")
.enabled(true)
.selector("user_visible_turn")
.sampleRate(0.1)
.evaluatorIds(example.evaluatorId())
.match(serializeJson(
jsonObject(
jsonProperty("agent_name", "checkout-*")
)))
.build());
}
}
resources:
example:
type: grafana:agento11y:Evaluator
properties:
evaluatorId: no_secrets
version: '1'
kind: regex
config:
fn::toJSON:
pattern: (?i)(api[_-]?key|password|secret)
outputKeys:
fn::toJSON:
- key: clean
type: bool
exampleEvaluationRule:
type: grafana:agento11y:EvaluationRule
name: example
properties:
ruleId: score_user_turns
enabled: true
selector: user_visible_turn
sampleRate: 0.1
evaluatorIds:
- ${example.evaluatorId}
match:
fn::toJSON:
agent_name: checkout-*
Example coming soon!
Create EvaluationRule Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new EvaluationRule(name: string, args: EvaluationRuleArgs, opts?: CustomResourceOptions);@overload
def EvaluationRule(resource_name: str,
args: EvaluationRuleArgs,
opts: Optional[ResourceOptions] = None)
@overload
def EvaluationRule(resource_name: str,
opts: Optional[ResourceOptions] = None,
evaluator_ids: Optional[Sequence[str]] = None,
rule_id: Optional[str] = None,
alert_rule_uids: Optional[Sequence[str]] = None,
enabled: Optional[bool] = None,
match: Optional[str] = None,
min_idle_seconds: Optional[int] = None,
sample_rate: Optional[float] = None,
selector: Optional[str] = None)func NewEvaluationRule(ctx *Context, name string, args EvaluationRuleArgs, opts ...ResourceOption) (*EvaluationRule, error)public EvaluationRule(string name, EvaluationRuleArgs args, CustomResourceOptions? opts = null)
public EvaluationRule(String name, EvaluationRuleArgs args)
public EvaluationRule(String name, EvaluationRuleArgs args, CustomResourceOptions options)
type: grafana:agento11y:EvaluationRule
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
resource "grafana_agento11y_evaluation_rule" "name" {
# resource properties
}Parameters
- name string
- The unique name of the resource.
- args EvaluationRuleArgs
- 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 EvaluationRuleArgs
- 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 EvaluationRuleArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args EvaluationRuleArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args EvaluationRuleArgs
- 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 evaluationRuleResource = new Grafana.Agento11y.EvaluationRule("evaluationRuleResource", new()
{
EvaluatorIds = new[]
{
"string",
},
RuleId = "string",
AlertRuleUids = new[]
{
"string",
},
Enabled = false,
Match = "string",
MinIdleSeconds = 0,
SampleRate = 0,
Selector = "string",
});
example, err := agento11y.NewEvaluationRule(ctx, "evaluationRuleResource", &agento11y.EvaluationRuleArgs{
EvaluatorIds: pulumi.StringArray{
pulumi.String("string"),
},
RuleId: pulumi.String("string"),
AlertRuleUids: pulumi.StringArray{
pulumi.String("string"),
},
Enabled: pulumi.Bool(false),
Match: pulumi.String("string"),
MinIdleSeconds: pulumi.Int(0),
SampleRate: pulumi.Float64(0),
Selector: pulumi.String("string"),
})
resource "grafana_agento11y_evaluation_rule" "evaluationRuleResource" {
lifecycle {
create_before_destroy = true
}
evaluator_ids = ["string"]
rule_id = "string"
alert_rule_uids = ["string"]
enabled = false
match = "string"
min_idle_seconds = 0
sample_rate = 0
selector = "string"
}
var evaluationRuleResource = new EvaluationRule("evaluationRuleResource", EvaluationRuleArgs.builder()
.evaluatorIds("string")
.ruleId("string")
.alertRuleUids("string")
.enabled(false)
.match("string")
.minIdleSeconds(0)
.sampleRate(0.0)
.selector("string")
.build());
evaluation_rule_resource = grafana.agento11y.EvaluationRule("evaluationRuleResource",
evaluator_ids=["string"],
rule_id="string",
alert_rule_uids=["string"],
enabled=False,
match="string",
min_idle_seconds=0,
sample_rate=float(0),
selector="string")
const evaluationRuleResource = new grafana.agento11y.EvaluationRule("evaluationRuleResource", {
evaluatorIds: ["string"],
ruleId: "string",
alertRuleUids: ["string"],
enabled: false,
match: "string",
minIdleSeconds: 0,
sampleRate: 0,
selector: "string",
});
type: grafana:agento11y:EvaluationRule
properties:
alertRuleUids:
- string
enabled: false
evaluatorIds:
- string
match: string
minIdleSeconds: 0
ruleId: string
sampleRate: 0
selector: string
EvaluationRule 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 EvaluationRule resource accepts the following input properties:
- Evaluator
Ids List<string> - IDs of the evaluators to run against matching generations. Must be non-empty.
- Rule
Id string - Tenant-unique identifier of the rule. Changing this forces a new resource.
- Alert
Rule List<string>Uids - Optional Grafana alert rule UIDs associated with this evaluation rule.
- Enabled bool
- Whether the rule is enabled. Defaults to
true. - Match string
- Optional JSON object of match filters (for example
{"agentName":"checkout-*"}). Omit to match everything. - Min
Idle intSeconds - Idle window, in seconds, before a conversation-scope rule runs. Required when
selectorisconversation; must be unset otherwise. - Sample
Rate double - Fraction of matching generations to evaluate, in
[0,1]. Defaults to0.01. - Selector string
- Which generations the rule applies to. One of
userVisibleTurn,allAssistantGenerations,toolCallSteps,erroredGenerations,conversation. Defaults touserVisibleTurn.
- Evaluator
Ids []string - IDs of the evaluators to run against matching generations. Must be non-empty.
- Rule
Id string - Tenant-unique identifier of the rule. Changing this forces a new resource.
- Alert
Rule []stringUids - Optional Grafana alert rule UIDs associated with this evaluation rule.
- Enabled bool
- Whether the rule is enabled. Defaults to
true. - Match string
- Optional JSON object of match filters (for example
{"agentName":"checkout-*"}). Omit to match everything. - Min
Idle intSeconds - Idle window, in seconds, before a conversation-scope rule runs. Required when
selectorisconversation; must be unset otherwise. - Sample
Rate float64 - Fraction of matching generations to evaluate, in
[0,1]. Defaults to0.01. - Selector string
- Which generations the rule applies to. One of
userVisibleTurn,allAssistantGenerations,toolCallSteps,erroredGenerations,conversation. Defaults touserVisibleTurn.
- evaluator_
ids list(string) - IDs of the evaluators to run against matching generations. Must be non-empty.
- rule_
id string - Tenant-unique identifier of the rule. Changing this forces a new resource.
- alert_
rule_ list(string)uids - Optional Grafana alert rule UIDs associated with this evaluation rule.
- enabled bool
- Whether the rule is enabled. Defaults to
true. - match string
- Optional JSON object of match filters (for example
{"agentName":"checkout-*"}). Omit to match everything. - min_
idle_ numberseconds - Idle window, in seconds, before a conversation-scope rule runs. Required when
selectorisconversation; must be unset otherwise. - sample_
rate number - Fraction of matching generations to evaluate, in
[0,1]. Defaults to0.01. - selector string
- Which generations the rule applies to. One of
userVisibleTurn,allAssistantGenerations,toolCallSteps,erroredGenerations,conversation. Defaults touserVisibleTurn.
- evaluator
Ids List<String> - IDs of the evaluators to run against matching generations. Must be non-empty.
- rule
Id String - Tenant-unique identifier of the rule. Changing this forces a new resource.
- alert
Rule List<String>Uids - Optional Grafana alert rule UIDs associated with this evaluation rule.
- enabled Boolean
- Whether the rule is enabled. Defaults to
true. - match String
- Optional JSON object of match filters (for example
{"agentName":"checkout-*"}). Omit to match everything. - min
Idle IntegerSeconds - Idle window, in seconds, before a conversation-scope rule runs. Required when
selectorisconversation; must be unset otherwise. - sample
Rate Double - Fraction of matching generations to evaluate, in
[0,1]. Defaults to0.01. - selector String
- Which generations the rule applies to. One of
userVisibleTurn,allAssistantGenerations,toolCallSteps,erroredGenerations,conversation. Defaults touserVisibleTurn.
- evaluator
Ids string[] - IDs of the evaluators to run against matching generations. Must be non-empty.
- rule
Id string - Tenant-unique identifier of the rule. Changing this forces a new resource.
- alert
Rule string[]Uids - Optional Grafana alert rule UIDs associated with this evaluation rule.
- enabled boolean
- Whether the rule is enabled. Defaults to
true. - match string
- Optional JSON object of match filters (for example
{"agentName":"checkout-*"}). Omit to match everything. - min
Idle numberSeconds - Idle window, in seconds, before a conversation-scope rule runs. Required when
selectorisconversation; must be unset otherwise. - sample
Rate number - Fraction of matching generations to evaluate, in
[0,1]. Defaults to0.01. - selector string
- Which generations the rule applies to. One of
userVisibleTurn,allAssistantGenerations,toolCallSteps,erroredGenerations,conversation. Defaults touserVisibleTurn.
- evaluator_
ids Sequence[str] - IDs of the evaluators to run against matching generations. Must be non-empty.
- rule_
id str - Tenant-unique identifier of the rule. Changing this forces a new resource.
- alert_
rule_ Sequence[str]uids - Optional Grafana alert rule UIDs associated with this evaluation rule.
- enabled bool
- Whether the rule is enabled. Defaults to
true. - match str
- Optional JSON object of match filters (for example
{"agentName":"checkout-*"}). Omit to match everything. - min_
idle_ intseconds - Idle window, in seconds, before a conversation-scope rule runs. Required when
selectorisconversation; must be unset otherwise. - sample_
rate float - Fraction of matching generations to evaluate, in
[0,1]. Defaults to0.01. - selector str
- Which generations the rule applies to. One of
userVisibleTurn,allAssistantGenerations,toolCallSteps,erroredGenerations,conversation. Defaults touserVisibleTurn.
- evaluator
Ids List<String> - IDs of the evaluators to run against matching generations. Must be non-empty.
- rule
Id String - Tenant-unique identifier of the rule. Changing this forces a new resource.
- alert
Rule List<String>Uids - Optional Grafana alert rule UIDs associated with this evaluation rule.
- enabled Boolean
- Whether the rule is enabled. Defaults to
true. - match String
- Optional JSON object of match filters (for example
{"agentName":"checkout-*"}). Omit to match everything. - min
Idle NumberSeconds - Idle window, in seconds, before a conversation-scope rule runs. Required when
selectorisconversation; must be unset otherwise. - sample
Rate Number - Fraction of matching generations to evaluate, in
[0,1]. Defaults to0.01. - selector String
- Which generations the rule applies to. One of
userVisibleTurn,allAssistantGenerations,toolCallSteps,erroredGenerations,conversation. Defaults touserVisibleTurn.
Outputs
All input properties are implicitly available as output properties. Additionally, the EvaluationRule 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 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 EvaluationRule Resource
Get an existing EvaluationRule 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?: EvaluationRuleState, opts?: CustomResourceOptions): EvaluationRule@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
alert_rule_uids: Optional[Sequence[str]] = None,
enabled: Optional[bool] = None,
evaluator_ids: Optional[Sequence[str]] = None,
match: Optional[str] = None,
min_idle_seconds: Optional[int] = None,
rule_id: Optional[str] = None,
sample_rate: Optional[float] = None,
selector: Optional[str] = None) -> EvaluationRulefunc GetEvaluationRule(ctx *Context, name string, id IDInput, state *EvaluationRuleState, opts ...ResourceOption) (*EvaluationRule, error)public static EvaluationRule Get(string name, Input<string> id, EvaluationRuleState? state, CustomResourceOptions? opts = null)public static EvaluationRule get(String name, Output<String> id, EvaluationRuleState state, CustomResourceOptions options)resources: _: type: grafana:agento11y:EvaluationRule get: id: ${id}import {
to = grafana_agento11y_evaluation_rule.example
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.
- Alert
Rule List<string>Uids - Optional Grafana alert rule UIDs associated with this evaluation rule.
- Enabled bool
- Whether the rule is enabled. Defaults to
true. - Evaluator
Ids List<string> - IDs of the evaluators to run against matching generations. Must be non-empty.
- Match string
- Optional JSON object of match filters (for example
{"agentName":"checkout-*"}). Omit to match everything. - Min
Idle intSeconds - Idle window, in seconds, before a conversation-scope rule runs. Required when
selectorisconversation; must be unset otherwise. - Rule
Id string - Tenant-unique identifier of the rule. Changing this forces a new resource.
- Sample
Rate double - Fraction of matching generations to evaluate, in
[0,1]. Defaults to0.01. - Selector string
- Which generations the rule applies to. One of
userVisibleTurn,allAssistantGenerations,toolCallSteps,erroredGenerations,conversation. Defaults touserVisibleTurn.
- Alert
Rule []stringUids - Optional Grafana alert rule UIDs associated with this evaluation rule.
- Enabled bool
- Whether the rule is enabled. Defaults to
true. - Evaluator
Ids []string - IDs of the evaluators to run against matching generations. Must be non-empty.
- Match string
- Optional JSON object of match filters (for example
{"agentName":"checkout-*"}). Omit to match everything. - Min
Idle intSeconds - Idle window, in seconds, before a conversation-scope rule runs. Required when
selectorisconversation; must be unset otherwise. - Rule
Id string - Tenant-unique identifier of the rule. Changing this forces a new resource.
- Sample
Rate float64 - Fraction of matching generations to evaluate, in
[0,1]. Defaults to0.01. - Selector string
- Which generations the rule applies to. One of
userVisibleTurn,allAssistantGenerations,toolCallSteps,erroredGenerations,conversation. Defaults touserVisibleTurn.
- alert_
rule_ list(string)uids - Optional Grafana alert rule UIDs associated with this evaluation rule.
- enabled bool
- Whether the rule is enabled. Defaults to
true. - evaluator_
ids list(string) - IDs of the evaluators to run against matching generations. Must be non-empty.
- match string
- Optional JSON object of match filters (for example
{"agentName":"checkout-*"}). Omit to match everything. - min_
idle_ numberseconds - Idle window, in seconds, before a conversation-scope rule runs. Required when
selectorisconversation; must be unset otherwise. - rule_
id string - Tenant-unique identifier of the rule. Changing this forces a new resource.
- sample_
rate number - Fraction of matching generations to evaluate, in
[0,1]. Defaults to0.01. - selector string
- Which generations the rule applies to. One of
userVisibleTurn,allAssistantGenerations,toolCallSteps,erroredGenerations,conversation. Defaults touserVisibleTurn.
- alert
Rule List<String>Uids - Optional Grafana alert rule UIDs associated with this evaluation rule.
- enabled Boolean
- Whether the rule is enabled. Defaults to
true. - evaluator
Ids List<String> - IDs of the evaluators to run against matching generations. Must be non-empty.
- match String
- Optional JSON object of match filters (for example
{"agentName":"checkout-*"}). Omit to match everything. - min
Idle IntegerSeconds - Idle window, in seconds, before a conversation-scope rule runs. Required when
selectorisconversation; must be unset otherwise. - rule
Id String - Tenant-unique identifier of the rule. Changing this forces a new resource.
- sample
Rate Double - Fraction of matching generations to evaluate, in
[0,1]. Defaults to0.01. - selector String
- Which generations the rule applies to. One of
userVisibleTurn,allAssistantGenerations,toolCallSteps,erroredGenerations,conversation. Defaults touserVisibleTurn.
- alert
Rule string[]Uids - Optional Grafana alert rule UIDs associated with this evaluation rule.
- enabled boolean
- Whether the rule is enabled. Defaults to
true. - evaluator
Ids string[] - IDs of the evaluators to run against matching generations. Must be non-empty.
- match string
- Optional JSON object of match filters (for example
{"agentName":"checkout-*"}). Omit to match everything. - min
Idle numberSeconds - Idle window, in seconds, before a conversation-scope rule runs. Required when
selectorisconversation; must be unset otherwise. - rule
Id string - Tenant-unique identifier of the rule. Changing this forces a new resource.
- sample
Rate number - Fraction of matching generations to evaluate, in
[0,1]. Defaults to0.01. - selector string
- Which generations the rule applies to. One of
userVisibleTurn,allAssistantGenerations,toolCallSteps,erroredGenerations,conversation. Defaults touserVisibleTurn.
- alert_
rule_ Sequence[str]uids - Optional Grafana alert rule UIDs associated with this evaluation rule.
- enabled bool
- Whether the rule is enabled. Defaults to
true. - evaluator_
ids Sequence[str] - IDs of the evaluators to run against matching generations. Must be non-empty.
- match str
- Optional JSON object of match filters (for example
{"agentName":"checkout-*"}). Omit to match everything. - min_
idle_ intseconds - Idle window, in seconds, before a conversation-scope rule runs. Required when
selectorisconversation; must be unset otherwise. - rule_
id str - Tenant-unique identifier of the rule. Changing this forces a new resource.
- sample_
rate float - Fraction of matching generations to evaluate, in
[0,1]. Defaults to0.01. - selector str
- Which generations the rule applies to. One of
userVisibleTurn,allAssistantGenerations,toolCallSteps,erroredGenerations,conversation. Defaults touserVisibleTurn.
- alert
Rule List<String>Uids - Optional Grafana alert rule UIDs associated with this evaluation rule.
- enabled Boolean
- Whether the rule is enabled. Defaults to
true. - evaluator
Ids List<String> - IDs of the evaluators to run against matching generations. Must be non-empty.
- match String
- Optional JSON object of match filters (for example
{"agentName":"checkout-*"}). Omit to match everything. - min
Idle NumberSeconds - Idle window, in seconds, before a conversation-scope rule runs. Required when
selectorisconversation; must be unset otherwise. - rule
Id String - Tenant-unique identifier of the rule. Changing this forces a new resource.
- sample
Rate Number - Fraction of matching generations to evaluate, in
[0,1]. Defaults to0.01. - selector String
- Which generations the rule applies to. One of
userVisibleTurn,allAssistantGenerations,toolCallSteps,erroredGenerations,conversation. Defaults touserVisibleTurn.
Import
terraform import grafana_agento11y_evaluation_rule.name "{{ rule_id }}"
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.
published on Friday, Aug 7, 2026 by pulumiverse