1. Packages
  2. Packages
  3. Chronosphere
  4. API Docs
  5. RollupRule
Viewing docs for Chronosphere v0.9.16
published on Friday, Jun 5, 2026 by Chronosphere
Viewing docs for Chronosphere v0.9.16
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_glob matchers that select the input series. Supports glob patterns and special filters like __name__, __metric_type__, and __metric_source__.
    MetricType 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).
    BucketId string
    ID of the bucket the rollup rule belongs to.
    DropRaw bool
    If true, automatically generates a drop rule that removes the raw input metrics matching this rollup. Defaults to false.
    ExcludeBies List<string>
    Labels to drop when aggregating; all other labels are preserved. Mutually exclusive with group_by.
    GraphiteLabelPolicy Chronosphere.Pulumi.Inputs.RollupRuleGraphiteLabelPolicy
    Graphite-specific label policy applied to positional labels (__gX__) on the output metric.
    GroupBies 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.
    MetricTypeTag bool
    Whether to add a __rollup_type__ label to the output metric identifying the rollup type. Defaults to false.
    Mode string
    Rollup mode controlling whether the rule is active or in a preview state.
    NewMetric 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.

    Deprecated: permissive is no longer supported

    SkipOnConflict bool
    If true, this rule is skipped when another rollup rule already produces a metric with the same output name. Defaults to false.
    StoragePolicies Chronosphere.Pulumi.Inputs.RollupRuleStoragePolicies
    Storage policy controlling resolution and retention of rolled-up metrics. Deprecated: use interval instead.

    Deprecated: use interval instead

    Filter string
    Space-delimited list of label:value_glob matchers that select the input series. Supports glob patterns and special filters like __name__, __metric_type__, and __metric_source__.
    MetricType 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).
    BucketId string
    ID of the bucket the rollup rule belongs to.
    DropRaw bool
    If true, automatically generates a drop rule that removes the raw input metrics matching this rollup. Defaults to false.
    ExcludeBies []string
    Labels to drop when aggregating; all other labels are preserved. Mutually exclusive with group_by.
    GraphiteLabelPolicy RollupRuleGraphiteLabelPolicyArgs
    Graphite-specific label policy applied to positional labels (__gX__) on the output metric.
    GroupBies []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.
    MetricTypeTag bool
    Whether to add a __rollup_type__ label to the output metric identifying the rollup type. Defaults to false.
    Mode string
    Rollup mode controlling whether the rule is active or in a preview state.
    NewMetric 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.

    Deprecated: permissive is no longer supported

    SkipOnConflict bool
    If true, this rule is skipped when another rollup rule already produces a metric with the same output name. Defaults to false.
    StoragePolicies RollupRuleStoragePoliciesArgs
    Storage policy controlling resolution and retention of rolled-up metrics. Deprecated: use interval instead.

    Deprecated: use interval instead

    filter string
    Space-delimited list of label:value_glob matchers 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 to false.
    exclude_bies list(string)
    Labels to drop when aggregating; all other labels are preserved. Mutually exclusive with group_by.
    graphite_label_policy object
    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_tag bool
    Whether to add a __rollup_type__ label to the output metric identifying the rollup type. Defaults to false.
    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.

    Deprecated: permissive is no longer supported

    skip_on_conflict bool
    If true, this rule is skipped when another rollup rule already produces a metric with the same output name. Defaults to false.
    storage_policies object
    Storage policy controlling resolution and retention of rolled-up metrics. Deprecated: use interval instead.

    Deprecated: use interval instead

    filter String
    Space-delimited list of label:value_glob matchers that select the input series. Supports glob patterns and special filters like __name__, __metric_type__, and __metric_source__.
    metricType 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).
    bucketId String
    ID of the bucket the rollup rule belongs to.
    dropRaw Boolean
    If true, automatically generates a drop rule that removes the raw input metrics matching this rollup. Defaults to false.
    excludeBies List<String>
    Labels to drop when aggregating; all other labels are preserved. Mutually exclusive with group_by.
    graphiteLabelPolicy RollupRuleGraphiteLabelPolicy
    Graphite-specific label policy applied to positional labels (__gX__) on the output metric.
    groupBies 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.
    metricTypeTag Boolean
    Whether to add a __rollup_type__ label to the output metric identifying the rollup type. Defaults to false.
    mode String
    Rollup mode controlling whether the rule is active or in a preview state.
    newMetric 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.

    Deprecated: permissive is no longer supported

    skipOnConflict Boolean
    If true, this rule is skipped when another rollup rule already produces a metric with the same output name. Defaults to false.
    storagePolicies RollupRuleStoragePolicies
    Storage policy controlling resolution and retention of rolled-up metrics. Deprecated: use interval instead.

    Deprecated: use interval instead

    filter string
    Space-delimited list of label:value_glob matchers that select the input series. Supports glob patterns and special filters like __name__, __metric_type__, and __metric_source__.
    metricType 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).
    bucketId string
    ID of the bucket the rollup rule belongs to.
    dropRaw boolean
    If true, automatically generates a drop rule that removes the raw input metrics matching this rollup. Defaults to false.
    excludeBies string[]
    Labels to drop when aggregating; all other labels are preserved. Mutually exclusive with group_by.
    graphiteLabelPolicy RollupRuleGraphiteLabelPolicy
    Graphite-specific label policy applied to positional labels (__gX__) on the output metric.
    groupBies 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.
    metricTypeTag boolean
    Whether to add a __rollup_type__ label to the output metric identifying the rollup type. Defaults to false.
    mode string
    Rollup mode controlling whether the rule is active or in a preview state.
    newMetric 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.

    Deprecated: permissive is no longer supported

    skipOnConflict boolean
    If true, this rule is skipped when another rollup rule already produces a metric with the same output name. Defaults to false.
    storagePolicies RollupRuleStoragePolicies
    Storage policy controlling resolution and retention of rolled-up metrics. Deprecated: use interval instead.

    Deprecated: use interval instead

    filter str
    Space-delimited list of label:value_glob matchers 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 to false.
    exclude_bies Sequence[str]
    Labels to drop when aggregating; all other labels are preserved. Mutually exclusive with group_by.
    graphite_label_policy RollupRuleGraphiteLabelPolicyArgs
    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_tag bool
    Whether to add a __rollup_type__ label to the output metric identifying the rollup type. Defaults to false.
    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.

    Deprecated: permissive is no longer supported

    skip_on_conflict bool
    If true, this rule is skipped when another rollup rule already produces a metric with the same output name. Defaults to false.
    storage_policies RollupRuleStoragePoliciesArgs
    Storage policy controlling resolution and retention of rolled-up metrics. Deprecated: use interval instead.

    Deprecated: use interval instead

    filter String
    Space-delimited list of label:value_glob matchers that select the input series. Supports glob patterns and special filters like __name__, __metric_type__, and __metric_source__.
    metricType 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).
    bucketId String
    ID of the bucket the rollup rule belongs to.
    dropRaw Boolean
    If true, automatically generates a drop rule that removes the raw input metrics matching this rollup. Defaults to false.
    excludeBies List<String>
    Labels to drop when aggregating; all other labels are preserved. Mutually exclusive with group_by.
    graphiteLabelPolicy Property Map
    Graphite-specific label policy applied to positional labels (__gX__) on the output metric.
    groupBies 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.
    metricTypeTag Boolean
    Whether to add a __rollup_type__ label to the output metric identifying the rollup type. Defaults to false.
    mode String
    Rollup mode controlling whether the rule is active or in a preview state.
    newMetric 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.

    Deprecated: permissive is no longer supported

    skipOnConflict Boolean
    If true, this rule is skipped when another rollup rule already produces a metric with the same output name. Defaults to false.
    storagePolicies Property Map
    Storage policy controlling resolution and retention of rolled-up metrics. Deprecated: use interval instead.

    Deprecated: use interval instead

    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) -> RollupRule
    func 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.
    The following state arguments are supported:
    Aggregation string
    Aggregation function applied across grouped series (e.g. sum, min, max, last).
    BucketId string
    ID of the bucket the rollup rule belongs to.
    DropRaw bool
    If true, automatically generates a drop rule that removes the raw input metrics matching this rollup. Defaults to false.
    ExcludeBies 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_glob matchers that select the input series. Supports glob patterns and special filters like __name__, __metric_type__, and __metric_source__.
    GraphiteLabelPolicy Chronosphere.Pulumi.Inputs.RollupRuleGraphiteLabelPolicy
    Graphite-specific label policy applied to positional labels (__gX__) on the output metric.
    GroupBies 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.
    MetricType string
    Type of the source metric being rolled up (e.g. gauge, counter, histogram).
    MetricTypeTag bool
    Whether to add a __rollup_type__ label to the output metric identifying the rollup type. Defaults to false.
    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__).
    NewMetric 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.

    Deprecated: permissive is no longer supported

    SkipOnConflict bool
    If true, this rule is skipped when another rollup rule already produces a metric with the same output name. Defaults to false.
    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.
    StoragePolicies Chronosphere.Pulumi.Inputs.RollupRuleStoragePolicies
    Storage policy controlling resolution and retention of rolled-up metrics. Deprecated: use interval instead.

    Deprecated: use interval instead

    Aggregation string
    Aggregation function applied across grouped series (e.g. sum, min, max, last).
    BucketId string
    ID of the bucket the rollup rule belongs to.
    DropRaw bool
    If true, automatically generates a drop rule that removes the raw input metrics matching this rollup. Defaults to false.
    ExcludeBies []string
    Labels to drop when aggregating; all other labels are preserved. Mutually exclusive with group_by.
    Filter string
    Space-delimited list of label:value_glob matchers that select the input series. Supports glob patterns and special filters like __name__, __metric_type__, and __metric_source__.
    GraphiteLabelPolicy RollupRuleGraphiteLabelPolicyArgs
    Graphite-specific label policy applied to positional labels (__gX__) on the output metric.
    GroupBies []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.
    MetricType string
    Type of the source metric being rolled up (e.g. gauge, counter, histogram).
    MetricTypeTag bool
    Whether to add a __rollup_type__ label to the output metric identifying the rollup type. Defaults to false.
    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__).
    NewMetric 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.

    Deprecated: permissive is no longer supported

    SkipOnConflict bool
    If true, this rule is skipped when another rollup rule already produces a metric with the same output name. Defaults to false.
    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.
    StoragePolicies RollupRuleStoragePoliciesArgs
    Storage policy controlling resolution and retention of rolled-up metrics. Deprecated: use interval instead.

    Deprecated: use interval instead

    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 to false.
    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_glob matchers that select the input series. Supports glob patterns and special filters like __name__, __metric_type__, and __metric_source__.
    graphite_label_policy object
    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_tag bool
    Whether to add a __rollup_type__ label to the output metric identifying the rollup type. Defaults to false.
    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.

    Deprecated: permissive is no longer supported

    skip_on_conflict bool
    If true, this rule is skipped when another rollup rule already produces a metric with the same output name. Defaults to false.
    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 interval instead.

    Deprecated: use interval instead

    aggregation String
    Aggregation function applied across grouped series (e.g. sum, min, max, last).
    bucketId String
    ID of the bucket the rollup rule belongs to.
    dropRaw Boolean
    If true, automatically generates a drop rule that removes the raw input metrics matching this rollup. Defaults to false.
    excludeBies 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_glob matchers that select the input series. Supports glob patterns and special filters like __name__, __metric_type__, and __metric_source__.
    graphiteLabelPolicy RollupRuleGraphiteLabelPolicy
    Graphite-specific label policy applied to positional labels (__gX__) on the output metric.
    groupBies 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.
    metricType String
    Type of the source metric being rolled up (e.g. gauge, counter, histogram).
    metricTypeTag Boolean
    Whether to add a __rollup_type__ label to the output metric identifying the rollup type. Defaults to false.
    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__).
    newMetric 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.

    Deprecated: permissive is no longer supported

    skipOnConflict Boolean
    If true, this rule is skipped when another rollup rule already produces a metric with the same output name. Defaults to false.
    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.
    storagePolicies RollupRuleStoragePolicies
    Storage policy controlling resolution and retention of rolled-up metrics. Deprecated: use interval instead.

    Deprecated: use interval instead

    aggregation string
    Aggregation function applied across grouped series (e.g. sum, min, max, last).
    bucketId string
    ID of the bucket the rollup rule belongs to.
    dropRaw boolean
    If true, automatically generates a drop rule that removes the raw input metrics matching this rollup. Defaults to false.
    excludeBies string[]
    Labels to drop when aggregating; all other labels are preserved. Mutually exclusive with group_by.
    filter string
    Space-delimited list of label:value_glob matchers that select the input series. Supports glob patterns and special filters like __name__, __metric_type__, and __metric_source__.
    graphiteLabelPolicy RollupRuleGraphiteLabelPolicy
    Graphite-specific label policy applied to positional labels (__gX__) on the output metric.
    groupBies 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.
    metricType string
    Type of the source metric being rolled up (e.g. gauge, counter, histogram).
    metricTypeTag boolean
    Whether to add a __rollup_type__ label to the output metric identifying the rollup type. Defaults to false.
    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__).
    newMetric 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.

    Deprecated: permissive is no longer supported

    skipOnConflict boolean
    If true, this rule is skipped when another rollup rule already produces a metric with the same output name. Defaults to false.
    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.
    storagePolicies RollupRuleStoragePolicies
    Storage policy controlling resolution and retention of rolled-up metrics. Deprecated: use interval instead.

    Deprecated: use interval instead

    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 to false.
    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_glob matchers that select the input series. Supports glob patterns and special filters like __name__, __metric_type__, and __metric_source__.
    graphite_label_policy RollupRuleGraphiteLabelPolicyArgs
    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_tag bool
    Whether to add a __rollup_type__ label to the output metric identifying the rollup type. Defaults to false.
    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.

    Deprecated: permissive is no longer supported

    skip_on_conflict bool
    If true, this rule is skipped when another rollup rule already produces a metric with the same output name. Defaults to false.
    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 RollupRuleStoragePoliciesArgs
    Storage policy controlling resolution and retention of rolled-up metrics. Deprecated: use interval instead.

    Deprecated: use interval instead

    aggregation String
    Aggregation function applied across grouped series (e.g. sum, min, max, last).
    bucketId String
    ID of the bucket the rollup rule belongs to.
    dropRaw Boolean
    If true, automatically generates a drop rule that removes the raw input metrics matching this rollup. Defaults to false.
    excludeBies 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_glob matchers that select the input series. Supports glob patterns and special filters like __name__, __metric_type__, and __metric_source__.
    graphiteLabelPolicy Property Map
    Graphite-specific label policy applied to positional labels (__gX__) on the output metric.
    groupBies 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.
    metricType String
    Type of the source metric being rolled up (e.g. gauge, counter, histogram).
    metricTypeTag Boolean
    Whether to add a __rollup_type__ label to the output metric identifying the rollup type. Defaults to false.
    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__).
    newMetric 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.

    Deprecated: permissive is no longer supported

    skipOnConflict Boolean
    If true, this rule is skipped when another rollup rule already produces a metric with the same output name. Defaults to false.
    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.
    storagePolicies Property Map
    Storage policy controlling resolution and retention of rolled-up metrics. Deprecated: use interval instead.

    Deprecated: use interval instead

    Supporting Types

    RollupRuleGraphiteLabelPolicy, RollupRuleGraphiteLabelPolicyArgs

    Replaces List<Chronosphere.Pulumi.Inputs.RollupRuleGraphiteLabelPolicyReplace>
    List of positional Graphite label replacements applied to the output metric.
    Replaces []RollupRuleGraphiteLabelPolicyReplace
    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<RollupRuleGraphiteLabelPolicyReplace>
    List of positional Graphite label replacements applied to the output metric.
    replaces RollupRuleGraphiteLabelPolicyReplace[]
    List of positional Graphite label replacements applied to the output metric.
    replaces Sequence[RollupRuleGraphiteLabelPolicyReplace]
    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

    Name string
    Positional Graphite label to replace (e.g. __g1__).
    NewValue string
    Replacement value for the named positional label.
    Name string
    Positional Graphite label to replace (e.g. __g1__).
    NewValue string
    Replacement value for the named positional label.
    name string
    Positional Graphite label to replace (e.g. __g1__).
    new_value string
    Replacement value for the named positional label.
    name String
    Positional Graphite label to replace (e.g. __g1__).
    newValue String
    Replacement value for the named positional label.
    name string
    Positional Graphite label to replace (e.g. __g1__).
    newValue string
    Replacement value for the named positional label.
    name str
    Positional Graphite label to replace (e.g. __g1__).
    new_value str
    Replacement value for the named positional label.
    name String
    Positional Graphite label to replace (e.g. __g1__).
    newValue String
    Replacement value for the named positional label.

    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 chronosphere Terraform Provider.
    Viewing docs for Chronosphere v0.9.16
    published on Friday, Jun 5, 2026 by Chronosphere

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial