Questo contenuto non è disponibile nella lingua selezionata.
Chapter 1. Monitoring APIs
1.1. Alertmanager [monitoring.coreos.com/v1] Copia collegamentoCollegamento copiato negli appunti!
- Description
The
Alertmanagercustom resource definition (CRD) defines a desired [Alertmanager](https://prometheus.io/docs/alerting) setup to run in a Kubernetes cluster. It allows to specify many options such as the number of replicas, persistent storage and many more.For each
Alertmanagerresource, the Operator deploys aStatefulSetin the same namespace. When there are two or more configured replicas, the Operator runs the Alertmanager instances in high-availability mode.The resource defines via label and namespace selectors which
AlertmanagerConfigobjects should be associated to the deployed Alertmanager instances.- Type
-
object
1.2. AlertmanagerConfig [monitoring.coreos.com/v1beta1] Copia collegamentoCollegamento copiato negli appunti!
- Description
The
AlertmanagerConfigcustom resource definition (CRD) defines howAlertmanagerobjects process Prometheus alerts. It allows to specify alert grouping and routing, notification receivers and inhibition rules.Alertmanagerobjects selectAlertmanagerConfigobjects using label and namespace selectors.- Type
-
object
1.3. AlertRelabelConfig [monitoring.openshift.io/v1] Copia collegamentoCollegamento copiato negli appunti!
- Description
AlertRelabelConfig defines a set of relabel configs for alerts.
Compatibility level 1: Stable within a major release for a minimum of 12 months or 3 minor releases (whichever is longer).
- Type
-
object
1.4. AlertingRule [monitoring.openshift.io/v1] Copia collegamentoCollegamento copiato negli appunti!
- Description
AlertingRule represents a set of user-defined Prometheus rule groups containing alerting rules. This resource is the supported method for cluster admins to create alerts based on metrics recorded by the platform monitoring stack in OpenShift, i.e. the Prometheus instance deployed to the openshift-monitoring namespace. You might use this to create custom alerting rules not shipped with OpenShift based on metrics from components such as the node_exporter, which provides machine-level metrics such as CPU usage, or kube-state-metrics, which provides metrics on Kubernetes usage.
The API is mostly compatible with the upstream PrometheusRule type from the prometheus-operator. The primary difference being that recording rules are not allowed here — only alerting rules. For each AlertingRule resource created, a corresponding PrometheusRule will be created in the openshift-monitoring namespace. OpenShift requires admins to use the AlertingRule resource rather than the upstream type in order to allow better OpenShift specific defaulting and validation, while not modifying the upstream APIs directly.
You can find upstream API documentation for PrometheusRule resources here:
https://github.com/prometheus-operator/prometheus-operator/blob/main/Documentation/api.md
Compatibility level 1: Stable within a major release for a minimum of 12 months or 3 minor releases (whichever is longer).
- Type
-
object
1.5. PodMonitor [monitoring.coreos.com/v1] Copia collegamentoCollegamento copiato negli appunti!
- Description
The
PodMonitorcustom resource definition (CRD) defines howPrometheusandPrometheusAgentcan scrape metrics from a group of pods. Among other things, it allows to specify: * The pods to scrape via label selectors. * The container ports to scrape. * Authentication credentials to use. * Target and metric relabeling.PrometheusandPrometheusAgentobjects selectPodMonitorobjects using label and namespace selectors.- Type
-
object
1.6. Probe [monitoring.coreos.com/v1] Copia collegamentoCollegamento copiato negli appunti!
- Description
The
Probecustom resource definition (CRD) defines how to scrape metrics from prober exporters such as the [blackbox exporter](https://github.com/prometheus/blackbox_exporter).The
Proberesource needs 2 pieces of information: * The list of probed addresses which can be defined statically or by discovering Kubernetes Ingress objects. * The prober which exposes the availability of probed endpoints (over various protocols such HTTP, TCP, ICMP, …) as Prometheus metrics.PrometheusandPrometheusAgentobjects selectProbeobjects using label and namespace selectors.- Type
-
object
1.7. Prometheus [monitoring.coreos.com/v1] Copia collegamentoCollegamento copiato negli appunti!
- Description
The
Prometheuscustom resource definition (CRD) defines a desired [Prometheus](https://prometheus.io/docs/prometheus) setup to run in a Kubernetes cluster. It allows to specify many options such as the number of replicas, persistent storage, and Alertmanagers where firing alerts should be sent and many more.For each
Prometheusresource, the Operator deploys one or severalStatefulSetobjects in the same namespace. The number of StatefulSets is equal to the number of shards which is 1 by default.The resource defines via label and namespace selectors which
ServiceMonitor,PodMonitor,ProbeandPrometheusRuleobjects should be associated to the deployed Prometheus instances.The Operator continuously reconciles the scrape and rules configuration and a sidecar container running in the Prometheus pods triggers a reload of the configuration when needed.
- Type
-
object
1.8. PrometheusRule [monitoring.coreos.com/v1] Copia collegamentoCollegamento copiato negli appunti!
- Description
The
PrometheusRulecustom resource definition (CRD) defines [alerting](https://prometheus.io/docs/prometheus/latest/configuration/alerting_rules/) and [recording](https://prometheus.io/docs/prometheus/latest/configuration/recording_rules/) rules to be evaluated byPrometheusorThanosRulerobjects.PrometheusandThanosRulerobjects selectPrometheusRuleobjects using label and namespace selectors.- Type
-
object
1.9. ServiceMonitor [monitoring.coreos.com/v1] Copia collegamentoCollegamento copiato negli appunti!
- Description
The
ServiceMonitorcustom resource definition (CRD) defines howPrometheusandPrometheusAgentcan scrape metrics from a group of services. Among other things, it allows to specify: * The services to scrape via label selectors. * The container ports to scrape. * Authentication credentials to use. * Target and metric relabeling.PrometheusandPrometheusAgentobjects selectServiceMonitorobjects using label and namespace selectors.- Type
-
object
1.10. ThanosRuler [monitoring.coreos.com/v1] Copia collegamentoCollegamento copiato negli appunti!
- Description
The
ThanosRulercustom resource definition (CRD) defines a desired [Thanos Ruler](https://github.com/thanos-io/thanos/blob/main/docs/components/rule.md) setup to run in a Kubernetes cluster.A
ThanosRulerinstance requires at least one compatible Prometheus API endpoint (either Thanos Querier or Prometheus services).The resource defines via label and namespace selectors which
PrometheusRuleobjects should be associated to the deployed Thanos Ruler instances.- Type
-
object
1.11. NodeMetrics [metrics.k8s.io/v1beta1] Copia collegamentoCollegamento copiato negli appunti!
- Description
- NodeMetrics sets resource usage metrics of a node.
- Type
-
object
1.12. PodMetrics [metrics.k8s.io/v1beta1] Copia collegamentoCollegamento copiato negli appunti!
- Description
- PodMetrics sets resource usage metrics of a pod.
- Type
-
object