github.com/m3db/m3@v1.5.0/scripts/docker-integration-tests/coordinator_config_rules/m3coordinator.yml (about)

     1  clusters:
     2    - client:
     3        config:
     4          service:
     5            env: default_env
     6            zone: embedded
     7            service: m3db
     8            cacheDir: /var/lib/m3kv
     9            etcdClusters:
    10              - zone: embedded
    11                endpoints:
    12                  - dbnode01:2379
    13  
    14  downsample:
    15    rules:
    16      mappingRules:
    17        - name: "mysql metrics"
    18          filter: "app:mysql*"
    19          aggregations: ["Last"]
    20          storagePolicies:
    21            - resolution: 1m
    22              retention: 48h
    23        - name: "nginx metrics"
    24          filter: "app:nginx*"
    25          aggregations: ["Last"]
    26          storagePolicies:
    27            - resolution: 30s
    28              retention: 24h
    29      rollupRules:
    30        - name: "requests per second by status code"
    31          filter: "__name__:http_requests app:* status_code:* endpoint:*"
    32          transforms:
    33            - transform:
    34                type: "PerSecond"
    35            - rollup:
    36                metricName: "http_requests_by_status_code"
    37                groupBy: ["app", "status_code", "endpoint"]
    38                aggregations: ["Sum"]
    39          storagePolicies:
    40            - resolution: 5s
    41              retention: 10h
    42    # NB(r): Use high buffer past limits for test since we are using
    43    # resolution of 5s which races against the timestamps being ingested.
    44    bufferPastLimits:
    45      - resolution: 0s
    46        bufferPast: 90s