---
openshift_metrics_cassandra_image: "{{ openshift_facts_versioned_registry_url | regex_replace(l_openshift_logging_search | regex_escape, 'metrics-cassandra') }}"
openshift_metrics_hawkular_agent_image: "{{ openshift_facts_versioned_registry_url | regex_replace(l_openshift_logging_search | regex_escape, 'metrics-hawkular-openshift-agent') }}"
openshift_metrics_hawkular_metrics_image: "{{ openshift_facts_versioned_registry_url | regex_replace(l_openshift_logging_search | regex_escape, 'metrics-hawkular-metrics') }}"
openshift_metrics_schema_installer_image: "{{ openshift_facts_versioned_registry_url | regex_replace(l_openshift_logging_search | regex_escape, 'metrics-schema-installer') }}"
openshift_metrics_heapster_image: "{{ openshift_facts_versioned_registry_url | regex_replace(l_openshift_logging_search | regex_escape, 'metrics-heapster') }}"

openshift_metrics_start_cluster: True
openshift_metrics_install_metrics: False
openshift_metrics_startup_timeout: 500

openshift_metrics_hawkular_replicas: 1
openshift_metrics_hawkular_limits_memory: 2.5G
openshift_metrics_hawkular_limits_cpu: null
openshift_metrics_hawkular_requests_memory: 1.5G
openshift_metrics_hawkular_requests_cpu: null
openshift_metrics_hawkular_cert: ""
openshift_metrics_hawkular_key: ""
openshift_metrics_hawkular_ca: ""
openshift_metrics_hawkular_nodeselector: ""
openshift_metrics_hawkular_route_annotations: {}
openshift_metrics_hawkular_readiness_probe_failure_threshold: 3
openshift_metrics_hawkular_liveness_probe_failure_threshold: 3

openshift_metrics_cassandra_replicas: 1
openshift_metrics_cassandra_storage_type: "{{ openshift_metrics_storage_kind | default('emptydir') }}"
openshift_metrics_cassandra_pvc_size: "{{ openshift_metrics_storage_volume_size | default('10Gi') }}"
openshift_metrics_cassandra_pv_selector: "{{ openshift_metrics_storage_labels | default('') }}"
openshift_metrics_cassandra_limits_memory: 2G
openshift_metrics_cassandra_limits_cpu: null
openshift_metrics_cassandra_requests_memory: 1G
openshift_metrics_cassandra_requests_cpu: null
openshift_metrics_cassandra_nodeselector: ""
openshift_metrics_cassandra_storage_group: 65534
openshift_metrics_cassandra_take_snapshot: False
openshift_metrics_cassandra_readprobe_initialdelay: null
openshift_metrics_cassandra_readprobe_timeout: 10

openshift_metrics_heapster_standalone: False
openshift_metrics_heapster_limits_memory: 3.75G
openshift_metrics_heapster_limits_cpu: null
openshift_metrics_heapster_requests_memory: 0.9375G
openshift_metrics_heapster_requests_cpu: null
openshift_metrics_heapster_nodeselector: ""
openshift_metrics_heapster_concurrency_limit: 5

openshift_metrics_schema_job_nodeselector: ""

openshift_metrics_install_hawkular_agent: False
openshift_metrics_hawkular_agent_limits_memory: null
openshift_metrics_hawkular_agent_limits_cpu: null
openshift_metrics_hawkular_agent_requests_memory: null
openshift_metrics_hawkular_agent_requests_cpu: null
openshift_metrics_hawkular_agent_nodeselector: ""
openshift_metrics_hawkular_agent_namespace: "default"

openshift_metrics_hawkular_hostname: "hawkular-metrics.{{openshift_master_default_subdomain}}"

openshift_metrics_duration: 7
openshift_metrics_resolution: 30s

#####
# Caution should be taken for the following defaults before
# overriding the values here
#####

openshift_metrics_master_url: https://kubernetes.default.svc
openshift_metrics_node_id: nodename
openshift_metrics_project: openshift-infra

openshift_metrics_cassandra_pvc_prefix: metrics-cassandra
openshift_metrics_cassandra_pvc_access: "{{ openshift_metrics_storage_access_modes | default(['ReadWriteOnce']) }}"

openshift_metrics_hawkular_user_write_access: False

openshift_metrics_heapster_allowed_users: system:master-proxy

openshift_metrics_cassandra_enable_prometheus_endpoint: True
openshift_metrics_hawkular_enable_prometheus_endpoint: True
openshift_metrics_hawkular_fips: False
