published on Friday, Jun 5, 2026 by Chronosphere
published on Friday, Jun 5, 2026 by Chronosphere
Aggregates matching input metrics into a lower-cardinality output series at ingest time, reducing storage cost and query load. Selects input series by filter, applies an aggregation function (e.g. sum, max), and emits a new metric grouped by the specified labels.
Example Usage
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Pulumi = Chronosphere.Pulumi;
return await Deployment.RunAsync(() =>
{
var bucket = new Pulumi.Bucket("bucket", new()
{
Name = "Platform",
});
var rollupRule = new Pulumi.RollupRule("rollupRule", new()
{
Name = "RollupRule",
Slug = "rollup-rule",
BucketId = bucket.Id,
Filter = "__name__:metric_name",
Aggregation = "SUM",
DropRaw = true,
GroupBies = new[]
{
"service",
},
MetricType = "COUNTER",
MetricTypeTag = false,
NewMetric = "new_metric_name",
Permissive = true,
StoragePolicies = new Pulumi.Inputs.RollupRuleStoragePoliciesArgs
{
Resolution = "30s",
Retention = "120h",
},
Mode = "PREVIEW",
});
});
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 {
bucket, err := chronosphere.NewBucket(ctx, "bucket", &chronosphere.BucketArgs{
Name: pulumi.String("Platform"),
})
if err != nil {
return err
}
_, err = chronosphere.NewRollupRule(ctx, "rollupRule", &chronosphere.RollupRuleArgs{
Name: pulumi.String("RollupRule"),
Slug: pulumi.String("rollup-rule"),
BucketId: bucket.ID(),
Filter: pulumi.String("__name__:metric_name"),
Aggregation: pulumi.String("SUM"),
DropRaw: pulumi.Bool(true),
GroupBies: pulumi.StringArray{
pulumi.String("service"),
},
MetricType: pulumi.String("COUNTER"),
MetricTypeTag: pulumi.Bool(false),
NewMetric: pulumi.String("new_metric_name"),
Permissive: pulumi.Bool(true),
StoragePolicies: &chronosphere.RollupRuleStoragePoliciesArgs{
Resolution: pulumi.String("30s"),
Retention: pulumi.String("120h"),
},
Mode: pulumi.String("PREVIEW"),
})
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.Bucket;
import com.pulumi.chronosphere.BucketArgs;
import com.pulumi.chronosphere.RollupRule;
import com.pulumi.chronosphere.RollupRuleArgs;
import com.pulumi.chronosphere.inputs.RollupRuleStoragePoliciesArgs;
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 bucket = new Bucket("bucket", BucketArgs.builder()
.name("Platform")
.build());
var rollupRule = new RollupRule("rollupRule", RollupRuleArgs.builder()
.name("RollupRule")
.slug("rollup-rule")
.bucketId(bucket.id())
.filter("__name__:metric_name")
.aggregation("SUM")
.dropRaw(true)
.groupBies("service")
.metricType("COUNTER")
.metricTypeTag(false)
.newMetric("new_metric_name")
.permissive(true)
.storagePolicies(RollupRuleStoragePoliciesArgs.builder()
.resolution("30s")
.retention("120h")
.build())
.mode("PREVIEW")
.build());
}
}
import * as pulumi from "@pulumi/pulumi";
import * as chronosphere from "@pulumi-chronosphere/pulumi-chronosphere";
const bucket = new chronosphere.Bucket("bucket", {name: "Platform"});
const rollupRule = new chronosphere.RollupRule("rollupRule", {
name: "RollupRule",
slug: "rollup-rule",
bucketId: bucket.id,
filter: "__name__:metric_name",
aggregation: "SUM",
dropRaw: true,
groupBies: ["service"],
metricType: "COUNTER",
metricTypeTag: false,
newMetric: "new_metric_name",
permissive: true,
storagePolicies: {
resolution: "30s",
retention: "120h",
},
mode: "PREVIEW",
});
import pulumi
import pulumi_chronosphere as chronosphere
bucket = chronosphere.Bucket("bucket", name="Platform")
rollup_rule = chronosphere.RollupRule("rollupRule",
name="RollupRule",
slug="rollup-rule",
bucket_id=bucket.id,
filter="__name__:metric_name",
aggregation="SUM",
drop_raw=True,
group_bies=["service"],
metric_type="COUNTER",
metric_type_tag=False,
new_metric="new_metric_name",
permissive=True,
storage_policies=chronosphere.RollupRuleStoragePoliciesArgs(
resolution="30s",
retention="120h",
),
mode="PREVIEW")
resources:
bucket:
type: chronosphere:Bucket
properties:
name: Platform
rollupRule:
type: chronosphere:RollupRule
properties:
name: RollupRule
slug: rollup-rule
bucketId: ${bucket.id}
filter: __name__:metric_name
aggregation: SUM
dropRaw: true
groupBies:
- service
metricType: COUNTER
metricTypeTag: false
newMetric: new_metric_name
permissive: true
storagePolicies:
resolution: 30s
retention: 120h
mode: PREVIEW
Create RollupRule Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new RollupRule(name: string, args: RollupRuleArgs, opts?: CustomResourceOptions);@overload
def RollupRule(resource_name: str,
args: RollupRuleArgs,
opts: Optional[ResourceOptions] = None)
@overload
def RollupRule(resource_name: str,
opts: Optional[ResourceOptions] = None,
metric_type: Optional[str] = None,
filter: Optional[str] = None,
slug: Optional[str] = None,
name: Optional[str] = None,
metric_type_tag: Optional[bool] = None,
graphite_label_policy: Optional[RollupRuleGraphiteLabelPolicyArgs] = None,
group_bies: Optional[Sequence[str]] = None,
interval: Optional[str] = None,
bucket_id: Optional[str] = None,
mode: Optional[str] = None,
aggregation: Optional[str] = None,
exclude_bies: Optional[Sequence[str]] = None,
new_metric: Optional[str] = None,
permissive: Optional[bool] = None,
skip_on_conflict: Optional[bool] = None,
drop_raw: Optional[bool] = None,
storage_policies: Optional[RollupRuleStoragePoliciesArgs] = None)func NewRollupRule(ctx *Context, name string, args RollupRuleArgs, opts ...ResourceOption) (*RollupRule, error)public RollupRule(string name, RollupRuleArgs args, CustomResourceOptions? opts = null)
public RollupRule(String name, RollupRuleArgs args)
public RollupRule(String name, RollupRuleArgs args, CustomResourceOptions options)
type: chronosphere:RollupRule
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
resource "chronosphere_rolluprule" "name" {
# resource properties
}Parameters
- name string
- The unique name of the resource.
- args RollupRuleArgs
- 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 RollupRuleArgs
- 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 RollupRuleArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args RollupRuleArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args RollupRuleArgs
- 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 rollupRuleResource = new Pulumi.RollupRule("rollupRuleResource", new()
{
MetricType = "string",
Filter = "string",
Slug = "string",
Name = "string",
MetricTypeTag = false,
GraphiteLabelPolicy = new Pulumi.Inputs.RollupRuleGraphiteLabelPolicyArgs
{
Replaces = new[]
{
new Pulumi.Inputs.RollupRuleGraphiteLabelPolicyReplaceArgs
{
Name = "string",
NewValue = "string",
},
},
},
GroupBies = new[]
{
"string",
},
Interval = "string",
BucketId = "string",
Mode = "string",
Aggregation = "string",
ExcludeBies = new[]
{
"string",
},
NewMetric = "string",
SkipOnConflict = false,
DropRaw = false,
});
example, err := chronosphere.NewRollupRule(ctx, "rollupRuleResource", &chronosphere.RollupRuleArgs{
MetricType: pulumi.String("string"),
Filter: pulumi.String("string"),
Slug: pulumi.String("string"),
Name: pulumi.String("string"),
MetricTypeTag: pulumi.Bool(false),
GraphiteLabelPolicy: &chronosphere.RollupRuleGraphiteLabelPolicyArgs{
Replaces: chronosphere.RollupRuleGraphiteLabelPolicyReplaceArray{
&chronosphere.RollupRuleGraphiteLabelPolicyReplaceArgs{
Name: pulumi.String("string"),
NewValue: pulumi.String("string"),
},
},
},
GroupBies: pulumi.StringArray{
pulumi.String("string"),
},
Interval: pulumi.String("string"),
BucketId: pulumi.String("string"),
Mode: pulumi.String("string"),
Aggregation: pulumi.String("string"),
ExcludeBies: pulumi.StringArray{
pulumi.String("string"),
},
NewMetric: pulumi.String("string"),
SkipOnConflict: pulumi.Bool(false),
DropRaw: pulumi.Bool(false),
})
resource "chronosphere_rolluprule" "rollupRuleResource" {
metric_type = "string"
filter = "string"
slug = "string"
name = "string"
metric_type_tag = false
graphite_label_policy = {
replaces = [{
"name" = "string"
"newValue" = "string"
}]
}
group_bies = ["string"]
interval = "string"
bucket_id = "string"
mode = "string"
aggregation = "string"
exclude_bies = ["string"]
new_metric = "string"
skip_on_conflict = false
drop_raw = false
}
var rollupRuleResource = new RollupRule("rollupRuleResource", RollupRuleArgs.builder()
.metricType("string")
.filter("string")
.slug("string")
.name("string")
.metricTypeTag(false)
.graphiteLabelPolicy(RollupRuleGraphiteLabelPolicyArgs.builder()
.replaces(RollupRuleGraphiteLabelPolicyReplaceArgs.builder()
.name("string")
.newValue("string")
.build())
.build())
.groupBies("string")
.interval("string")
.bucketId("string")
.mode("string")
.aggregation("string")
.excludeBies("string")
.newMetric("string")
.skipOnConflict(false)
.dropRaw(false)
.build());
rollup_rule_resource = chronosphere.RollupRule("rollupRuleResource",
metric_type="string",
filter="string",
slug="string",
name="string",
metric_type_tag=False,
graphite_label_policy={
"replaces": [{
"name": "string",
"new_value": "string",
}],
},
group_bies=["string"],
interval="string",
bucket_id="string",
mode="string",
aggregation="string",
exclude_bies=["string"],
new_metric="string",
skip_on_conflict=False,
drop_raw=False)
const rollupRuleResource = new chronosphere.RollupRule("rollupRuleResource", {
metricType: "string",
filter: "string",
slug: "string",
name: "string",
metricTypeTag: false,
graphiteLabelPolicy: {
replaces: [{
name: "string",
newValue: "string",
}],
},
groupBies: ["string"],
interval: "string",
bucketId: "string",
mode: "string",
aggregation: "string",
excludeBies: ["string"],
newMetric: "string",
skipOnConflict: false,
dropRaw: false,
});
type: chronosphere:RollupRule
properties:
aggregation: string
bucketId: string
dropRaw: false
excludeBies:
- string
filter: string
graphiteLabelPolicy:
replaces:
- name: string
newValue: string
groupBies:
- string
interval: string
metricType: string
metricTypeTag: false
mode: string
name: string
newMetric: string
skipOnConflict: false
slug: string
RollupRule 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 RollupRule resource accepts the following input properties:
- Filter string
- Space-delimited list of
label:value_globmatchers that select the input series. Supports glob patterns and special filters like__name__,__metric_type__, and__metric_source__. - Metric
Type string - Type of the source metric being rolled up (e.g.
gauge,counter,histogram). - Name string
- Positional Graphite label to replace (e.g.
__g1__). - Slug string
- Stable identifier for the rollup rule. Immutable after creation. Unlike most resources, the slug is required and is not auto-generated from
name. - Aggregation string
- Aggregation function applied across grouped series (e.g.
sum,min,max,last). - Bucket
Id string - ID of the bucket the rollup rule belongs to.
- Drop
Raw bool - If
true, automatically generates a drop rule that removes the raw input metrics matching this rollup. Defaults tofalse. - Exclude
Bies List<string> - Labels to drop when aggregating; all other labels are preserved. Mutually exclusive with
group_by. - Graphite
Label Chronosphere.Policy Pulumi. Inputs. Rollup Rule Graphite Label Policy - Graphite-specific label policy applied to positional labels (
__gX__) on the output metric. - Group
Bies List<string> - Labels to preserve when aggregating; all other labels are dropped. Mutually exclusive with
exclude_by. - Interval string
- Interval between aggregated data points produced by the rollup. Defaults to a server-side value when unset. Conflicts with
storage_policies. - Metric
Type boolTag - Whether to add a
__rollup_type__label to the output metric identifying the rollup type. Defaults tofalse. - Mode string
- Rollup mode controlling whether the rule is active or in a preview state.
- New
Metric string - Name of the output metric produced by the rollup. Supports the
{{.MetricName}}template variable to reference the source metric name. Optional for Graphite rollup rules. - Permissive bool
- Deprecated: no longer supported.
- Skip
On boolConflict - If
true, this rule is skipped when another rollup rule already produces a metric with the same output name. Defaults tofalse. - Storage
Policies Chronosphere.Pulumi. Inputs. Rollup Rule Storage Policies - Storage policy controlling resolution and retention of rolled-up metrics. Deprecated: use
intervalinstead.
- Filter string
- Space-delimited list of
label:value_globmatchers that select the input series. Supports glob patterns and special filters like__name__,__metric_type__, and__metric_source__. - Metric
Type string - Type of the source metric being rolled up (e.g.
gauge,counter,histogram). - Name string
- Positional Graphite label to replace (e.g.
__g1__). - Slug string
- Stable identifier for the rollup rule. Immutable after creation. Unlike most resources, the slug is required and is not auto-generated from
name. - Aggregation string
- Aggregation function applied across grouped series (e.g.
sum,min,max,last). - Bucket
Id string - ID of the bucket the rollup rule belongs to.
- Drop
Raw bool - If
true, automatically generates a drop rule that removes the raw input metrics matching this rollup. Defaults tofalse. - Exclude
Bies []string - Labels to drop when aggregating; all other labels are preserved. Mutually exclusive with
group_by. - Graphite
Label RollupPolicy Rule Graphite Label Policy Args - Graphite-specific label policy applied to positional labels (
__gX__) on the output metric. - Group
Bies []string - Labels to preserve when aggregating; all other labels are dropped. Mutually exclusive with
exclude_by. - Interval string
- Interval between aggregated data points produced by the rollup. Defaults to a server-side value when unset. Conflicts with
storage_policies. - Metric
Type boolTag - Whether to add a
__rollup_type__label to the output metric identifying the rollup type. Defaults tofalse. - Mode string
- Rollup mode controlling whether the rule is active or in a preview state.
- New
Metric string - Name of the output metric produced by the rollup. Supports the
{{.MetricName}}template variable to reference the source metric name. Optional for Graphite rollup rules. - Permissive bool
- Deprecated: no longer supported.
- Skip
On boolConflict - If
true, this rule is skipped when another rollup rule already produces a metric with the same output name. Defaults tofalse. - Storage
Policies RollupRule Storage Policies Args - Storage policy controlling resolution and retention of rolled-up metrics. Deprecated: use
intervalinstead.
- filter string
- Space-delimited list of
label:value_globmatchers that select the input series. Supports glob patterns and special filters like__name__,__metric_type__, and__metric_source__. - metric_
type string - Type of the source metric being rolled up (e.g.
gauge,counter,histogram). - name string
- Positional Graphite label to replace (e.g.
__g1__). - slug string
- Stable identifier for the rollup rule. Immutable after creation. Unlike most resources, the slug is required and is not auto-generated from
name. - aggregation string
- Aggregation function applied across grouped series (e.g.
sum,min,max,last). - bucket_
id string - ID of the bucket the rollup rule belongs to.
- drop_
raw bool - If
true, automatically generates a drop rule that removes the raw input metrics matching this rollup. Defaults tofalse. - exclude_
bies list(string) - Labels to drop when aggregating; all other labels are preserved. Mutually exclusive with
group_by. - graphite_
label_ objectpolicy - Graphite-specific label policy applied to positional labels (
__gX__) on the output metric. - group_
bies list(string) - Labels to preserve when aggregating; all other labels are dropped. Mutually exclusive with
exclude_by. - interval string
- Interval between aggregated data points produced by the rollup. Defaults to a server-side value when unset. Conflicts with
storage_policies. - metric_
type_ booltag - Whether to add a
__rollup_type__label to the output metric identifying the rollup type. Defaults tofalse. - mode string
- Rollup mode controlling whether the rule is active or in a preview state.
- new_
metric string - Name of the output metric produced by the rollup. Supports the
{{.MetricName}}template variable to reference the source metric name. Optional for Graphite rollup rules. - permissive bool
- Deprecated: no longer supported.
- skip_
on_ boolconflict - If
true, this rule is skipped when another rollup rule already produces a metric with the same output name. Defaults tofalse. - storage_
policies object - Storage policy controlling resolution and retention of rolled-up metrics. Deprecated: use
intervalinstead.
- filter String
- Space-delimited list of
label:value_globmatchers that select the input series. Supports glob patterns and special filters like__name__,__metric_type__, and__metric_source__. - metric
Type String - Type of the source metric being rolled up (e.g.
gauge,counter,histogram). - name String
- Positional Graphite label to replace (e.g.
__g1__). - slug String
- Stable identifier for the rollup rule. Immutable after creation. Unlike most resources, the slug is required and is not auto-generated from
name. - aggregation String
- Aggregation function applied across grouped series (e.g.
sum,min,max,last). - bucket
Id String - ID of the bucket the rollup rule belongs to.
- drop
Raw Boolean - If
true, automatically generates a drop rule that removes the raw input metrics matching this rollup. Defaults tofalse. - exclude
Bies List<String> - Labels to drop when aggregating; all other labels are preserved. Mutually exclusive with
group_by. - graphite
Label RollupPolicy Rule Graphite Label Policy - Graphite-specific label policy applied to positional labels (
__gX__) on the output metric. - group
Bies List<String> - Labels to preserve when aggregating; all other labels are dropped. Mutually exclusive with
exclude_by. - interval String
- Interval between aggregated data points produced by the rollup. Defaults to a server-side value when unset. Conflicts with
storage_policies. - metric
Type BooleanTag - Whether to add a
__rollup_type__label to the output metric identifying the rollup type. Defaults tofalse. - mode String
- Rollup mode controlling whether the rule is active or in a preview state.
- new
Metric String - Name of the output metric produced by the rollup. Supports the
{{.MetricName}}template variable to reference the source metric name. Optional for Graphite rollup rules. - permissive Boolean
- Deprecated: no longer supported.
- skip
On BooleanConflict - If
true, this rule is skipped when another rollup rule already produces a metric with the same output name. Defaults tofalse. - storage
Policies RollupRule Storage Policies - Storage policy controlling resolution and retention of rolled-up metrics. Deprecated: use
intervalinstead.
- filter string
- Space-delimited list of
label:value_globmatchers that select the input series. Supports glob patterns and special filters like__name__,__metric_type__, and__metric_source__. - metric
Type string - Type of the source metric being rolled up (e.g.
gauge,counter,histogram). - name string
- Positional Graphite label to replace (e.g.
__g1__). - slug string
- Stable identifier for the rollup rule. Immutable after creation. Unlike most resources, the slug is required and is not auto-generated from
name. - aggregation string
- Aggregation function applied across grouped series (e.g.
sum,min,max,last). - bucket
Id string - ID of the bucket the rollup rule belongs to.
- drop
Raw boolean - If
true, automatically generates a drop rule that removes the raw input metrics matching this rollup. Defaults tofalse. - exclude
Bies string[] - Labels to drop when aggregating; all other labels are preserved. Mutually exclusive with
group_by. - graphite
Label RollupPolicy Rule Graphite Label Policy - Graphite-specific label policy applied to positional labels (
__gX__) on the output metric. - group
Bies string[] - Labels to preserve when aggregating; all other labels are dropped. Mutually exclusive with
exclude_by. - interval string
- Interval between aggregated data points produced by the rollup. Defaults to a server-side value when unset. Conflicts with
storage_policies. - metric
Type booleanTag - Whether to add a
__rollup_type__label to the output metric identifying the rollup type. Defaults tofalse. - mode string
- Rollup mode controlling whether the rule is active or in a preview state.
- new
Metric string - Name of the output metric produced by the rollup. Supports the
{{.MetricName}}template variable to reference the source metric name. Optional for Graphite rollup rules. - permissive boolean
- Deprecated: no longer supported.
- skip
On booleanConflict - If
true, this rule is skipped when another rollup rule already produces a metric with the same output name. Defaults tofalse. - storage
Policies RollupRule Storage Policies - Storage policy controlling resolution and retention of rolled-up metrics. Deprecated: use
intervalinstead.
- filter str
- Space-delimited list of
label:value_globmatchers that select the input series. Supports glob patterns and special filters like__name__,__metric_type__, and__metric_source__. - metric_
type str - Type of the source metric being rolled up (e.g.
gauge,counter,histogram). - name str
- Positional Graphite label to replace (e.g.
__g1__). - slug str
- Stable identifier for the rollup rule. Immutable after creation. Unlike most resources, the slug is required and is not auto-generated from
name. - aggregation str
- Aggregation function applied across grouped series (e.g.
sum,min,max,last). - bucket_
id str - ID of the bucket the rollup rule belongs to.
- drop_
raw bool - If
true, automatically generates a drop rule that removes the raw input metrics matching this rollup. Defaults tofalse. - exclude_
bies Sequence[str] - Labels to drop when aggregating; all other labels are preserved. Mutually exclusive with
group_by. - graphite_
label_ Rolluppolicy Rule Graphite Label Policy Args - Graphite-specific label policy applied to positional labels (
__gX__) on the output metric. - group_
bies Sequence[str] - Labels to preserve when aggregating; all other labels are dropped. Mutually exclusive with
exclude_by. - interval str
- Interval between aggregated data points produced by the rollup. Defaults to a server-side value when unset. Conflicts with
storage_policies. - metric_
type_ booltag - Whether to add a
__rollup_type__label to the output metric identifying the rollup type. Defaults tofalse. - mode str
- Rollup mode controlling whether the rule is active or in a preview state.
- new_
metric str - Name of the output metric produced by the rollup. Supports the
{{.MetricName}}template variable to reference the source metric name. Optional for Graphite rollup rules. - permissive bool
- Deprecated: no longer supported.
- skip_
on_ boolconflict - If
true, this rule is skipped when another rollup rule already produces a metric with the same output name. Defaults tofalse. - storage_
policies RollupRule Storage Policies Args - Storage policy controlling resolution and retention of rolled-up metrics. Deprecated: use
intervalinstead.
- filter String
- Space-delimited list of
label:value_globmatchers that select the input series. Supports glob patterns and special filters like__name__,__metric_type__, and__metric_source__. - metric
Type String - Type of the source metric being rolled up (e.g.
gauge,counter,histogram). - name String
- Positional Graphite label to replace (e.g.
__g1__). - slug String
- Stable identifier for the rollup rule. Immutable after creation. Unlike most resources, the slug is required and is not auto-generated from
name. - aggregation String
- Aggregation function applied across grouped series (e.g.
sum,min,max,last). - bucket
Id String - ID of the bucket the rollup rule belongs to.
- drop
Raw Boolean - If
true, automatically generates a drop rule that removes the raw input metrics matching this rollup. Defaults tofalse. - exclude
Bies List<String> - Labels to drop when aggregating; all other labels are preserved. Mutually exclusive with
group_by. - graphite
Label Property MapPolicy - Graphite-specific label policy applied to positional labels (
__gX__) on the output metric. - group
Bies List<String> - Labels to preserve when aggregating; all other labels are dropped. Mutually exclusive with
exclude_by. - interval String
- Interval between aggregated data points produced by the rollup. Defaults to a server-side value when unset. Conflicts with
storage_policies. - metric
Type BooleanTag - Whether to add a
__rollup_type__label to the output metric identifying the rollup type. Defaults tofalse. - mode String
- Rollup mode controlling whether the rule is active or in a preview state.
- new
Metric String - Name of the output metric produced by the rollup. Supports the
{{.MetricName}}template variable to reference the source metric name. Optional for Graphite rollup rules. - permissive Boolean
- Deprecated: no longer supported.
- skip
On BooleanConflict - If
true, this rule is skipped when another rollup rule already produces a metric with the same output name. Defaults tofalse. - storage
Policies Property Map - Storage policy controlling resolution and retention of rolled-up metrics. Deprecated: use
intervalinstead.
Outputs
All input properties are implicitly available as output properties. Additionally, the RollupRule 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 RollupRule Resource
Get an existing RollupRule 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?: RollupRuleState, opts?: CustomResourceOptions): RollupRule@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
aggregation: Optional[str] = None,
bucket_id: Optional[str] = None,
drop_raw: Optional[bool] = None,
exclude_bies: Optional[Sequence[str]] = None,
filter: Optional[str] = None,
graphite_label_policy: Optional[RollupRuleGraphiteLabelPolicyArgs] = None,
group_bies: Optional[Sequence[str]] = None,
interval: Optional[str] = None,
metric_type: Optional[str] = None,
metric_type_tag: Optional[bool] = None,
mode: Optional[str] = None,
name: Optional[str] = None,
new_metric: Optional[str] = None,
permissive: Optional[bool] = None,
skip_on_conflict: Optional[bool] = None,
slug: Optional[str] = None,
storage_policies: Optional[RollupRuleStoragePoliciesArgs] = None) -> RollupRulefunc GetRollupRule(ctx *Context, name string, id IDInput, state *RollupRuleState, opts ...ResourceOption) (*RollupRule, error)public static RollupRule Get(string name, Input<string> id, RollupRuleState? state, CustomResourceOptions? opts = null)public static RollupRule get(String name, Output<String> id, RollupRuleState state, CustomResourceOptions options)resources: _: type: chronosphere:RollupRule get: id: ${id}import {
to = chronosphere_rolluprule.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.
- Aggregation string
- Aggregation function applied across grouped series (e.g.
sum,min,max,last). - Bucket
Id string - ID of the bucket the rollup rule belongs to.
- Drop
Raw bool - If
true, automatically generates a drop rule that removes the raw input metrics matching this rollup. Defaults tofalse. - Exclude
Bies List<string> - Labels to drop when aggregating; all other labels are preserved. Mutually exclusive with
group_by. - Filter string
- Space-delimited list of
label:value_globmatchers that select the input series. Supports glob patterns and special filters like__name__,__metric_type__, and__metric_source__. - Graphite
Label Chronosphere.Policy Pulumi. Inputs. Rollup Rule Graphite Label Policy - Graphite-specific label policy applied to positional labels (
__gX__) on the output metric. - Group
Bies List<string> - Labels to preserve when aggregating; all other labels are dropped. Mutually exclusive with
exclude_by. - Interval string
- Interval between aggregated data points produced by the rollup. Defaults to a server-side value when unset. Conflicts with
storage_policies. - Metric
Type string - Type of the source metric being rolled up (e.g.
gauge,counter,histogram). - Metric
Type boolTag - Whether to add a
__rollup_type__label to the output metric identifying the rollup type. Defaults tofalse. - Mode string
- Rollup mode controlling whether the rule is active or in a preview state.
- Name string
- Positional Graphite label to replace (e.g.
__g1__). - New
Metric string - Name of the output metric produced by the rollup. Supports the
{{.MetricName}}template variable to reference the source metric name. Optional for Graphite rollup rules. - Permissive bool
- Deprecated: no longer supported.
- Skip
On boolConflict - If
true, this rule is skipped when another rollup rule already produces a metric with the same output name. Defaults tofalse. - Slug string
- Stable identifier for the rollup rule. Immutable after creation. Unlike most resources, the slug is required and is not auto-generated from
name. - Storage
Policies Chronosphere.Pulumi. Inputs. Rollup Rule Storage Policies - Storage policy controlling resolution and retention of rolled-up metrics. Deprecated: use
intervalinstead.
- Aggregation string
- Aggregation function applied across grouped series (e.g.
sum,min,max,last). - Bucket
Id string - ID of the bucket the rollup rule belongs to.
- Drop
Raw bool - If
true, automatically generates a drop rule that removes the raw input metrics matching this rollup. Defaults tofalse. - Exclude
Bies []string - Labels to drop when aggregating; all other labels are preserved. Mutually exclusive with
group_by. - Filter string
- Space-delimited list of
label:value_globmatchers that select the input series. Supports glob patterns and special filters like__name__,__metric_type__, and__metric_source__. - Graphite
Label RollupPolicy Rule Graphite Label Policy Args - Graphite-specific label policy applied to positional labels (
__gX__) on the output metric. - Group
Bies []string - Labels to preserve when aggregating; all other labels are dropped. Mutually exclusive with
exclude_by. - Interval string
- Interval between aggregated data points produced by the rollup. Defaults to a server-side value when unset. Conflicts with
storage_policies. - Metric
Type string - Type of the source metric being rolled up (e.g.
gauge,counter,histogram). - Metric
Type boolTag - Whether to add a
__rollup_type__label to the output metric identifying the rollup type. Defaults tofalse. - Mode string
- Rollup mode controlling whether the rule is active or in a preview state.
- Name string
- Positional Graphite label to replace (e.g.
__g1__). - New
Metric string - Name of the output metric produced by the rollup. Supports the
{{.MetricName}}template variable to reference the source metric name. Optional for Graphite rollup rules. - Permissive bool
- Deprecated: no longer supported.
- Skip
On boolConflict - If
true, this rule is skipped when another rollup rule already produces a metric with the same output name. Defaults tofalse. - Slug string
- Stable identifier for the rollup rule. Immutable after creation. Unlike most resources, the slug is required and is not auto-generated from
name. - Storage
Policies RollupRule Storage Policies Args - Storage policy controlling resolution and retention of rolled-up metrics. Deprecated: use
intervalinstead.
- aggregation string
- Aggregation function applied across grouped series (e.g.
sum,min,max,last). - bucket_
id string - ID of the bucket the rollup rule belongs to.
- drop_
raw bool - If
true, automatically generates a drop rule that removes the raw input metrics matching this rollup. Defaults tofalse. - exclude_
bies list(string) - Labels to drop when aggregating; all other labels are preserved. Mutually exclusive with
group_by. - filter string
- Space-delimited list of
label:value_globmatchers that select the input series. Supports glob patterns and special filters like__name__,__metric_type__, and__metric_source__. - graphite_
label_ objectpolicy - Graphite-specific label policy applied to positional labels (
__gX__) on the output metric. - group_
bies list(string) - Labels to preserve when aggregating; all other labels are dropped. Mutually exclusive with
exclude_by. - interval string
- Interval between aggregated data points produced by the rollup. Defaults to a server-side value when unset. Conflicts with
storage_policies. - metric_
type string - Type of the source metric being rolled up (e.g.
gauge,counter,histogram). - metric_
type_ booltag - Whether to add a
__rollup_type__label to the output metric identifying the rollup type. Defaults tofalse. - mode string
- Rollup mode controlling whether the rule is active or in a preview state.
- name string
- Positional Graphite label to replace (e.g.
__g1__). - new_
metric string - Name of the output metric produced by the rollup. Supports the
{{.MetricName}}template variable to reference the source metric name. Optional for Graphite rollup rules. - permissive bool
- Deprecated: no longer supported.
- skip_
on_ boolconflict - If
true, this rule is skipped when another rollup rule already produces a metric with the same output name. Defaults tofalse. - slug string
- Stable identifier for the rollup rule. Immutable after creation. Unlike most resources, the slug is required and is not auto-generated from
name. - storage_
policies object - Storage policy controlling resolution and retention of rolled-up metrics. Deprecated: use
intervalinstead.
- aggregation String
- Aggregation function applied across grouped series (e.g.
sum,min,max,last). - bucket
Id String - ID of the bucket the rollup rule belongs to.
- drop
Raw Boolean - If
true, automatically generates a drop rule that removes the raw input metrics matching this rollup. Defaults tofalse. - exclude
Bies List<String> - Labels to drop when aggregating; all other labels are preserved. Mutually exclusive with
group_by. - filter String
- Space-delimited list of
label:value_globmatchers that select the input series. Supports glob patterns and special filters like__name__,__metric_type__, and__metric_source__. - graphite
Label RollupPolicy Rule Graphite Label Policy - Graphite-specific label policy applied to positional labels (
__gX__) on the output metric. - group
Bies List<String> - Labels to preserve when aggregating; all other labels are dropped. Mutually exclusive with
exclude_by. - interval String
- Interval between aggregated data points produced by the rollup. Defaults to a server-side value when unset. Conflicts with
storage_policies. - metric
Type String - Type of the source metric being rolled up (e.g.
gauge,counter,histogram). - metric
Type BooleanTag - Whether to add a
__rollup_type__label to the output metric identifying the rollup type. Defaults tofalse. - mode String
- Rollup mode controlling whether the rule is active or in a preview state.
- name String
- Positional Graphite label to replace (e.g.
__g1__). - new
Metric String - Name of the output metric produced by the rollup. Supports the
{{.MetricName}}template variable to reference the source metric name. Optional for Graphite rollup rules. - permissive Boolean
- Deprecated: no longer supported.
- skip
On BooleanConflict - If
true, this rule is skipped when another rollup rule already produces a metric with the same output name. Defaults tofalse. - slug String
- Stable identifier for the rollup rule. Immutable after creation. Unlike most resources, the slug is required and is not auto-generated from
name. - storage
Policies RollupRule Storage Policies - Storage policy controlling resolution and retention of rolled-up metrics. Deprecated: use
intervalinstead.
- aggregation string
- Aggregation function applied across grouped series (e.g.
sum,min,max,last). - bucket
Id string - ID of the bucket the rollup rule belongs to.
- drop
Raw boolean - If
true, automatically generates a drop rule that removes the raw input metrics matching this rollup. Defaults tofalse. - exclude
Bies string[] - Labels to drop when aggregating; all other labels are preserved. Mutually exclusive with
group_by. - filter string
- Space-delimited list of
label:value_globmatchers that select the input series. Supports glob patterns and special filters like__name__,__metric_type__, and__metric_source__. - graphite
Label RollupPolicy Rule Graphite Label Policy - Graphite-specific label policy applied to positional labels (
__gX__) on the output metric. - group
Bies string[] - Labels to preserve when aggregating; all other labels are dropped. Mutually exclusive with
exclude_by. - interval string
- Interval between aggregated data points produced by the rollup. Defaults to a server-side value when unset. Conflicts with
storage_policies. - metric
Type string - Type of the source metric being rolled up (e.g.
gauge,counter,histogram). - metric
Type booleanTag - Whether to add a
__rollup_type__label to the output metric identifying the rollup type. Defaults tofalse. - mode string
- Rollup mode controlling whether the rule is active or in a preview state.
- name string
- Positional Graphite label to replace (e.g.
__g1__). - new
Metric string - Name of the output metric produced by the rollup. Supports the
{{.MetricName}}template variable to reference the source metric name. Optional for Graphite rollup rules. - permissive boolean
- Deprecated: no longer supported.
- skip
On booleanConflict - If
true, this rule is skipped when another rollup rule already produces a metric with the same output name. Defaults tofalse. - slug string
- Stable identifier for the rollup rule. Immutable after creation. Unlike most resources, the slug is required and is not auto-generated from
name. - storage
Policies RollupRule Storage Policies - Storage policy controlling resolution and retention of rolled-up metrics. Deprecated: use
intervalinstead.
- aggregation str
- Aggregation function applied across grouped series (e.g.
sum,min,max,last). - bucket_
id str - ID of the bucket the rollup rule belongs to.
- drop_
raw bool - If
true, automatically generates a drop rule that removes the raw input metrics matching this rollup. Defaults tofalse. - exclude_
bies Sequence[str] - Labels to drop when aggregating; all other labels are preserved. Mutually exclusive with
group_by. - filter str
- Space-delimited list of
label:value_globmatchers that select the input series. Supports glob patterns and special filters like__name__,__metric_type__, and__metric_source__. - graphite_
label_ Rolluppolicy Rule Graphite Label Policy Args - Graphite-specific label policy applied to positional labels (
__gX__) on the output metric. - group_
bies Sequence[str] - Labels to preserve when aggregating; all other labels are dropped. Mutually exclusive with
exclude_by. - interval str
- Interval between aggregated data points produced by the rollup. Defaults to a server-side value when unset. Conflicts with
storage_policies. - metric_
type str - Type of the source metric being rolled up (e.g.
gauge,counter,histogram). - metric_
type_ booltag - Whether to add a
__rollup_type__label to the output metric identifying the rollup type. Defaults tofalse. - mode str
- Rollup mode controlling whether the rule is active or in a preview state.
- name str
- Positional Graphite label to replace (e.g.
__g1__). - new_
metric str - Name of the output metric produced by the rollup. Supports the
{{.MetricName}}template variable to reference the source metric name. Optional for Graphite rollup rules. - permissive bool
- Deprecated: no longer supported.
- skip_
on_ boolconflict - If
true, this rule is skipped when another rollup rule already produces a metric with the same output name. Defaults tofalse. - slug str
- Stable identifier for the rollup rule. Immutable after creation. Unlike most resources, the slug is required and is not auto-generated from
name. - storage_
policies RollupRule Storage Policies Args - Storage policy controlling resolution and retention of rolled-up metrics. Deprecated: use
intervalinstead.
- aggregation String
- Aggregation function applied across grouped series (e.g.
sum,min,max,last). - bucket
Id String - ID of the bucket the rollup rule belongs to.
- drop
Raw Boolean - If
true, automatically generates a drop rule that removes the raw input metrics matching this rollup. Defaults tofalse. - exclude
Bies List<String> - Labels to drop when aggregating; all other labels are preserved. Mutually exclusive with
group_by. - filter String
- Space-delimited list of
label:value_globmatchers that select the input series. Supports glob patterns and special filters like__name__,__metric_type__, and__metric_source__. - graphite
Label Property MapPolicy - Graphite-specific label policy applied to positional labels (
__gX__) on the output metric. - group
Bies List<String> - Labels to preserve when aggregating; all other labels are dropped. Mutually exclusive with
exclude_by. - interval String
- Interval between aggregated data points produced by the rollup. Defaults to a server-side value when unset. Conflicts with
storage_policies. - metric
Type String - Type of the source metric being rolled up (e.g.
gauge,counter,histogram). - metric
Type BooleanTag - Whether to add a
__rollup_type__label to the output metric identifying the rollup type. Defaults tofalse. - mode String
- Rollup mode controlling whether the rule is active or in a preview state.
- name String
- Positional Graphite label to replace (e.g.
__g1__). - new
Metric String - Name of the output metric produced by the rollup. Supports the
{{.MetricName}}template variable to reference the source metric name. Optional for Graphite rollup rules. - permissive Boolean
- Deprecated: no longer supported.
- skip
On BooleanConflict - If
true, this rule is skipped when another rollup rule already produces a metric with the same output name. Defaults tofalse. - slug String
- Stable identifier for the rollup rule. Immutable after creation. Unlike most resources, the slug is required and is not auto-generated from
name. - storage
Policies Property Map - Storage policy controlling resolution and retention of rolled-up metrics. Deprecated: use
intervalinstead.
Supporting Types
RollupRuleGraphiteLabelPolicy, RollupRuleGraphiteLabelPolicyArgs
- Replaces
List<Chronosphere.
Pulumi. Inputs. Rollup Rule Graphite Label Policy Replace> - List of positional Graphite label replacements applied to the output metric.
- Replaces
[]Rollup
Rule Graphite Label Policy Replace - List of positional Graphite label replacements applied to the output metric.
- replaces list(object)
- List of positional Graphite label replacements applied to the output metric.
- replaces
List<Rollup
Rule Graphite Label Policy Replace> - List of positional Graphite label replacements applied to the output metric.
- replaces
Rollup
Rule Graphite Label Policy Replace[] - List of positional Graphite label replacements applied to the output metric.
- replaces
Sequence[Rollup
Rule Graphite Label Policy Replace] - List of positional Graphite label replacements applied to the output metric.
- replaces List<Property Map>
- List of positional Graphite label replacements applied to the output metric.
RollupRuleGraphiteLabelPolicyReplace, RollupRuleGraphiteLabelPolicyReplaceArgs
RollupRuleStoragePolicies, RollupRuleStoragePoliciesArgs
- Resolution string
- Resolution at which rolled-up data points are stored.
- Retention string
- Retention duration for rolled-up data points.
- Resolution string
- Resolution at which rolled-up data points are stored.
- Retention string
- Retention duration for rolled-up data points.
- resolution string
- Resolution at which rolled-up data points are stored.
- retention string
- Retention duration for rolled-up data points.
- resolution String
- Resolution at which rolled-up data points are stored.
- retention String
- Retention duration for rolled-up data points.
- resolution string
- Resolution at which rolled-up data points are stored.
- retention string
- Retention duration for rolled-up data points.
- resolution str
- Resolution at which rolled-up data points are stored.
- retention str
- Retention duration for rolled-up data points.
- resolution String
- Resolution at which rolled-up data points are stored.
- retention String
- Retention duration for rolled-up data points.
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