github.com/m3db/m3@v1.5.0/scripts/development/m3_prom_remote_stack/m3coordinator.yml (about)

     1  listenAddress: 0.0.0.0:7201
     2  
     3  logging:
     4    level: info
     5  
     6  metrics:
     7    scope:
     8      prefix: "coordinator"
     9    prometheus:
    10      handlerPath: /metrics
    11      listenAddress: 0.0.0.0:7203 # until https://github.com/m3db/m3/issues/682 is resolved
    12    sanitization: prometheus
    13    samplingRate: 1.0
    14    extended: none
    15  
    16  backend: prom-remote
    17  
    18  prometheusRemoteBackend:
    19    endpoints:
    20      - name: raw
    21        address: "http://prometheusraw:9090/api/v1/write"
    22      - name: aggregated
    23        address: "http://prometheusagg:9090/api/v1/write"
    24        storagePolicy:
    25          retention: 1h
    26          resolution: 1m
    27          downsample:
    28            all: false
    29  
    30  clusterManagement:
    31    etcd:
    32      env: default_env
    33      zone: embedded
    34      service: m3db
    35      cacheDir: /var/lib/m3kv
    36      etcdClusters:
    37        - zone: embedded
    38          endpoints:
    39            - etcd01:2379
    40  
    41  tagOptions:
    42    idScheme: quoted
    43  
    44  downsample:
    45    rules:
    46      mappingRules:
    47        - name: "drop all cadvisor metrics"
    48          filter: "job:cadvisor_*"
    49          drop: True
    50        - name: "cpu metric"
    51          filter: "__name__:container_cpu_usage_seconds_total"
    52          storagePolicies:
    53            - resolution: 1m
    54              retention: 1h
    55      rollupRules:
    56        - name: "container_cpu_usage_seconds_total rolled up"
    57          filter: "__name__:container_cpu_usage_seconds_total"
    58          transforms:
    59            - transform:
    60                type: "Increase"
    61            - rollup:
    62                metricName: "container_cpu_usage_seconds_total_rolled_up"
    63                groupBy: ["container", "namespace", "cpu"]
    64                aggregations: ["Sum"]
    65            - transform:
    66                type: "Add"
    67          storagePolicies:
    68            - resolution: 1m
    69              retention: 1h
    70    matcher:
    71      requireNamespaceWatchOnInit: false
    72    remoteAggregator:
    73      client:
    74        type: m3msg
    75        m3msg:
    76          producer:
    77            writer:
    78              messageRetry:
    79                initialBackoff: 10s
    80              topicName: aggregator_ingest
    81              topicServiceOverride:
    82                zone: embedded
    83                environment: default_env
    84              placement:
    85                isStaged: true
    86              placementServiceOverride:
    87                namespaces:
    88                  placement: /placement
    89              connection:
    90                numConnections: 4
    91              messagePool:
    92                size: 16384
    93                watermark:
    94                  low: 0.2
    95                  high: 0.5
    96  
    97  ingest:
    98    ingester:
    99      workerPoolSize: 10000
   100      opPool:
   101        size: 10000
   102      retry:
   103        maxRetries: 3
   104        jitter: true
   105      logSampleRate: 0.01
   106    m3msg:
   107      server:
   108        listenAddress: "0.0.0.0:7507"
   109        retry:
   110          maxBackoff: 10s
   111          jitter: true
   112  
   113  storeMetricsType: true