Skip to content

Commit

Permalink
docs: Update documentation for exposed metrics (kedacore#1132)
Browse files Browse the repository at this point in the history
Signed-off-by: Jorge Turrado <[email protected]>
  • Loading branch information
JorTurFer authored May 18, 2023
1 parent 1e5b090 commit f30e32c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 8 deletions.
1 change: 0 additions & 1 deletion content/docs/2.11/operate/cluster.md
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,6 @@ To modify this properties you can set environment variables on both KEDA Operato
| ------------------------------------- | -------------- | ------------- | -------------------------------------------------------------- |
| KEDA_SCALEDOBJECT_CTRL_MAX_RECONCILES | Operator | 5 | ScaledObjectReconciler |
| KEDA_SCALEDJOB_CTRL_MAX_RECONCILES | Operator | 1 | ScaledJobReconciler |
| KEDA_METRICS_CTRL_MAX_RECONCILES | Metrics Server | 1 | MetricsScaledObjectReconciler |

## Configure Leader Election

Expand Down
10 changes: 3 additions & 7 deletions content/docs/2.11/operate/metrics-server.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,31 +11,27 @@ The metrics exposed by KEDA Metrics Server can be queried directly using `kubect
kubectl get --raw "/apis/external.metrics.k8s.io/v1beta1"
```

This will return a json with the list of metrics exposed by KEDA:
This will return a json with the list of metrics exposed by KEDA (just an external metric):
```json
{
"kind": "APIResourceList",
"apiVersion": "v1",
"groupVersion": "external.metrics.k8s.io/v1beta1",
"resources": [
{
"name": "s0-rabbitmq-queueName",
"name": "externalmetrics",
"singularName": "",
"namespaced": true,
"kind": "ExternalMetricValueList",
"verbs": [
"get"
]
},
{
"name": "s1-rabbitmq-queueName2",
....
}
]
}
```

You can also query for the value of a specific metric using `kubectl`:
In order to query an specific metric value, you also can do it using `kubectl`:
```bash
kubectl get --raw "/apis/external.metrics.k8s.io/v1beta1/namespaces/YOUR_NAMESPACE/YOUR_METRIC_NAME?labelSelector=scaledobject.keda.sh%2Fname%3D{SCALED_OBJECT_NAME}"
```
Expand Down

0 comments on commit f30e32c

Please sign in to comment.