Skip to content
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
12 changes: 8 additions & 4 deletions authzed-dedicated-metrics/prometheus-grafana/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,13 @@ To enable Prometheus to scrape metrics from your permission system, configure th
scrape_configs:
- job_name: "exported-metrics-from-[permission-system]"
metrics_path: /api/v1alpha/metrics
scheme: https
basic_auth:
username: "[permission-system]"
password: "[token]"
static_configs:
- targets:
- "[authzed-dashboard-url]"
- "[authzed-dashboard-host]"
```

### Required Values
Expand All @@ -27,16 +28,18 @@ To enable Prometheus to scrape metrics from your permission system, configure th

- **metrics_path**: Set to `/api/v1alpha/metrics`.

- **scheme**: Set to `https`.

- **basic_auth**:
- **username**: Replace `[permission-system]` with the permission system name used for basic authentication.
- Example: `username: "my-permission-system"`
- **password**: Replace `[token]` with the token for basic authentication.
- Example: `password: "doGXlyJdtjZHOdCw486t"`

- **static_configs**:
- **targets**: Replace `[authzed-dashboard-url]` with the URL of your Authzed dashboard.
- **targets**: Replace `[authzed-dashboard-host]` with the hostname of your AuthZed dashboard, without `https://`.

- Example: `targets: ["https://app.demo.aws.authzed.net"]`
- Example: `targets: ["app.demo.aws.authzed.net"]`

### Example Configuration

Expand All @@ -46,12 +49,13 @@ Here's an example of a filled-out configuration:
scrape_configs:
- job_name: "exported-metrics-from-my-permission-system"
metrics_path: /api/v1alpha/metrics
scheme: https
basic_auth:
username: "my-permission-system"
password: "my-secret-token"
static_configs:
- targets:
- "https://app.demo.aws.authzed.net"
- "app.demo.aws.authzed.net"
```

3. Save prometheus.yml
Expand Down
Loading
Loading