mirror of
https://github.com/openshift/openshift-docs.git
synced 2026-02-05 12:46:18 +01:00
52 lines
1.5 KiB
Plaintext
52 lines
1.5 KiB
Plaintext
// Module included in the following assemblies:
|
|
//
|
|
// * observability/distr_tracing/distr-tracing-tempo-configuring.adoc
|
|
|
|
:_mod-docs-content-type: PROCEDURE
|
|
[id="configuring-tempostack-metrics-and-alerts_{context}"]
|
|
= Configuring the TempoStack metrics and alerts
|
|
|
|
You can enable metrics and alerts of TempoStack instances.
|
|
|
|
.Prerequisites
|
|
|
|
* Monitoring for user-defined projects is enabled in the cluster.
|
|
|
|
.Procedure
|
|
|
|
. To enable metrics of a TempoStack instance, set the `spec.observability.metrics.createServiceMonitors` field to `true`:
|
|
+
|
|
[source,yaml]
|
|
----
|
|
apiVersion: tempo.grafana.com/v1alpha1
|
|
kind: TempoStack
|
|
metadata:
|
|
name: <name>
|
|
spec:
|
|
observability:
|
|
metrics:
|
|
createServiceMonitors: true
|
|
----
|
|
|
|
. To enable alerts for a TempoStack instance, set the `spec.observability.metrics.createPrometheusRules` field to `true`:
|
|
+
|
|
[source,yaml]
|
|
----
|
|
apiVersion: tempo.grafana.com/v1alpha1
|
|
kind: TempoStack
|
|
metadata:
|
|
name: <name>
|
|
spec:
|
|
observability:
|
|
metrics:
|
|
createPrometheusRules: true
|
|
----
|
|
|
|
.Verification
|
|
|
|
You can use the *Administrator* view of the web console to verify successful configuration:
|
|
|
|
. Go to *Observe* -> *Targets*, filter for *Source: User*, and check that *ServiceMonitors* in the format `tempo-<instance_name>-<component>` have the *Up* status.
|
|
|
|
. To verify that alerts are set up correctly, go to *Observe* -> *Alerting* -> *Alerting rules*, filter for *Source: User*, and check that the *Alert rules* for the TempoStack instance components are available.
|