github.com/go-graphite/carbonapi@v0.17.0/cmd/carbonapi.example.irondb.yaml (about)

     1  listen: "localhost:8081"
     2  concurency: 1000
     3  cache:
     4     type: "mem"
     5     size_mb: 0
     6     defaultTimeoutSec: 60
     7     memcachedServers:
     8         - "127.0.0.1:1234"
     9         - "127.0.0.2:1235"
    10  cpus: 0
    11  tz: ""
    12  headersToPass:
    13    - "X-Dashboard-Id"
    14    - "X-Grafana-Org-Id"
    15    - "X-Panel-Id"
    16  functionsConfig:
    17      graphiteWeb: ./graphiteWeb.example.yaml
    18  maxBatchSize: 0
    19  graphite:
    20      host: ""
    21      interval: "60s"
    22      prefix: "carbon.api"
    23      pattern: "{prefix}.{fqdn}"
    24  idleConnections: 10
    25  pidFile: ""
    26  upstreams:
    27      graphite09compat: false
    28      buckets: 10
    29  
    30      concurrencyLimitPerServer: 0
    31      keepAliveInterval: "30s"
    32      maxIdleConnsPerHost: 100
    33      timeouts:
    34          find: "2s"
    35          render: "10s"
    36          connect: "200ms"
    37  
    38      #backends section will override this one!
    39      backendsv2:
    40          backends:
    41            -
    42              groupName: "snowthd"
    43              protocol: "irondb"
    44              lbMethod: "rr" # please use "roundrobin" - broadcast has not much sense here
    45              maxTries: 3
    46              maxBatchSize: 0 # recommended value
    47              keepAliveInterval: "10s"
    48              concurrencyLimit: 0
    49              maxIdleConnsPerHost: 1000
    50              doMultipleRequestsIfSplit: false # recommended value
    51              backendOptions:
    52                irondb_account_id: 1
    53                irondb_timeout: "5s" # ideally shold be less then find or render timeout
    54                irondb_graphite_rollup: 60
    55              servers:
    56                  - "http://192.168.0.1:8112"
    57                  - "http://192.168.0.2:8112"
    58                  - "http://192.168.0.3:8112"
    59  
    60      graphite09compat: false
    61  graphTemplates: graphTemplates.example.yaml
    62  expireDelaySec: 10
    63  logger:
    64      - logger: ""
    65        file: "stderr"
    66        level: "debug"
    67        encoding: "console"
    68        encodingTime: "iso8601"
    69        encodingDuration: "seconds"
    70      - logger: ""
    71        file: "carbonapi.log"
    72        level: "info"
    73        encoding: "json"