@@ -903,65 +903,66 @@ $ ansible-playbook -vvv -i ${INVENTORY_FILE} playbooks/byo/openshift-cluster/ope
903
903
The Prometheus server automatically exposes a Web UI at `localhost:9090`. You
904
904
can access the Prometheus Web UI with the `view` role.
905
905
906
- [openshift-prometheus-config]
906
+ [[ openshift-prometheus-config] ]
907
907
==== Configuring Prometheus for OpenShift
908
-
909
- Example Prometheus rules file:
910
- ----
911
- # additional prometheus rules file
912
- openshift_prometheus_additional_rules_file: null
913
-
914
- # All the required exports
915
- openshift_prometheus_pv_exports:
916
- - prometheus
917
- - prometheus-alertmanager
918
- - prometheus-alertbuffer
919
- # PV template files and their created object names
920
- openshift_prometheus_pv_data:
921
- - pv_name: prometheus
922
- pv_template: prom-pv-server.yml
923
- pv_label: Prometheus Server PV
924
- - pv_name: prometheus-alertmanager
925
- pv_template: prom-pv-alertmanager.yml
926
- pv_label: Prometheus Alertmanager PV
927
- - pv_name: prometheus-alertbuffer
928
- pv_template: prom-pv-alertbuffer.yml
929
- pv_label: Prometheus Alert Buffer PV
930
-
931
- # Hostname/IP of the NFS server.
932
- openshift_prometheus_storage_host
933
- openshift_prometheus_alertmanager_storage_host
934
- openshift_prometheus_alertbuffer_storage_host
935
-
936
- # storage
937
- openshift_prometheus_storage_type: pvc
938
- openshift_prometheus_pvc_name: prometheus
939
- openshift_prometheus_pvc_size: 10G
940
- openshift_prometheus_pvc_access_modes: [ReadWriteOnce]
941
- openshift_prometheus_pvc_pv_selector: {}
942
-
943
- openshift_prometheus_alertmanager_storage_type: pvc
944
- openshift_prometheus_alertmanager_pvc_name: prometheus-alertmanager
945
- openshift_prometheus_alertmanager_pvc_size: 10G
946
- openshift_prometheus_alertmanager_pvc_access_modes: [ReadWriteOnce]
947
- openshift_prometheus_alertmanager_pvc_pv_selector: {}
948
- openshift_prometheus_cpu_limit: null
949
- openshift_prometheus_memory_limit: null
950
- openshift_prometheus_cpu_requests: null
951
- openshift_prometheus_memory_requests: null
952
- openshift_prometheus_alertmanager_cpu_limit: null
953
- openshift_prometheus_alertmanager_memory_limit: null
954
- openshift_prometheus_alertmanager_cpu_requests: null
955
- openshift_prometheus_alertmanager_memory_requests: null
956
- openshift_prometheus_alertbuffer_cpu_limit: null
957
- openshift_prometheus_alertbuffer_memory_limit: null
958
- openshift_prometheus_alertbuffer_cpu_requests: null
959
- openshift_prometheus_alertbuffer_memory_requests: null
960
- openshift_prometheus_oauth_proxy_cpu_limit: null
961
- openshift_prometheus_oauth_proxy_memory_limit: null
962
- openshift_prometheus_oauth_proxy_cpu_requests: null
963
- openshift_prometheus_oauth_proxy_memory_requests: null
964
- ----
908
+ //
909
+ // Example Prometheus rules file:
910
+ // ----
911
+ // # additional prometheus rules file
912
+ // openshift_prometheus_additional_rules_file: null
913
+ //
914
+ // # All the required exports
915
+ // openshift_prometheus_pv_exports:
916
+ // - prometheus
917
+ // - prometheus-alertmanager
918
+ // - prometheus-alertbuffer
919
+ // # PV template files and their created object names
920
+ // openshift_prometheus_pv_data:
921
+ // - pv_name: prometheus
922
+ // pv_template: prom-pv-server.yml
923
+ // pv_label: Prometheus Server PV
924
+ // - pv_name: prometheus-alertmanager
925
+ // pv_template: prom-pv-alertmanager.yml
926
+ // pv_label: Prometheus Alertmanager PV
927
+ // - pv_name: prometheus-alertbuffer
928
+ // pv_template: prom-pv-alertbuffer.yml
929
+ // pv_label: Prometheus Alert Buffer PV
930
+ //
931
+ // # Hostname/IP of the NFS server.
932
+ // openshift_prometheus_storage_host
933
+ // openshift_prometheus_alertmanager_storage_host
934
+ // openshift_prometheus_alertbuffer_storage_host
935
+ //
936
+ // # storage
937
+ // openshift_prometheus_storage_type: pvc
938
+ // openshift_prometheus_pvc_name: prometheus
939
+ // openshift_prometheus_pvc_size: 10G
940
+ // openshift_prometheus_pvc_access_modes: [ReadWriteOnce]
941
+ // openshift_prometheus_pvc_pv_selector: {}
942
+ //
943
+ // openshift_prometheus_alertmanager_storage_type: pvc
944
+ // openshift_prometheus_alertmanager_pvc_name: prometheus-alertmanager
945
+ // openshift_prometheus_alertmanager_pvc_size: 10G
946
+ // openshift_prometheus_alertmanager_pvc_size: 10G
947
+ // openshift_prometheus_alertmanager_pvc_access_modes: [ReadWriteOnce]
948
+ // openshift_prometheus_alertmanager_pvc_pv_selector: {}
949
+ // openshift_prometheus_cpu_limit: null
950
+ // openshift_prometheus_memory_limit: null
951
+ // openshift_prometheus_cpu_requests: null
952
+ // openshift_prometheus_memory_requests: null
953
+ // openshift_prometheus_alertmanager_cpu_limit: null
954
+ // openshift_prometheus_alertmanager_memory_limit: null
955
+ // openshift_prometheus_alertmanager_cpu_requests: null
956
+ // openshift_prometheus_alertmanager_memory_requests: null
957
+ // openshift_prometheus_alertbuffer_cpu_limit: null
958
+ // openshift_prometheus_alertbuffer_memory_limit: null
959
+ // openshift_prometheus_alertbuffer_cpu_requests: null
960
+ // openshift_prometheus_alertbuffer_memory_requests: null
961
+ // openshift_prometheus_oauth_proxy_cpu_limit: null
962
+ // openshift_prometheus_oauth_proxy_memory_limit: null
963
+ // openshift_prometheus_oauth_proxy_cpu_requests: null
964
+ // openshift_prometheus_oauth_proxy_memory_requests: null
965
+ // ----
965
966
966
967
*Prometheus Storage Related Variables*
967
968
@@ -1018,7 +1019,8 @@ Prometheus].
1018
1019
1019
1020
[NOTE]
1020
1021
====
1021
- Metrics can be gathered from the `http://${POD_IP}:7575/metrics` endpoint.
1022
+ Once `openshift_metrics_project: openshift-infra` is installed, metrics can be
1023
+ gathered from the `http://${POD_IP}:7575/metrics` endpoint.
1022
1024
====
1023
1025
1024
1026
[[openshift-prometheus-undeploy]]
@@ -1027,5 +1029,5 @@ Metrics can be gathered from the `http://${POD_IP}:7575/metrics` endpoint.
1027
1029
To undeploy Prometheus, run:
1028
1030
1029
1031
----
1030
- $ ansible-playbook -vvv -i ${INVENTORY_FILE} playbooks/byo/openshift-cluster/openshift-prometheus.yml
1032
+ $ ansible-playbook -vvv -i ${INVENTORY_FILE} playbooks/byo/openshift-cluster/openshift-prometheus.yml -e openshift_prometheus_state=absent
1031
1033
----
0 commit comments