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

Add grafana dashboard to pgagroal #152

Merged
merged 1 commit into from
Jun 22, 2021
Merged
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
1 change: 1 addition & 0 deletions AUTHORS
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@ pgagroal was created by the following authors:
Jesper Pedersen <jesper.pedersen@redhat.com>
David Fetter <david@fetter.org>
Will Leinweber <will@bitfission.com>
Junduo Dong <andj4cn@gmail.com>
26 changes: 26 additions & 0 deletions contrib/grafana/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# Grafana dashboard for pgagroal

## Getting Started

### Step1: Configure the Prometheus

1. Open the prometheus metric port like `8000` in `pgagroal.conf`.

2. Add the pgagroal instance in Prometheus configuration file `prometheus.yml` like follows:
```
...
scrape_configs:
- job_name: 'pgagroal'
static_configs:
- targets: ['localhost:8000']
...
```

### Step2: Start the Grafana

1. Integrate the Prometheus instance as a data source into Grafana.
2. Open Grafana web page, click <kbd>+</kbd> -> <kbd>Import</kbd>.

3. Upload JSON file `contrib/grafana/dashboard.json` with <kbd>Upload JSON file</kbd>, then change the options if necessary.

4. Click <kbd>Import</kbd>. Let's start using it!
Loading