main.yaml 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. ---
  2. # We should probably use something more official here.
  3. openshift_grafana_image: "docker.io/mrsiano/grafana-ocp:latest"
  4. openshift_grafana_proxy_image: "{{ l2_os_logging_proxy_image }}"
  5. openshift_grafana_state: present
  6. openshift_grafana_namespace: openshift-grafana
  7. openshift_grafana_pod_timeout: 300
  8. openshift_grafana_prometheus_namespace: "{{ openshift_prometheus_namespace | default('openshift-metrics') }}"
  9. openshift_grafana_prometheus_serviceaccount: prometheus-reader
  10. openshift_grafana_serviceaccount_name: grafana
  11. openshift_grafana_serviceaccount_annotations: []
  12. l_openshift_grafana_serviceaccount_annotations:
  13. - serviceaccounts.openshift.io/oauth-redirectreference.primary='{"kind":"OAuthRedirectReference","apiVersion":"v1","reference":{"kind":"Route","name":"grafana"}}'
  14. openshift_grafana_datasource_name: "prometheus"
  15. openshift_grafana_node_exporter: false
  16. openshift_grafana_graph_granularity: "2m"
  17. openshift_grafana_node_selector: {"node-role.kubernetes.io/infra":"true"}
  18. openshift_grafana_hostname: grafana-{{openshift_grafana_namespace}}.{{openshift_master_default_subdomain}}
  19. openshift_grafana_service_name: grafana
  20. openshift_grafana_service_port: 443
  21. openshift_grafana_service_targetport: 8443
  22. openshift_grafana_container_port: 3000
  23. openshift_grafana_storage_type: "emptydir"
  24. openshift_grafana_pvc_name: grafana
  25. openshift_grafana_pvc_size: "{{ openshift_grafana_storage_volume_size | default('10Gi') }}"
  26. openshift_grafana_pvc_access_modes: [ReadWriteOnce]
  27. openshift_grafana_pvc_pv_selector: "{{ openshift_grafana_storage_labels | default({}) }}"
  28. openshift_grafana_sc_name: "{{ openshift_grafana_storage_class | default(None) }}"
  29. openshift_grafana_dashboards: []
  30. l_openshift_grafana_dashboards:
  31. - openshift-cluster-monitoring.json
  32. - node-exporter-full-dashboard.json
  33. # container resources
  34. openshift_grafana_cpu_limit: null
  35. openshift_grafana_memory_limit: null
  36. openshift_grafana_cpu_requests: null
  37. openshift_grafana_memory_requests: null
  38. openshift_grafana_oauth_proxy_cpu_limit: null
  39. openshift_grafana_oauth_proxy_memory_limit: null
  40. openshift_grafana_oauth_proxy_cpu_requests: null
  41. openshift_grafana_oauth_proxy_memory_requests: null
  42. openshift_grafana_datasource_payload:
  43. name: grafana_name
  44. type: prometheus
  45. typeLogoUrl: ''
  46. access: proxy
  47. url: https://prometheus_url
  48. basicAuth: false
  49. withCredentials: false
  50. jsonData:
  51. tlsSkipVerify: true
  52. token: satoken