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

Provision a basic PSQL dashboard for grafana #290

Open
wants to merge 2 commits into
base: monitoring
Choose a base branch
from
Open
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
15 changes: 15 additions & 0 deletions compose/monitoring.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,21 @@ services:
db:
condition: service_started
restart: unless-stopped
sql-exporter:
image: burningalchemist/sql_exporter
container_name: sql-exporter
expose:
- 9399
command: --config.file=/etc/sql-exporter/sql-exporter.yml
volumes:
- ./default/sql-exporter.yml:/etc/sql-exporter/sql-exporter.yml
depends_on:
prometheus:
condition: service_started
db:
condition: service_started
restart: unless-stopped


volumes:
grafana-storage: {}
9 changes: 9 additions & 0 deletions default/grafana-provisioning/dashboards/dashboards.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
apiVersion: 1

providers:
- name: dashboards
type: file
updateIntervalSeconds: 30
options:
path: /etc/grafana/provisioning/dashboards
foldersFromFilesStructure: true
Loading