Skip to content

Commit 4210362

Browse files
authored
Merge pull request #6409 from bmcelvee/Trello-630-Follow-up
Trello-630-Follow-up Continuing Development of Prometheus Content
2 parents acf10bb + 53e50bf commit 4210362

File tree

1 file changed

+62
-60
lines changed

1 file changed

+62
-60
lines changed

install_config/cluster_metrics.adoc

Lines changed: 62 additions & 60 deletions
Original file line numberDiff line numberDiff line change
@@ -903,65 +903,66 @@ $ ansible-playbook -vvv -i ${INVENTORY_FILE} playbooks/byo/openshift-cluster/ope
903903
The Prometheus server automatically exposes a Web UI at `localhost:9090`. You
904904
can access the Prometheus Web UI with the `view` role.
905905

906-
[openshift-prometheus-config]
906+
[[openshift-prometheus-config]]
907907
==== 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+
// ----
965966

966967
*Prometheus Storage Related Variables*
967968

@@ -1018,7 +1019,8 @@ Prometheus].
10181019

10191020
[NOTE]
10201021
====
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.
10221024
====
10231025

10241026
[[openshift-prometheus-undeploy]]
@@ -1027,5 +1029,5 @@ Metrics can be gathered from the `http://${POD_IP}:7575/metrics` endpoint.
10271029
To undeploy Prometheus, run:
10281030

10291031
----
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
10311033
----

0 commit comments

Comments
 (0)