main.yaml 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. ---
  2. # defaults file for openshift_prometheus
  3. openshift_prometheus_state: present
  4. openshift_prometheus_node_exporter_install: true
  5. openshift_prometheus_namespace: openshift-metrics
  6. # defaults hosts for routes
  7. openshift_prometheus_hostname: prometheus-{{openshift_prometheus_namespace}}.{{openshift_master_default_subdomain}}
  8. openshift_prometheus_alerts_hostname: alerts-{{openshift_prometheus_namespace}}.{{openshift_master_default_subdomain}}
  9. openshift_prometheus_alertmanager_hostname: alertmanager-{{openshift_prometheus_namespace}}.{{openshift_master_default_subdomain}}
  10. openshift_prometheus_node_selector: {"region":"infra"}
  11. openshift_prometheus_service_port: 443
  12. openshift_prometheus_service_targetport: 8443
  13. openshift_prometheus_service_name: prometheus
  14. openshift_prometheus_reader_serviceaccount_name: prometheus-reader
  15. openshift_prometheus_alerts_service_targetport: 9443
  16. openshift_prometheus_alerts_service_name: alerts
  17. openshift_prometheus_alertmanager_service_targetport: 10443
  18. openshift_prometheus_alertmanager_service_name: alertmanager
  19. openshift_prometheus_serviceaccount_annotations: []
  20. l_openshift_prometheus_serviceaccount_annotations:
  21. - serviceaccounts.openshift.io/oauth-redirectreference.prom='{"kind":"OAuthRedirectReference","apiVersion":"v1","reference":{"kind":"Route","name":"prometheus"}}'
  22. - serviceaccounts.openshift.io/oauth-redirectreference.alerts='{"kind":"OAuthRedirectReference","apiVersion":"v1","reference":{"kind":"Route","name":"alerts"}}'
  23. - serviceaccounts.openshift.io/oauth-redirectreference.alertmanager='{"kind":"OAuthRedirectReference","apiVersion":"v1","reference":{"kind":"Route","name":"alertmanager"}}'
  24. # additional prometheus rules file
  25. openshift_prometheus_additional_rules_file: null
  26. #prometheus application arguments
  27. openshift_prometheus_args: ['--storage.tsdb.retention=6h']
  28. # storage
  29. # One of ['emptydir', 'pvc']
  30. openshift_prometheus_storage_type: "emptydir"
  31. openshift_prometheus_pvc_name: prometheus
  32. openshift_prometheus_pvc_size: "{{ openshift_prometheus_storage_volume_size | default('10Gi') }}"
  33. openshift_prometheus_pvc_access_modes: [ReadWriteOnce]
  34. openshift_prometheus_pvc_pv_selector: "{{ openshift_prometheus_storage_labels | default({}) }}"
  35. openshift_prometheus_sc_name: "{{ openshift_prometheus_storage_class | default(None) }}"
  36. # One of ['emptydir', 'pvc']
  37. openshift_prometheus_alertmanager_storage_type: "emptydir"
  38. openshift_prometheus_alertmanager_pvc_name: prometheus-alertmanager
  39. openshift_prometheus_alertmanager_pvc_size: "{{ openshift_prometheus_alertmanager_storage_volume_size | default('10Gi') }}"
  40. openshift_prometheus_alertmanager_pvc_access_modes: [ReadWriteOnce]
  41. openshift_prometheus_alertmanager_pvc_pv_selector: "{{ openshift_prometheus_alertmanager_storage_labels | default({}) }}"
  42. openshift_prometheus_alertmanager_sc_name: "{{ openshift_prometheus_alertmanager_storage_class | default(None) }}"
  43. # One of ['emptydir', 'pvc']
  44. openshift_prometheus_alertbuffer_storage_type: "emptydir"
  45. openshift_prometheus_alertbuffer_pvc_name: prometheus-alertbuffer
  46. openshift_prometheus_alertbuffer_pvc_size: "{{ openshift_prometheus_alertbuffer_storage_volume_size | default('10Gi') }}"
  47. openshift_prometheus_alertbuffer_pvc_access_modes: [ReadWriteOnce]
  48. openshift_prometheus_alertbuffer_pvc_pv_selector: "{{ openshift_prometheus_alertbuffer_storage_labels | default({}) }}"
  49. openshift_prometheus_alertbuffer_sc_name: "{{ openshift_prometheus_alertbuffer_storage_class | default(None) }}"
  50. # container resources
  51. openshift_prometheus_cpu_limit: null
  52. openshift_prometheus_memory_limit: null
  53. openshift_prometheus_cpu_requests: null
  54. openshift_prometheus_memory_requests: null
  55. openshift_prometheus_alertmanager_cpu_limit: null
  56. openshift_prometheus_alertmanager_memory_limit: null
  57. openshift_prometheus_alertmanager_cpu_requests: null
  58. openshift_prometheus_alertmanager_memory_requests: null
  59. openshift_prometheus_alertbuffer_cpu_limit: null
  60. openshift_prometheus_alertbuffer_memory_limit: null
  61. openshift_prometheus_alertbuffer_cpu_requests: null
  62. openshift_prometheus_alertbuffer_memory_requests: null
  63. openshift_prometheus_oauth_proxy_cpu_limit: null
  64. openshift_prometheus_oauth_proxy_memory_limit: null
  65. openshift_prometheus_oauth_proxy_cpu_requests: null
  66. openshift_prometheus_oauth_proxy_memory_requests: null
  67. openshift_prometheus_node_exporter_cpu_limit: 200m
  68. openshift_prometheus_node_exporter_memory_limit: 50Mi
  69. openshift_prometheus_node_exporter_cpu_requests: 100m
  70. openshift_prometheus_node_exporter_memory_requests: 30Mi