Add graphite api image :(
This commit is contained in:
parent
4ed8fe0d58
commit
d40cd6d79c
|
@ -14,6 +14,9 @@ WORKDIR /build/go-carbon
|
|||
RUN git checkout v0.7.2
|
||||
RUN make submodules && make
|
||||
|
||||
RUN mkdir /graphite-config
|
||||
COPY configs/graphite-api.yml /graphite-config/graphite-api.yml
|
||||
|
||||
COPY configs/carbon.toml /etc/carbon.toml
|
||||
COPY configs/storage-schemas.conf /etc/storage-schemas.conf
|
||||
EXPOSE 2003 2004 7002
|
||||
|
|
|
@ -4,13 +4,13 @@
|
|||
"dumpfile": "./brubeck.dump",
|
||||
"capacity": 15,
|
||||
"expire": 20,
|
||||
"http": ":8080",
|
||||
"http": ":8090",
|
||||
"backends": [
|
||||
{
|
||||
"type": "carbon",
|
||||
"address": "localhost",
|
||||
"address": "carbon",
|
||||
"port": 2003,
|
||||
"frequency": 10
|
||||
"frequency": 5
|
||||
}
|
||||
],
|
||||
"samplers": [
|
||||
|
@ -19,7 +19,7 @@
|
|||
"address": "0.0.0.0",
|
||||
"port": 8126,
|
||||
"workers": 4,
|
||||
"multisock": true,
|
||||
"multisock": false,
|
||||
"multimsg": 8
|
||||
},
|
||||
{
|
||||
|
|
|
@ -0,0 +1,10 @@
|
|||
search_index: /srv/graphite/index
|
||||
finders:
|
||||
- graphite_api.finders.whisper.WhisperFinder
|
||||
functions:
|
||||
- graphite_api.functions.SeriesFunctions
|
||||
- graphite_api.functions.PieFunctions
|
||||
whisper:
|
||||
directories:
|
||||
- /data/graphite/whisper
|
||||
time_zone: UTC
|
|
@ -1,5 +1,7 @@
|
|||
version: '2'
|
||||
services:
|
||||
# Go Carbon (Carbon replacement)
|
||||
# Takes care of writing metrics to database and data retention
|
||||
carbon:
|
||||
image: carbon:v1
|
||||
build:
|
||||
|
@ -11,6 +13,9 @@ services:
|
|||
- '7002:7002'
|
||||
volumes:
|
||||
- /data/graphite/whisper
|
||||
- /graphite-config
|
||||
# Brubeck (StatsD replacement)
|
||||
# Aggregates metrics before sending them to Carbon
|
||||
brubeck:
|
||||
image: brubeck:v1
|
||||
build:
|
||||
|
@ -22,6 +27,24 @@ services:
|
|||
- '9126:9126'
|
||||
depends_on:
|
||||
- carbon
|
||||
# Graphite API (yep, almost original Graphite Web)
|
||||
# Provides API for reading metrics
|
||||
graphite-api:
|
||||
image: brutasse/graphite-api:latest
|
||||
build:
|
||||
context: https://github.com/brutasse/graphite-api.git
|
||||
environment:
|
||||
BIND_ADDRESS: 0.0.0.0
|
||||
PORT: 8000
|
||||
GRAPHITE_API_CONFIG: /graphite-config/graphite-api.yml
|
||||
ports:
|
||||
- '8080:8000'
|
||||
volumes_from:
|
||||
- carbon
|
||||
depends_on:
|
||||
- carbon
|
||||
# Grafana
|
||||
# Metrics dashboard
|
||||
grafana:
|
||||
image: grafana:v1
|
||||
build:
|
||||
|
@ -30,6 +53,4 @@ services:
|
|||
ports:
|
||||
- '3000:3000'
|
||||
depends_on:
|
||||
- carbon
|
||||
- brubeck
|
||||
|
||||
- graphite-api
|
||||
|
|
Loading…
Reference in New Issue