summaryrefslogtreecommitdiff
path: root/contrib/k8s-emc/graphite-cm-carbon.yml
blob: 7157284f4057131647408e2876c285ee873d7c3e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
kind: ConfigMap
apiVersion: v1
metadata:
  namespace: emc
  name: stats-graphite-carbon
  labels:
    app: graphite
    tier: stats
data:
  carbon.conf: |
    [cache]

    STORAGE_DIR    = /srv/data/
    LOCAL_DATA_DIR = /srv/data/whisper/
    CONF_DIR       = /srv/config/

    MAX_CACHE_SIZE = inf
    MAX_UPDATES_PER_SECOND = 1000
    # MAX_UPDATES_PER_SECOND_ON_SHUTDOWN = 5000

    MAX_CREATES_PER_MINUTE = 50

    LINE_RECEIVER_INTERFACE = 0.0.0.0
    LINE_RECEIVER_PORT = 2003

    ENABLE_UDP_LISTENER = False
    PICKLE_RECEIVER_PORT = 0

    LOG_LISTENER_CONNECTIONS = True

    CACHE_QUERY_INTERFACE = 127.0.0.1
    CACHE_QUERY_PORT = 7002

    USE_FLOW_CONTROL = True

    LOG_UPDATES = False
    LOG_CACHE_HITS = False
    LOG_CACHE_QUEUE_SORTS = True

    CACHE_WRITE_STRATEGY = sorted
    WHISPER_AUTOFLUSH = False

    WHISPER_FALLOCATE_CREATE = True
  storage-schemas.conf: |
    [carbon]
    pattern = ^carbon\.
    retentions = 60:90d

    [sfive]
    pattern = ^sfive\.
    retentions = 15s:10d,1m:21d,15m:5y

    [default_1min_for_1day]
    pattern = .*
    retentions = 60s:1d