Skip to content

Commit 232b06e

Browse files
authored
Merge pull request #59040 from mburke5678/cma-metrics
OSDOCS5736: Document CMA metrics
2 parents a53f2d1 + 07e6a7b commit 232b06e

File tree

3 files changed

+91
-1
lines changed

3 files changed

+91
-1
lines changed
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
// Module included in the following assemblies:
2+
//
3+
// * nodes/pods/nodes-pods-autoscaling-custom.adoc
4+
// Modeled after migration-accessing-performance-metrics.adoc
5+
6+
:_content-type: PROCEDURE
7+
[id="nodes-pods-autoscaling-custom-metrics-access_{context}"]
8+
= Accessing performance metrics
9+
10+
The Custom Metrics Autoscaler Operator exposes ready-to-use metrics that it pulls from the on-cluster monitoring component. You can query the metrics by using the Prometheus Query Language (PromQL) to analyze and diagnose issues. All metrics are reset when the controller pod restarts.
11+
12+
You can access the metrics and run queries by using the {product-title} web console.
13+
14+
.Procedure
15+
16+
. Select the *Administrator* perspective in the {product-title} web console.
17+
18+
. Select *Observe* -> *Metrics*.
19+
20+
. To create a custom query, add your PromQL query to the *Expression* field.
21+
22+
. To add multiple queries, select *Add Query*.
23+
24+
// Procedure copied from monitoring-querying-metrics-for-all-projects-as-an-administrator
Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
// Module included in the following assemblies:
2+
//
3+
// * nodes/pods/nodes-pods-autoscaling-custom.adoc
4+
5+
:_content-type: REFERENCE
6+
[id="nodes-pods-autoscaling-custom-metrics_{context}"]
7+
= Provided metrics
8+
9+
The Custom Metrics Autoscaler Operator exposes the following metrics, which you can view by using the {product-title} web console.
10+
11+
.Custom Metric Autoscaler Operator metrics
12+
13+
[cols="3,7",options="header"]
14+
|===
15+
|Metric name
16+
|Description
17+
18+
|`keda_scaler_activity`
19+
|Whether the particular scaler is active or inactive. A value of `1` indicates the scaler is active; a value of `0` indicates the scaler is inactive.
20+
21+
|`keda_scaler_metrics_value`
22+
|The current value for each scaler’s metric, which is used by the Horizontal Pod Autoscaler (HPA) in computing the target average.
23+
24+
|`keda_scaler_metrics_latency`
25+
|The latency of retrieving the current metric from each scaler.
26+
27+
|`keda_scaler_errors`
28+
|The number of errors that have occurred for each scaler.
29+
30+
|`keda_scaler_errors_total`
31+
|The total number of errors encountered for all scalers.
32+
33+
|`keda_scaled_object_errors`
34+
|The number of errors that have occurred for each scaled obejct.
35+
36+
|`keda_resource_totals`
37+
|The total number of Custom Metrics Autoscaler custom resources in each namespace for each custom resource type.
38+
39+
|`keda_trigger_totals`
40+
|The total number of triggers by trigger type.
41+
42+
|===
43+
44+
.Custom Metrics Autoscaler Admission webhook metrics
45+
46+
The Custom Metrics Autoscaler Admission webhook also exposes the following Prometheus metrics.
47+
48+
[cols="3,7"options="header"]
49+
|===
50+
|Metric name
51+
|Description
52+
53+
|`keda_scaled_object_validation_total`
54+
|The number of scaled object validations.
55+
56+
|`keda_scaled_object_validation_errors`
57+
|The number of validation errors.
58+
59+
|===

nodes/pods/nodes-pods-autoscaling-custom.adoc

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,10 @@ include::modules/nodes-pods-autoscaling-custom-pausing.adoc[leveloffset=+1]
6767

6868
include::modules/nodes-pods-autoscaling-custom-audit.adoc[leveloffset=+1]
6969

70+
.Additional resources
71+
72+
* xref:../../nodes/pods/nodes-pods-autoscaling-custom.adoc#nodes-pods-autoscaling-custom-audit_nodes-pods-autoscaling-custom[Configuring audit logging]
73+
7074
include::modules/nodes-pods-autoscaling-custom-gather.adoc[leveloffset=+1]
7175

7276
.Additional resources
@@ -76,6 +80,10 @@ ifndef::openshift-origin[]
7680
* xref:../../support/gathering-cluster-data.adoc#support-get-cluster-id_gathering-cluster-data[Obtaining your cluster ID]
7781
endif::openshift-origin[]
7882
83+
include::modules/nodes-pods-autoscaling-custom-metrics-access.adoc[leveloffset=+1]
84+
85+
include::modules/nodes-pods-autoscaling-custom-metrics.adoc[leveloffset=+2]
86+
7987
include::modules/nodes-pods-autoscaling-custom-adding.adoc[leveloffset=+1]
8088

8189
include::modules/nodes-pods-autoscaling-custom-creating-workload.adoc[leveloffset=+2]
@@ -85,7 +93,6 @@ include::modules/nodes-pods-autoscaling-custom-creating-workload.adoc[leveloffse
8593
* xref:../../nodes/pods/nodes-pods-autoscaling.adoc#nodes-pods-autoscaling-policies_nodes-pods-autoscaling[Scaling policies]
8694
* xref:../../nodes/pods/nodes-pods-autoscaling-custom.adoc#nodes-pods-autoscaling-custom-trigger_nodes-pods-autoscaling-custom[Understanding the custom metrics autoscaler triggers]
8795
* xref:../../nodes/pods/nodes-pods-autoscaling-custom.adoc#nodes-pods-autoscaling-custom-trigger-auth_nodes-pods-autoscaling-custom[Understanding custom metrics autoscaler trigger authentications]
88-
* xref:../../nodes/pods/nodes-pods-autoscaling-custom.adoc#nodes-pods-autoscaling-custom-audit_nodes-pods-autoscaling-custom[Configuring audit logging]
8996
9097
include::modules/nodes-pods-autoscaling-custom-creating-job.adoc[leveloffset=+2]
9198

0 commit comments

Comments
 (0)