Skip to content

Commit 5e19462

Browse files
author
Jonathan Chauncey
committed
feat(grafana,telegraf): Pull metric data from nsq via telegraf
Also updates grafana graphs with correct series names.
1 parent 7557dfc commit 5e19462

11 files changed

Lines changed: 1719 additions & 1550 deletions

File tree

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,4 @@ influxdb/manifests/*.tmp.yaml
88
chronograf/manifests/*.tmp.yaml
99
grafana/manifests/*.tmp.yaml
1010

11-
telegraf/rootfs/telegraf
11+
telegraf/rootfs/bin/telegraf

README.md

Lines changed: 27 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -20,32 +20,33 @@ Lastly, Grafana is a stand alone graphing application. It natively supports Infl
2020
# Architecture Diagram
2121

2222
```
23-
┌────────┐
24-
│ Router │
25-
└────────┘
26-
│ ┌──────┐
27-
Log File ┌──────▶│Logger│
28-
│ │ └──────┘
29-
▼ │
30-
┌────────┐ ┌─────────┐ │
31-
│App Logs│───Log file────▶│ fluentd │──UDP/Syslog
32-
└────────┘ └─────────┘ │ ┌──────────┐
33-
│ │ stdout │
34-
└──────▶│ metrics │
35-
┌─────────────┐ └──────────┘
36-
│ HOST │ ┌───────────┐ Wire │
37-
│ Telegraf │────┬────▶│ InfluxDB │◀───────Protocol────┘
38-
└─────────────┘ │ └───────────┘
39-
│ │
40-
┌─────────────┐ │ │
41-
│ HOST │ │ ▼
42-
│ Telegraf │────┤ ┌──────────┐
43-
└─────────────┘ │ │ Grafana │
44-
│ └──────────┘
45-
┌─────────────┐ │
46-
│ HOST │ │
47-
│ Telegraf │────┘
48-
└─────────────┘
23+
┌────────┐
24+
│ Router │ ┌────────┐
25+
└────────┘ │ Logger │
26+
│ └────────┘
27+
Log file │
28+
│ │
29+
▼ ▼
30+
┌────────┐ ┌─────────┐ logs/metrics ┌─────┐
31+
│App Logs│──Log File──▶│ fluentd │───────topics─────▶│ NSQ │
32+
└────────┘ └─────────┘ └─────┘
33+
34+
35+
┌─────────────┐ │
36+
│ HOST │ ▼
37+
│ Telegraf │───┐ ┌────────┐
38+
└─────────────┘ │ │Telegraf│
39+
│ └────────┘
40+
┌─────────────┐ │ │
41+
│ HOST │ │ ┌───────────┐ │
42+
│ Telegraf │───┼───▶│ InfluxDB │◀────Wire ─────────┘
43+
└─────────────┘ │ └───────────┘ Protocol
44+
│ ▲
45+
┌─────────────┐ │ │
46+
│ HOST │ │ ▼
47+
│ Telegraf │───┘ ┌──────────┐
48+
└─────────────┘ │ Grafana │
49+
└──────────┘
4950
```
5051

5152

grafana/rootfs/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@ COPY . /
44

55
RUN apt-get update \
66
&& apt-get install -y libfontconfig \
7-
&& curl -L -o /usr/share/grafana/envtpl https://github.com/arschles/envtpl/releases/download/0.2.3/envtpl_linux_amd64 \
7+
&& curl -sL -o /usr/share/grafana/envtpl https://github.com/arschles/envtpl/releases/download/0.2.3/envtpl_linux_amd64 \
88
&& chmod +x /usr/share/grafana/envtpl \
9-
&& curl -o /tmp/grafana.deb https://grafanarel.s3.amazonaws.com/builds/grafana_3.0.2-1463383025_amd64.deb \
9+
&& curl -so /tmp/grafana.deb https://grafanarel.s3.amazonaws.com/builds/grafana_3.0.4-1464167696_amd64.deb \
1010
&& dpkg -i /tmp/grafana.deb \
1111
&& rm /tmp/grafana.deb \
1212
&& rm /etc/grafana/grafana.ini \

0 commit comments

Comments
 (0)