Skip to content

Commit

Permalink
#75 Configured prometheus and grafana
Browse files Browse the repository at this point in the history
  • Loading branch information
vityaman committed Apr 24, 2024
1 parent b6e7efa commit d7faa1d
Show file tree
Hide file tree
Showing 12 changed files with 4,541 additions and 4 deletions.
12 changes: 9 additions & 3 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,19 +26,25 @@ services:
- lms-network
grafana:
container_name: lms-grafana
image: grafana/grafana
build:
context: infra/grafana
dockerfile: Dockerfile
ports:
- "3000:3000"
volumes:
- ./infra/grafana/grafana.ini:/etc/grafana/grafana.ini
environment:
- GF_SECURITY_ADMIN_USER=admin
- GF_SECURITY_ADMIN_PASSWORD=admin
- GF_SECURITY_ADMIN_USER=[email protected]
- GF_SECURITY_ADMIN_PASSWORD=0000
networks:
- lms-network
prometheus:
container_name: lms-prometheus
image: prom/prometheus
ports:
- "9090:9090"
volumes:
- ./infra/prometheus/prometheus.yml:/etc/prometheus/prometheus.yml
networks:
- lms-network
fuzzer:
Expand Down
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion fuzzing/fuzz.sh → infra/fuzzing/fuzz.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env sh

RESTler/restler/Restler fuzz \
--settings lms/fuzzing/settings.json \
--settings lms/infra/fuzzing/settings.json \
--grammar_file Compile/grammar.py \
--dictionary_file Compile/dict.json
File renamed without changes.
2 changes: 2 additions & 0 deletions infra/grafana/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
FROM grafana/grafana
ADD ./provisioning /etc/grafana/provisioning
2 changes: 2 additions & 0 deletions infra/grafana/grafana.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[log.console]
level = warn
10 changes: 10 additions & 0 deletions infra/grafana/provisioning/dashboards/all.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
apiVersion: 1
providers:
- name: 'default'
folder: 'default'
type: file
allowUiUpdates: true
updateIntervalSeconds: 30
options:
path: /etc/grafana/provisioning/dashboards
foldersFromFilesStructure: true
Loading

0 comments on commit d7faa1d

Please sign in to comment.