Skip to content

Commit

Permalink
Grafana Provisioning
Browse files Browse the repository at this point in the history
  • Loading branch information
jacar-javi committed Mar 23, 2024
1 parent bb5e8b8 commit 871a6b3
Show file tree
Hide file tree
Showing 13 changed files with 30,462 additions and 4 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
.env
.env.bak
data/crowdsec
data/grafana
data/grafana/data
data/mysql
data/portainer
data/prometheus/data
Expand All @@ -10,3 +10,4 @@ data/traefik/acme.json
logs/traefik/*
secrets
assets/templates/crowdsec-firewall-bouncer.yaml

18 changes: 18 additions & 0 deletions assets/templates/crowdsec-acquis.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
filenames:
- /var/log/auth.log
- /var/log/syslog
- /var/log/kern.log
- /var/log/ufw.log
- /var/log/mail.log
labels:
type: syslog
---
filenames:
- /logs/server/traefik/*.log
labels:
type: traefik
---
filenames:
- /logs/server/nginx/*.log
labels:
type: nginx
1 change: 1 addition & 0 deletions clean.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ case $response in
docker compose down & > /dev/null
docker image prune -a -f & > /dev/null
sudo rm -rf data/crowdsec || true
sudo rm -rf data/grafana/data/* || true
sudo rm -rf data/mysql || true
sudo rm -rf data/portainer || true
sudo rm -rf data/traefik/acme.json || true
Expand Down
2 changes: 1 addition & 1 deletion compose/grafana.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
services:
# Grafana - Graphical data visualization
grafana:
image: grafana/grafana:latest
image: grafana/grafana
container_name: grafana
security_opt:
- no-new-privileges:true
Expand Down
Loading

0 comments on commit 871a6b3

Please sign in to comment.