-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
lf-monitor: init LF metrics collector
- Loading branch information
Fabio Streun
committed
Sep 17, 2024
1 parent
e79269f
commit ff66e6c
Showing
13 changed files
with
1,233 additions
and
1 deletion.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,4 +13,4 @@ scrape_configs: | |
scrape_interval: 1s | ||
|
||
static_configs: | ||
- targets: ['localhost:9273'] | ||
- targets: ['telegraf:9273'] |
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,27 @@ | ||
version: '3.8' | ||
services: | ||
telegraf: | ||
image: telegraf:latest | ||
volumes: | ||
- ./telegraf.conf:/etc/telegraf/telegraf.conf:ro | ||
networks: | ||
- monitoring | ||
|
||
prometheus: | ||
image: prom/prometheus:latest | ||
volumes: | ||
- ./prometheus.yml:/etc/prometheus/prometheus.yml | ||
command: | ||
- '--config.file=/etc/prometheus/prometheus.yml' | ||
networks: | ||
- monitoring | ||
|
||
grafana: | ||
image: grafana/grafana:latest | ||
ports: | ||
- "3000:3000" | ||
networks: | ||
- monitoring | ||
|
||
networks: | ||
monitoring: |
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,10 @@ | ||
#!/bin/bash | ||
|
||
# create docker image | ||
docker build -t lf-monitoring -f monitoring.Dockerfile . | ||
|
||
# create docker container | ||
docker create --name lf-monitoring --net=host lf-monitoring | ||
|
||
# start docker container | ||
docker start lf-monitoring |
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 @@ | ||
/target |
Oops, something went wrong.