localhots.xyz graphite-ish / d40cd6d
Add graphite api image :( Gregory Eremin 5 years ago
4 changed file(s) with 41 addition(s) and 7 deletion(s). Raw diff Collapse all Expand all
1313 RUN git checkout v0.7.2
1414 RUN make submodules && make
1515
16 RUN mkdir /graphite-config
17 COPY configs/graphite-api.yml /graphite-config/graphite-api.yml
18
1619 COPY configs/carbon.toml /etc/carbon.toml
1720 COPY configs/storage-schemas.conf /etc/storage-schemas.conf
1821 EXPOSE 2003 2004 7002
33 "dumpfile": "./brubeck.dump",
44 "capacity": 15,
55 "expire": 20,
6 "http": ":8080",
6 "http": ":8090",
77 "backends": [
88 {
99 "type": "carbon",
10 "address": "localhost",
10 "address": "carbon",
1111 "port": 2003,
12 "frequency": 10
12 "frequency": 5
1313 }
1414 ],
1515 "samplers": [
1818 "address": "0.0.0.0",
1919 "port": 8126,
2020 "workers": 4,
21 "multisock": true,
21 "multisock": false,
2222 "multimsg": 8
2323 },
2424 {
0 search_index: /srv/graphite/index
1 finders:
2 - graphite_api.finders.whisper.WhisperFinder
3 functions:
4 - graphite_api.functions.SeriesFunctions
5 - graphite_api.functions.PieFunctions
6 whisper:
7 directories:
8 - /data/graphite/whisper
9 time_zone: UTC
00 version: '2'
11 services:
2 # Go Carbon (Carbon replacement)
3 # Takes care of writing metrics to database and data retention
24 carbon:
35 image: carbon:v1
46 build:
1012 - '7002:7002'
1113 volumes:
1214 - /data/graphite/whisper
15 - /graphite-config
16 # Brubeck (StatsD replacement)
17 # Aggregates metrics before sending them to Carbon
1318 brubeck:
1419 image: brubeck:v1
1520 build:
2126 - '9126:9126'
2227 depends_on:
2328 - carbon
29 # Graphite API (yep, almost original Graphite Web)
30 # Provides API for reading metrics
31 graphite-api:
32 image: brutasse/graphite-api:latest
33 build:
34 context: https://github.com/brutasse/graphite-api.git
35 environment:
36 BIND_ADDRESS: 0.0.0.0
37 PORT: 8000
38 GRAPHITE_API_CONFIG: /graphite-config/graphite-api.yml
39 ports:
40 - '8080:8000'
41 volumes_from:
42 - carbon
43 depends_on:
44 - carbon
45 # Grafana
46 # Metrics dashboard
2447 grafana:
2548 image: grafana:v1
2649 build:
2952 ports:
3053 - '3000:3000'
3154 depends_on:
32 - carbon
33 - brubeck
34
55 - graphite-api