published on Friday, Jun 5, 2026 by Chronosphere
published on Friday, Jun 5, 2026 by Chronosphere
A virtual metric whose value is computed on demand from one of several underlying PromQL queries. The query selected at evaluation time is determined by matching the usage’s labels against the configured selectors.
Example Usage
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Pulumi = Chronosphere.Pulumi;
return await Deployment.RunAsync(() =>
{
var requestRate = new Pulumi.DerivedMetric("requestRate", new()
{
Description = "Per-service request rate, with selector-aware variants",
MetricName = "request_rate",
Name = "request_rate",
Queries = new[]
{
new Pulumi.Inputs.DerivedMetricQueryArgs
{
Query = new Pulumi.Inputs.DerivedMetricQueryQueryArgs
{
Expr = "sum by (service) (rate(http_requests_total{label1=\"value1\"}[5m]))",
Variables = new[]
{
new Pulumi.Inputs.DerivedMetricQueryQueryVariableArgs
{
DefaultSelector = "service=default",
Name = "service",
},
},
},
Selector = new Pulumi.Inputs.DerivedMetricQuerySelectorArgs
{
Labels =
{
{ "label1", "value1" },
},
},
},
new Pulumi.Inputs.DerivedMetricQueryArgs
{
Query = new Pulumi.Inputs.DerivedMetricQueryQueryArgs
{
Expr = "sum by (service) (rate(http_requests_total[5m]))",
},
},
},
Slug = "request-rate",
});
});
package main
import (
"github.com/chronosphereio/pulumi-chronosphere/sdk/go/chronosphere"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := chronosphere.NewDerivedMetric(ctx, "requestRate", &chronosphere.DerivedMetricArgs{
Description: pulumi.String("Per-service request rate, with selector-aware variants"),
MetricName: pulumi.String("request_rate"),
Name: pulumi.String("request_rate"),
Queries: chronosphere.DerivedMetricQueryArray{
&chronosphere.DerivedMetricQueryArgs{
Query: &chronosphere.DerivedMetricQueryQueryArgs{
Expr: pulumi.String("sum by (service) (rate(http_requests_total{label1=\"value1\"}[5m]))"),
Variables: chronosphere.DerivedMetricQueryQueryVariableArray{
&chronosphere.DerivedMetricQueryQueryVariableArgs{
DefaultSelector: pulumi.String("service=default"),
Name: pulumi.String("service"),
},
},
},
Selector: &chronosphere.DerivedMetricQuerySelectorArgs{
Labels: pulumi.StringMap{
"label1": pulumi.String("value1"),
},
},
},
&chronosphere.DerivedMetricQueryArgs{
Query: &chronosphere.DerivedMetricQueryQueryArgs{
Expr: pulumi.String("sum by (service) (rate(http_requests_total[5m]))"),
},
},
},
Slug: pulumi.String("request-rate"),
})
if err != nil {
return err
}
return nil
})
}
Example coming soon!
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.chronosphere.DerivedMetric;
import com.pulumi.chronosphere.DerivedMetricArgs;
import com.pulumi.chronosphere.inputs.DerivedMetricQueryArgs;
import com.pulumi.chronosphere.inputs.DerivedMetricQueryQueryArgs;
import com.pulumi.chronosphere.inputs.DerivedMetricQuerySelectorArgs;
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 requestRate = new DerivedMetric("requestRate", DerivedMetricArgs.builder()
.description("Per-service request rate, with selector-aware variants")
.metricName("request_rate")
.name("request_rate")
.queries(
DerivedMetricQueryArgs.builder()
.query(DerivedMetricQueryQueryArgs.builder()
.expr("sum by (service) (rate(http_requests_total{label1=\"value1\"}[5m]))")
.variables(DerivedMetricQueryQueryVariableArgs.builder()
.defaultSelector("service=default")
.name("service")
.build())
.build())
.selector(DerivedMetricQuerySelectorArgs.builder()
.labels(Map.of("label1", "value1"))
.build())
.build(),
DerivedMetricQueryArgs.builder()
.query(DerivedMetricQueryQueryArgs.builder()
.expr("sum by (service) (rate(http_requests_total[5m]))")
.build())
.build())
.slug("request-rate")
.build());
}
}
import * as pulumi from "@pulumi/pulumi";
import * as chronosphere from "@pulumi-chronosphere/pulumi-chronosphere";
const requestRate = new chronosphere.DerivedMetric("requestRate", {
description: "Per-service request rate, with selector-aware variants",
metricName: "request_rate",
name: "request_rate",
queries: [
{
query: {
expr: "sum by (service) (rate(http_requests_total{label1=\"value1\"}[5m]))",
variables: [{
defaultSelector: "service=default",
name: "service",
}],
},
selector: {
labels: {
label1: "value1",
},
},
},
{
query: {
expr: "sum by (service) (rate(http_requests_total[5m]))",
},
},
],
slug: "request-rate",
});
import pulumi
import pulumi_chronosphere as chronosphere
request_rate = chronosphere.DerivedMetric("requestRate",
description="Per-service request rate, with selector-aware variants",
metric_name="request_rate",
name="request_rate",
queries=[
chronosphere.DerivedMetricQueryArgs(
query=chronosphere.DerivedMetricQueryQueryArgs(
expr="sum by (service) (rate(http_requests_total{label1=\"value1\"}[5m]))",
variables=[chronosphere.DerivedMetricQueryQueryVariableArgs(
default_selector="service=default",
name="service",
)],
),
selector=chronosphere.DerivedMetricQuerySelectorArgs(
labels={
"label1": "value1",
},
),
),
chronosphere.DerivedMetricQueryArgs(
query=chronosphere.DerivedMetricQueryQueryArgs(
expr="sum by (service) (rate(http_requests_total[5m]))",
),
),
],
slug="request-rate")
resources:
requestRate:
type: chronosphere:DerivedMetric
properties:
description: Per-service request rate, with selector-aware variants
metricName: request_rate
name: request_rate
queries:
- query:
expr: sum by (service) (rate(http_requests_total{label1="value1"}[5m]))
variables:
- defaultSelector: service=default
name: service
selector:
labels:
label1: value1
- query:
expr: sum by (service) (rate(http_requests_total[5m]))
slug: request-rate
Create DerivedMetric Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new DerivedMetric(name: string, args: DerivedMetricArgs, opts?: CustomResourceOptions);@overload
def DerivedMetric(resource_name: str,
args: DerivedMetricArgs,
opts: Optional[ResourceOptions] = None)
@overload
def DerivedMetric(resource_name: str,
opts: Optional[ResourceOptions] = None,
metric_name: Optional[str] = None,
name: Optional[str] = None,
queries: Optional[Sequence[DerivedMetricQueryArgs]] = None,
description: Optional[str] = None,
slug: Optional[str] = None)func NewDerivedMetric(ctx *Context, name string, args DerivedMetricArgs, opts ...ResourceOption) (*DerivedMetric, error)public DerivedMetric(string name, DerivedMetricArgs args, CustomResourceOptions? opts = null)
public DerivedMetric(String name, DerivedMetricArgs args)
public DerivedMetric(String name, DerivedMetricArgs args, CustomResourceOptions options)
type: chronosphere:DerivedMetric
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
resource "chronosphere_derivedmetric" "name" {
# resource properties
}Parameters
- name string
- The unique name of the resource.
- args DerivedMetricArgs
- 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 DerivedMetricArgs
- 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 DerivedMetricArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args DerivedMetricArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args DerivedMetricArgs
- 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 derivedMetricResource = new Pulumi.DerivedMetric("derivedMetricResource", new()
{
MetricName = "string",
Name = "string",
Queries = new[]
{
new Pulumi.Inputs.DerivedMetricQueryArgs
{
Query = new Pulumi.Inputs.DerivedMetricQueryQueryArgs
{
Expr = "string",
Variables = new[]
{
new Pulumi.Inputs.DerivedMetricQueryQueryVariableArgs
{
DefaultSelector = "string",
Name = "string",
},
},
},
Selector = new Pulumi.Inputs.DerivedMetricQuerySelectorArgs
{
Labels =
{
{ "string", "string" },
},
},
},
},
Description = "string",
Slug = "string",
});
example, err := chronosphere.NewDerivedMetric(ctx, "derivedMetricResource", &chronosphere.DerivedMetricArgs{
MetricName: pulumi.String("string"),
Name: pulumi.String("string"),
Queries: chronosphere.DerivedMetricQueryArray{
&chronosphere.DerivedMetricQueryArgs{
Query: &chronosphere.DerivedMetricQueryQueryArgs{
Expr: pulumi.String("string"),
Variables: chronosphere.DerivedMetricQueryQueryVariableArray{
&chronosphere.DerivedMetricQueryQueryVariableArgs{
DefaultSelector: pulumi.String("string"),
Name: pulumi.String("string"),
},
},
},
Selector: &chronosphere.DerivedMetricQuerySelectorArgs{
Labels: pulumi.StringMap{
"string": pulumi.String("string"),
},
},
},
},
Description: pulumi.String("string"),
Slug: pulumi.String("string"),
})
resource "chronosphere_derivedmetric" "derivedMetricResource" {
metric_name = "string"
name = "string"
queries {
query = {
expr = "string"
variables = [{
"defaultSelector" = "string"
"name" = "string"
}]
}
selector = {
labels = {
"string" = "string"
}
}
}
description = "string"
slug = "string"
}
var derivedMetricResource = new DerivedMetric("derivedMetricResource", DerivedMetricArgs.builder()
.metricName("string")
.name("string")
.queries(DerivedMetricQueryArgs.builder()
.query(DerivedMetricQueryQueryArgs.builder()
.expr("string")
.variables(DerivedMetricQueryQueryVariableArgs.builder()
.defaultSelector("string")
.name("string")
.build())
.build())
.selector(DerivedMetricQuerySelectorArgs.builder()
.labels(Map.of("string", "string"))
.build())
.build())
.description("string")
.slug("string")
.build());
derived_metric_resource = chronosphere.DerivedMetric("derivedMetricResource",
metric_name="string",
name="string",
queries=[{
"query": {
"expr": "string",
"variables": [{
"default_selector": "string",
"name": "string",
}],
},
"selector": {
"labels": {
"string": "string",
},
},
}],
description="string",
slug="string")
const derivedMetricResource = new chronosphere.DerivedMetric("derivedMetricResource", {
metricName: "string",
name: "string",
queries: [{
query: {
expr: "string",
variables: [{
defaultSelector: "string",
name: "string",
}],
},
selector: {
labels: {
string: "string",
},
},
}],
description: "string",
slug: "string",
});
type: chronosphere:DerivedMetric
properties:
description: string
metricName: string
name: string
queries:
- query:
expr: string
variables:
- defaultSelector: string
name: string
selector:
labels:
string: string
slug: string
DerivedMetric 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 DerivedMetric resource accepts the following input properties:
- Metric
Name string - Name of the derived metric as referenced in queries. Must be unique across the system.
- Name string
- Variable name as referenced in
expr(e.g.servicefor$service). - Queries
List<Chronosphere.
Pulumi. Inputs. Derived Metric Query> - Ordered list of selector/query pairs. When the derived metric is used, the first entry whose
selectormatches the usage's labels supplies the PromQLquery. - Description string
- Free-form description of the derived metric.
- Slug string
- Stable identifier for the derived metric. Generated from
nameif omitted. Immutable after creation.
- Metric
Name string - Name of the derived metric as referenced in queries. Must be unique across the system.
- Name string
- Variable name as referenced in
expr(e.g.servicefor$service). - Queries
[]Derived
Metric Query Args - Ordered list of selector/query pairs. When the derived metric is used, the first entry whose
selectormatches the usage's labels supplies the PromQLquery. - Description string
- Free-form description of the derived metric.
- Slug string
- Stable identifier for the derived metric. Generated from
nameif omitted. Immutable after creation.
- metric_
name string - Name of the derived metric as referenced in queries. Must be unique across the system.
- name string
- Variable name as referenced in
expr(e.g.servicefor$service). - queries list(object)
- Ordered list of selector/query pairs. When the derived metric is used, the first entry whose
selectormatches the usage's labels supplies the PromQLquery. - description string
- Free-form description of the derived metric.
- slug string
- Stable identifier for the derived metric. Generated from
nameif omitted. Immutable after creation.
- metric
Name String - Name of the derived metric as referenced in queries. Must be unique across the system.
- name String
- Variable name as referenced in
expr(e.g.servicefor$service). - queries
List<Derived
Metric Query> - Ordered list of selector/query pairs. When the derived metric is used, the first entry whose
selectormatches the usage's labels supplies the PromQLquery. - description String
- Free-form description of the derived metric.
- slug String
- Stable identifier for the derived metric. Generated from
nameif omitted. Immutable after creation.
- metric
Name string - Name of the derived metric as referenced in queries. Must be unique across the system.
- name string
- Variable name as referenced in
expr(e.g.servicefor$service). - queries
Derived
Metric Query[] - Ordered list of selector/query pairs. When the derived metric is used, the first entry whose
selectormatches the usage's labels supplies the PromQLquery. - description string
- Free-form description of the derived metric.
- slug string
- Stable identifier for the derived metric. Generated from
nameif omitted. Immutable after creation.
- metric_
name str - Name of the derived metric as referenced in queries. Must be unique across the system.
- name str
- Variable name as referenced in
expr(e.g.servicefor$service). - queries
Sequence[Derived
Metric Query Args] - Ordered list of selector/query pairs. When the derived metric is used, the first entry whose
selectormatches the usage's labels supplies the PromQLquery. - description str
- Free-form description of the derived metric.
- slug str
- Stable identifier for the derived metric. Generated from
nameif omitted. Immutable after creation.
- metric
Name String - Name of the derived metric as referenced in queries. Must be unique across the system.
- name String
- Variable name as referenced in
expr(e.g.servicefor$service). - queries List<Property Map>
- Ordered list of selector/query pairs. When the derived metric is used, the first entry whose
selectormatches the usage's labels supplies the PromQLquery. - description String
- Free-form description of the derived metric.
- slug String
- Stable identifier for the derived metric. Generated from
nameif omitted. Immutable after creation.
Outputs
All input properties are implicitly available as output properties. Additionally, the DerivedMetric 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 DerivedMetric Resource
Get an existing DerivedMetric 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?: DerivedMetricState, opts?: CustomResourceOptions): DerivedMetric@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
description: Optional[str] = None,
metric_name: Optional[str] = None,
name: Optional[str] = None,
queries: Optional[Sequence[DerivedMetricQueryArgs]] = None,
slug: Optional[str] = None) -> DerivedMetricfunc GetDerivedMetric(ctx *Context, name string, id IDInput, state *DerivedMetricState, opts ...ResourceOption) (*DerivedMetric, error)public static DerivedMetric Get(string name, Input<string> id, DerivedMetricState? state, CustomResourceOptions? opts = null)public static DerivedMetric get(String name, Output<String> id, DerivedMetricState state, CustomResourceOptions options)resources: _: type: chronosphere:DerivedMetric get: id: ${id}import {
to = chronosphere_derivedmetric.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.
- Description string
- Free-form description of the derived metric.
- Metric
Name string - Name of the derived metric as referenced in queries. Must be unique across the system.
- Name string
- Variable name as referenced in
expr(e.g.servicefor$service). - Queries
List<Chronosphere.
Pulumi. Inputs. Derived Metric Query> - Ordered list of selector/query pairs. When the derived metric is used, the first entry whose
selectormatches the usage's labels supplies the PromQLquery. - Slug string
- Stable identifier for the derived metric. Generated from
nameif omitted. Immutable after creation.
- Description string
- Free-form description of the derived metric.
- Metric
Name string - Name of the derived metric as referenced in queries. Must be unique across the system.
- Name string
- Variable name as referenced in
expr(e.g.servicefor$service). - Queries
[]Derived
Metric Query Args - Ordered list of selector/query pairs. When the derived metric is used, the first entry whose
selectormatches the usage's labels supplies the PromQLquery. - Slug string
- Stable identifier for the derived metric. Generated from
nameif omitted. Immutable after creation.
- description string
- Free-form description of the derived metric.
- metric_
name string - Name of the derived metric as referenced in queries. Must be unique across the system.
- name string
- Variable name as referenced in
expr(e.g.servicefor$service). - queries list(object)
- Ordered list of selector/query pairs. When the derived metric is used, the first entry whose
selectormatches the usage's labels supplies the PromQLquery. - slug string
- Stable identifier for the derived metric. Generated from
nameif omitted. Immutable after creation.
- description String
- Free-form description of the derived metric.
- metric
Name String - Name of the derived metric as referenced in queries. Must be unique across the system.
- name String
- Variable name as referenced in
expr(e.g.servicefor$service). - queries
List<Derived
Metric Query> - Ordered list of selector/query pairs. When the derived metric is used, the first entry whose
selectormatches the usage's labels supplies the PromQLquery. - slug String
- Stable identifier for the derived metric. Generated from
nameif omitted. Immutable after creation.
- description string
- Free-form description of the derived metric.
- metric
Name string - Name of the derived metric as referenced in queries. Must be unique across the system.
- name string
- Variable name as referenced in
expr(e.g.servicefor$service). - queries
Derived
Metric Query[] - Ordered list of selector/query pairs. When the derived metric is used, the first entry whose
selectormatches the usage's labels supplies the PromQLquery. - slug string
- Stable identifier for the derived metric. Generated from
nameif omitted. Immutable after creation.
- description str
- Free-form description of the derived metric.
- metric_
name str - Name of the derived metric as referenced in queries. Must be unique across the system.
- name str
- Variable name as referenced in
expr(e.g.servicefor$service). - queries
Sequence[Derived
Metric Query Args] - Ordered list of selector/query pairs. When the derived metric is used, the first entry whose
selectormatches the usage's labels supplies the PromQLquery. - slug str
- Stable identifier for the derived metric. Generated from
nameif omitted. Immutable after creation.
- description String
- Free-form description of the derived metric.
- metric
Name String - Name of the derived metric as referenced in queries. Must be unique across the system.
- name String
- Variable name as referenced in
expr(e.g.servicefor$service). - queries List<Property Map>
- Ordered list of selector/query pairs. When the derived metric is used, the first entry whose
selectormatches the usage's labels supplies the PromQLquery. - slug String
- Stable identifier for the derived metric. Generated from
nameif omitted. Immutable after creation.
Supporting Types
DerivedMetricQuery, DerivedMetricQueryArgs
- Query
Chronosphere.
Pulumi. Inputs. Derived Metric Query Query - PromQL query executed when this selector matches.
- Selector
Chronosphere.
Pulumi. Inputs. Derived Metric Query Selector - Label matchers that must be present on the derived metric usage for this query to be selected. If omitted, the query matches any usage.
- Query
Derived
Metric Query Query - PromQL query executed when this selector matches.
- Selector
Derived
Metric Query Selector - Label matchers that must be present on the derived metric usage for this query to be selected. If omitted, the query matches any usage.
- query
Derived
Metric Query Query - PromQL query executed when this selector matches.
- selector
Derived
Metric Query Selector - Label matchers that must be present on the derived metric usage for this query to be selected. If omitted, the query matches any usage.
- query
Derived
Metric Query Query - PromQL query executed when this selector matches.
- selector
Derived
Metric Query Selector - Label matchers that must be present on the derived metric usage for this query to be selected. If omitted, the query matches any usage.
- query
Derived
Metric Query Query - PromQL query executed when this selector matches.
- selector
Derived
Metric Query Selector - Label matchers that must be present on the derived metric usage for this query to be selected. If omitted, the query matches any usage.
- query Property Map
- PromQL query executed when this selector matches.
- selector Property Map
- Label matchers that must be present on the derived metric usage for this query to be selected. If omitted, the query matches any usage.
DerivedMetricQueryQuery, DerivedMetricQueryQueryArgs
- Expr string
- PromQL expression for the derived metric. References declared variables using
$namesyntax (e.g.cpu_usage{$service}). - Variables
List<Chronosphere.
Pulumi. Inputs. Derived Metric Query Query Variable> - Variables that can be substituted into
exprat query time as label selectors.
- Expr string
- PromQL expression for the derived metric. References declared variables using
$namesyntax (e.g.cpu_usage{$service}). - Variables
[]Derived
Metric Query Query Variable - Variables that can be substituted into
exprat query time as label selectors.
- expr string
- PromQL expression for the derived metric. References declared variables using
$namesyntax (e.g.cpu_usage{$service}). - variables list(object)
- Variables that can be substituted into
exprat query time as label selectors.
- expr String
- PromQL expression for the derived metric. References declared variables using
$namesyntax (e.g.cpu_usage{$service}). - variables
List<Derived
Metric Query Query Variable> - Variables that can be substituted into
exprat query time as label selectors.
- expr string
- PromQL expression for the derived metric. References declared variables using
$namesyntax (e.g.cpu_usage{$service}). - variables
Derived
Metric Query Query Variable[] - Variables that can be substituted into
exprat query time as label selectors.
- expr str
- PromQL expression for the derived metric. References declared variables using
$namesyntax (e.g.cpu_usage{$service}). - variables
Sequence[Derived
Metric Query Query Variable] - Variables that can be substituted into
exprat query time as label selectors.
- expr String
- PromQL expression for the derived metric. References declared variables using
$namesyntax (e.g.cpu_usage{$service}). - variables List<Property Map>
- Variables that can be substituted into
exprat query time as label selectors.
DerivedMetricQueryQueryVariable, DerivedMetricQueryQueryVariableArgs
- Default
Selector string - PromQL label selector used when no override is supplied by the derived metric usage.
- Name string
- Variable name as referenced in
expr(e.g.servicefor$service).
- Default
Selector string - PromQL label selector used when no override is supplied by the derived metric usage.
- Name string
- Variable name as referenced in
expr(e.g.servicefor$service).
- default_
selector string - PromQL label selector used when no override is supplied by the derived metric usage.
- name string
- Variable name as referenced in
expr(e.g.servicefor$service).
- default
Selector String - PromQL label selector used when no override is supplied by the derived metric usage.
- name String
- Variable name as referenced in
expr(e.g.servicefor$service).
- default
Selector string - PromQL label selector used when no override is supplied by the derived metric usage.
- name string
- Variable name as referenced in
expr(e.g.servicefor$service).
- default_
selector str - PromQL label selector used when no override is supplied by the derived metric usage.
- name str
- Variable name as referenced in
expr(e.g.servicefor$service).
- default
Selector String - PromQL label selector used when no override is supplied by the derived metric usage.
- name String
- Variable name as referenced in
expr(e.g.servicefor$service).
DerivedMetricQuerySelector, DerivedMetricQuerySelectorArgs
- Labels Dictionary<string, string>
- Labels that must match (key/value) on the derived metric usage for the selector to apply.
- Labels map[string]string
- Labels that must match (key/value) on the derived metric usage for the selector to apply.
- labels map(string)
- Labels that must match (key/value) on the derived metric usage for the selector to apply.
- labels Map<String,String>
- Labels that must match (key/value) on the derived metric usage for the selector to apply.
- labels {[key: string]: string}
- Labels that must match (key/value) on the derived metric usage for the selector to apply.
- labels Mapping[str, str]
- Labels that must match (key/value) on the derived metric usage for the selector to apply.
- labels Map<String>
- Labels that must match (key/value) on the derived metric usage for the selector to apply.
Package Details
- Repository
- chronosphere chronosphereio/pulumi-chronosphere
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
chronosphereTerraform Provider.
published on Friday, Jun 5, 2026 by Chronosphere