Skip to content

Commit

Permalink
lf-monitor: init LF metrics collector
Browse files Browse the repository at this point in the history
  • Loading branch information
Fabio Streun committed Sep 17, 2024
1 parent e79269f commit ff66e6c
Show file tree
Hide file tree
Showing 13 changed files with 1,233 additions and 1 deletion.
2 changes: 1 addition & 1 deletion docs/monitoring/prometheus.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@ scrape_configs:
scrape_interval: 1s

static_configs:
- targets: ['localhost:9273']
- targets: ['telegraf:9273']
27 changes: 27 additions & 0 deletions usertools/monitoring/docker-compose.yml
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:
10 changes: 10 additions & 0 deletions usertools/monitoring/docker.sh
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
1 change: 1 addition & 0 deletions usertools/monitoring/lf-monitor/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/target
Loading

0 comments on commit ff66e6c

Please sign in to comment.