main.yaml 7.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116
  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. # Need to standardise these tags
  7. l_openshift_prometheus_version_dict:
  8. origin:
  9. prometheus: 'v2.2.1'
  10. alert_manager: 'v0.14.0'
  11. alert_buffer: 'v0.0.2'
  12. node_exporter: 'v0.15.2'
  13. openshift-enterprise:
  14. prometheus: "{{ openshift_image_tag }}"
  15. alert_manager: "{{ openshift_image_tag }}"
  16. alert_buffer: "{{ openshift_image_tag }}"
  17. node_exporter: "{{ openshift_image_tag }}"
  18. l_openshift_prometheus_alertmanager_version: "{{ l_openshift_prometheus_version_dict[openshift_deployment_type]['alert_manager'] }}"
  19. l_openshift_prometheus_alertmanager_image: "{{ l_os_logging_non_standard_reg_url | regex_replace('${version}' | regex_escape, l_openshift_prometheus_alertmanager_version) }}"
  20. openshift_prometheus_alertmanager_image: "{{ l_openshift_prometheus_alertmanager_image | regex_replace(l_os_logging_non_standard_reg_search | regex_escape, 'prometheus-alertmanager') }}"
  21. l_openshift_prometheus_alertbuffer_version: "{{ l_openshift_prometheus_version_dict[openshift_deployment_type]['alert_buffer'] }}"
  22. l_openshift_prometheus_alertbuffer_image: "{{ l_os_logging_non_standard_reg_url | regex_replace('${version}' | regex_escape, l_openshift_prometheus_alertbuffer_version) }}"
  23. openshift_prometheus_alertbuffer_image: "{{ l_openshift_prometheus_alertbuffer_image | regex_replace(l_os_logging_non_standard_reg_search | regex_escape, 'prometheus-alert-buffer') }}"
  24. l_openshift_prometheus_node_exporter_version: "{{ l_openshift_prometheus_version_dict[openshift_deployment_type]['node_exporter'] }}"
  25. l_openshift_prometheus_node_exporter_image: "{{ l_os_logging_non_standard_reg_url | regex_replace('${version}' | regex_escape, l_openshift_prometheus_node_exporter_version) }}"
  26. openshift_prometheus_node_exporter_image: "{{ l_openshift_prometheus_node_exporter_image | regex_replace(l_os_logging_non_standard_reg_search | regex_escape, 'prometheus-node-exporter') }}"
  27. l_openshift_prometheus_version: "{{ l_openshift_prometheus_version_dict[openshift_deployment_type]['prometheus'] }}"
  28. l_openshift_prometheus_image: "{{ l_os_logging_non_standard_reg_url | regex_replace('${version}' | regex_escape, l_openshift_prometheus_version) }}"
  29. openshift_prometheus_image: "{{ l_openshift_prometheus_image | regex_replace(l_os_logging_non_standard_reg_search | regex_escape, 'prometheus') }}"
  30. openshift_prometheus_proxy_image: "{{ l2_os_logging_proxy_image }}"
  31. # defaults hosts for routes
  32. openshift_prometheus_hostname: prometheus-{{openshift_prometheus_namespace}}.{{openshift_master_default_subdomain}}
  33. openshift_prometheus_alerts_hostname: alerts-{{openshift_prometheus_namespace}}.{{openshift_master_default_subdomain}}
  34. openshift_prometheus_alertmanager_hostname: alertmanager-{{openshift_prometheus_namespace}}.{{openshift_master_default_subdomain}}
  35. l_openshift_prometheus_image_version: "{{ openshift_prometheus_image_version | default('v2.2.1') }}"
  36. l_openshift_prometheus_alertmanager_image_version: "{{ openshift_prometheus_alertmanager_image_version | default('v0.14.0') }}"
  37. l_openshift_prometheus_alertbuffer_image_version: "{{ openshift_prometheus_alertbuffer_image_version | default('v0.0.2') }}"
  38. l_openshift_prometheus_node_exporter_image_version: "{{ openshift_prometheus_node_exporter_image_version | default('v0.15.2') }}"
  39. openshift_prometheus_node_selector: {"node-role.kubernetes.io/infra":"true"}
  40. openshift_prometheus_service_port: 443
  41. openshift_prometheus_service_targetport: 8443
  42. openshift_prometheus_service_name: prometheus
  43. openshift_prometheus_reader_serviceaccount_name: prometheus-reader
  44. openshift_prometheus_alerts_service_targetport: 9443
  45. openshift_prometheus_alerts_service_name: alerts
  46. openshift_prometheus_alertmanager_service_targetport: 10443
  47. openshift_prometheus_alertmanager_service_name: alertmanager
  48. openshift_prometheus_serviceaccount_annotations: []
  49. l_openshift_prometheus_serviceaccount_annotations:
  50. - serviceaccounts.openshift.io/oauth-redirectreference.prom='{"kind":"OAuthRedirectReference","apiVersion":"v1","reference":{"kind":"Route","name":"prometheus"}}'
  51. - serviceaccounts.openshift.io/oauth-redirectreference.alerts='{"kind":"OAuthRedirectReference","apiVersion":"v1","reference":{"kind":"Route","name":"alerts"}}'
  52. - serviceaccounts.openshift.io/oauth-redirectreference.alertmanager='{"kind":"OAuthRedirectReference","apiVersion":"v1","reference":{"kind":"Route","name":"alertmanager"}}'
  53. # additional prometheus rules file
  54. openshift_prometheus_additional_rules_file: null
  55. #prometheus application arguments
  56. openshift_prometheus_args: ['--storage.tsdb.retention=3d']
  57. # storage
  58. # One of ['emptydir', 'pvc']
  59. openshift_prometheus_storage_type: "emptydir"
  60. openshift_prometheus_pvc_name: prometheus
  61. openshift_prometheus_pvc_size: "{{ openshift_prometheus_storage_volume_size | default('10Gi') }}"
  62. openshift_prometheus_pvc_access_modes: [ReadWriteOnce]
  63. openshift_prometheus_pvc_pv_selector: "{{ openshift_prometheus_storage_labels | default({}) }}"
  64. openshift_prometheus_sc_name: "{{ openshift_prometheus_storage_class | default(None) }}"
  65. # One of ['emptydir', 'pvc']
  66. openshift_prometheus_alertmanager_storage_type: "emptydir"
  67. openshift_prometheus_alertmanager_pvc_name: prometheus-alertmanager
  68. openshift_prometheus_alertmanager_pvc_size: "{{ openshift_prometheus_alertmanager_storage_volume_size | default('10Gi') }}"
  69. openshift_prometheus_alertmanager_pvc_access_modes: [ReadWriteOnce]
  70. openshift_prometheus_alertmanager_pvc_pv_selector: "{{ openshift_prometheus_alertmanager_storage_labels | default({}) }}"
  71. openshift_prometheus_alertmanager_sc_name: "{{ openshift_prometheus_alertmanager_storage_class | default(None) }}"
  72. # One of ['emptydir', 'pvc']
  73. openshift_prometheus_alertbuffer_storage_type: "emptydir"
  74. openshift_prometheus_alertbuffer_pvc_name: prometheus-alertbuffer
  75. openshift_prometheus_alertbuffer_pvc_size: "{{ openshift_prometheus_alertbuffer_storage_volume_size | default('10Gi') }}"
  76. openshift_prometheus_alertbuffer_pvc_access_modes: [ReadWriteOnce]
  77. openshift_prometheus_alertbuffer_pvc_pv_selector: "{{ openshift_prometheus_alertbuffer_storage_labels | default({}) }}"
  78. openshift_prometheus_alertbuffer_sc_name: "{{ openshift_prometheus_alertbuffer_storage_class | default(None) }}"
  79. # container resources
  80. openshift_prometheus_cpu_limit: null
  81. openshift_prometheus_memory_limit: null
  82. openshift_prometheus_cpu_requests: null
  83. openshift_prometheus_memory_requests: null
  84. openshift_prometheus_alertmanager_cpu_limit: null
  85. openshift_prometheus_alertmanager_memory_limit: null
  86. openshift_prometheus_alertmanager_cpu_requests: null
  87. openshift_prometheus_alertmanager_memory_requests: null
  88. openshift_prometheus_alertbuffer_cpu_limit: null
  89. openshift_prometheus_alertbuffer_memory_limit: null
  90. openshift_prometheus_alertbuffer_cpu_requests: null
  91. openshift_prometheus_alertbuffer_memory_requests: null
  92. openshift_prometheus_oauth_proxy_cpu_limit: null
  93. openshift_prometheus_oauth_proxy_memory_limit: null
  94. openshift_prometheus_oauth_proxy_cpu_requests: null
  95. openshift_prometheus_oauth_proxy_memory_requests: null
  96. openshift_prometheus_node_exporter_cpu_limit: 200m
  97. openshift_prometheus_node_exporter_memory_limit: 50Mi
  98. openshift_prometheus_node_exporter_cpu_requests: 100m
  99. openshift_prometheus_node_exporter_memory_requests: 30Mi