Skip to content

Commit b7c2e98

Browse files
committed
20210826 TICK - old-menu branch - PR 2 of 3
Adds Chronograf and Kapacitor service definitions to complement Telegraf and InfluxDB, and complete the TICK stack. Assumes Chronograf may be added without Kapacitor (uncommenting relevant lines in Chronograf service definition is required to enable full integration). Menu changed to group Telegraf, Chronograf and Kapacitor.
1 parent c2d7825 commit b7c2e98

File tree

3 files changed

+42
-0
lines changed

3 files changed

+42
-0
lines changed

.templates/chronograf/service.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
chronograf:
2+
container_name: chronograf
3+
image: chronograf:latest
4+
restart: unless-stopped
5+
environment:
6+
- TZ=Etc/UTC
7+
# see https://docs.influxdata.com/chronograf/v1.9/administration/config-options/
8+
- INFLUXDB_URL=http://influxdb:8086
9+
# - INFLUXDB_USERNAME=
10+
# - INFLUXDB_PASSWORD=
11+
# - INFLUXDB_ORG=
12+
# - KAPACITOR_URL=http://kapacitor:9092
13+
ports:
14+
- "8888:8888"
15+
volumes:
16+
- ./volumes/chronograf:/var/lib/chronograf
17+
depends_on:
18+
- influxdb
19+
# - kapacitor

.templates/kapacitor/service.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
kapacitor:
2+
container_name: kapacitor
3+
image: kapacitor:1.5
4+
restart: unless-stopped
5+
environment:
6+
- TZ=Etc/UTC
7+
# see https://docs.influxdata.com/kapacitor/v1.6/administration/configuration/#kapacitor-environment-variables
8+
- KAPACITOR_INFLUXDB_0_URLS_0=http://influxdb:8086
9+
# - KAPACITOR_INFLUXDB_USERNAME=
10+
# - KAPACITOR_INFLUXDB_PASSWORD=
11+
# - KAPACITOR_HOSTNAME=kapacitor
12+
# - KAPACITOR_LOGGING_LEVEL=INFO
13+
# - KAPACITOR_REPORTING_ENABLED=false
14+
ports:
15+
- "9092:9092"
16+
volumes:
17+
- ./volumes/kapacitor:/var/lib/kapacitor
18+
depends_on:
19+
- influxdb

menu.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,8 @@ declare -A cont_array=(
2626
[nodered]="Node-RED"
2727
[influxdb]="InfluxDB"
2828
[telegraf]="Telegraf (Requires InfluxDB and Mosquitto)"
29+
[chronograf]="Chronograf (Requires InfluxDB, Kapacitor optional)"
30+
[kapacitor]="Kapacitor (Requires InfluxDB)"
2931
[transmission]="transmission"
3032
[grafana]="Grafana"
3133
[mosquitto]="Eclipse-Mosquitto"
@@ -72,6 +74,8 @@ declare -a armhf_keys=(
7274
"grafana"
7375
"mosquitto"
7476
"telegraf"
77+
"chronograf"
78+
"kapacitor"
7579
"prometheus"
7680
"mariadb"
7781
"postgres"

0 commit comments

Comments
 (0)