Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

lf-monitor: init LF metrics collector #53

Draft
wants to merge 2 commits into
base: open-source
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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