|
7 年之前 | |
---|---|---|
.. | ||
defaults | 7 年之前 | |
files | 7 年之前 | |
meta | 7 年之前 | |
tasks | 7 年之前 | |
README.md | 7 年之前 |
The OpenShift Cluster Monitoring Operator role manages the Tectonic Prometheus Operator deployment. TPO is an operator that deploys our monitoring stack (Prometheus, Alertmanager) with out-of-the-box alerts and metrics.
The following sections are to guide component owners to shipping new integrations with the monitoring stack.
To develop new component integrations, try the following.
Create a GCE cluster with the monitoring stack enabled by editing your profile prior to launch (e.g. gcp-dev/vars.yaml
):
openshift_monitoring_deploy: true
Clone the Tectonic Prometheus Operator repository.
To register a new component for metrics scraping:
Create the new ServiceMonitor
manually with:
oc apply -n openshift-monitoring -f assets/prometheus-k8s/prometheus-k8s-service-monitor-$COMPONENT.yaml`
To add a new alerting rule:
Rebuild the rules ConfigMap
manually with:
hack/generate-rules-configmap.sh k8s | oc apply -n openshift-monitoring -f -
To ship a new component integration, the following things must happen:
The component must be accepted into Tectonic Prometheus Operator and available in a new Tectonic Prometheus Operator image.
The openshift_cluster_monitoring_operator
role must be updated to use the new Tectonic Prometheus Operator image containing the new component integration.
See the openshift-monitoring playbook for installation options.
For default values, see defaults/main.yaml
.
openshift_cluster_monitoring_operator_install
: true - install/update. false - uninstall. Defaults to true.openshift_cluster_monitoring_operator_image
: TPO image to useopenshift_cluster_monitoring_operator_prometheus_operator_repo
: Prometheus Operator repo to pull the image fromopenshift_cluster_monitoring_operator_prometheus_repo
: Prometheus repo to pull the image fromopenshift_cluster_monitoring_operator_alertmanager_repo
: Alertmanager repo to pull the image fromopenshift_cluster_monitoring_operator_prometheus_reloader_repo
: Prometheus Reloader repo to pull the image fromopenshift_cluster_monitoring_oeprator_configmap_reloader_repo
: ConfigMap reloader repo to pull the image fromAnsible 2.4
Apache License, Version 2.0