Skip to content

Commit

Permalink
Update content/docs/2.9/operate/prometheus.md
Browse files Browse the repository at this point in the history
Signed-off-by: dariox <9934402+darox@users.noreply.github.com>
  • Loading branch information
darox committed Dec 6, 2022
1 parent 0b57d4c commit 844f32e
Showing 1 changed file with 21 additions and 2 deletions.
23 changes: 21 additions & 2 deletions content/docs/2.9/operate/prometheus.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ weight = 200

## Prometheus Exporter Metrics

### Operator
### Operator

The KEDA Operator exposes Prometheus metrics which can be scraped on port `8080` at `/metrics`. The following metrics are being gathered:

Expand All @@ -16,11 +16,30 @@ The KEDA Operator exposes Prometheus metrics which can be scraped on port `8080`

### Metrics Adapter

The KEDA Metrics Adapter exposes Prometheus metrics which can be scraped on port `9022` (this can be changed by setting the `metrics-port` argument for the Metrics Adapter) at `/metrics`. The metrics collected in the Metrics Adapter are only active when the HPA is active (> 0 replicas).
The KEDA Metrics Adapter exposes Prometheus metrics which can be scraped on port `9022` (this can be changed by setting the `metrics-port` argument for the Metrics Adapter) at `/metrics`. The metrics collected in the Metrics Adapter are only active when the HPA is active (> 0 replicas).

The following metrics are being gathered:

- `keda_metrics_adapter_scaler_error_totals` - The total number of errors encountered for all scalers.
- `keda_metrics_adapter_scaled_object_error_totals`- The number of errors that have occurred for each scaled object.
- `keda_metrics_adapter_scaler_errors` - The number of errors that have occurred for each scaler.
- `keda_metrics_adapter_scaler_metrics_value`- The current value for each scaler's metric that would be used by the HPA in computing the target average.

## Premade Grafana dashboard

A premade [Grafana dashboard](https://github.com/kedacore/keda/tree/main/config/grafana/keda-dashboard.json) is available to visualize metrics exposed by the KEDA Metrics Adapter.

![KEDA Grafana dashboard](/img/grafana-dashboard.png)

The dashboard has two sections:

- Visualization of KEDA's metric server
- Visualization of the scale target and its changes in replicas scaled by KEDA

On top, the dashboard supports the following variables:

- datasource
- namespace
- scaledObject
- scaler
- metric

0 comments on commit 844f32e

Please sign in to comment.