-
Notifications
You must be signed in to change notification settings - Fork 173
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add Telegraf/InfluxDB/Grafana compose stack for recording InfluxDB me…
…trics (#166) * Add telegraf/influxdb/grafana compose stack * Add commented-out defaults to system.env for telegraf metrics * upgrade grafana version * Bump Robomaker dependency to 5.2.2 * fix auto-provisioning of dashboard template * Rename influx -> metrics * fix initial dashboard datasource * docker-compose -> docker compose * Add telegraf env vars to eval and training docker compose files * add docs for metrics * tweak docs * tweak docs * Default to empty strings * fix metric name in dashboard --------- Co-authored-by: Matt Camp <matt@noise.net.nz>
- Loading branch information
Showing
15 changed files
with
1,450 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
|
||
version: '3.7' | ||
|
||
networks: | ||
default: | ||
external: true | ||
name: sagemaker-local | ||
|
||
services: | ||
telegraf: | ||
image: telegraf:1.18-alpine | ||
volumes: | ||
- ./metrics/telegraf/etc/telegraf.conf:/etc/telegraf/telegraf.conf:ro | ||
depends_on: | ||
- influxdb | ||
links: | ||
- influxdb | ||
ports: | ||
- '127.0.0.1:8125:8125/udp' | ||
- '127.0.0.1:8092:8092/udp' | ||
|
||
influxdb: | ||
image: influxdb:1.8-alpine | ||
env_file: ./metrics/configuration.env | ||
ports: | ||
- '127.0.0.1:8886:8086' | ||
volumes: | ||
- influxdb_data:/var/lib/influxdb | ||
|
||
grafana: | ||
image: grafana/grafana:10.4.2 | ||
depends_on: | ||
- influxdb | ||
env_file: ./metrics/configuration.env | ||
links: | ||
- influxdb | ||
ports: | ||
- '3000:3000' | ||
volumes: | ||
- grafana_data:/var/lib/grafana | ||
- ./metrics/grafana/provisioning/:/etc/grafana/provisioning/ | ||
|
||
volumes: | ||
grafana_data: {} | ||
influxdb_data: {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
# Grafana options | ||
GF_SECURITY_ADMIN_USER=admin | ||
GF_SECURITY_ADMIN_PASSWORD=admin | ||
GF_INSTALL_PLUGINS= | ||
|
||
# InfluxDB options | ||
INFLUXDB_DB=influx | ||
INFLUXDB_ADMIN_USER=admin | ||
INFLUXDB_ADMIN_PASSWORD=admin |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
apiVersion: 1 | ||
|
||
providers: | ||
- name: 'Default' | ||
folder: '' | ||
options: | ||
path: /etc/grafana/provisioning/dashboards |
Oops, something went wrong.