Prometheus

The role performs various tasks related to OS configuration, chart deployment, reset and validation.

Role Settings

See the related role settings listed below, defined into main.yaml defaults file.

prometheus_vars.kubernetes

  • Default value: null

See the related child settings, listed below.

kubernetes.alertmanager

  • Default value: null
alertmanager.gateway
  • Default value: null

Read the Gateway API tutorial, for more details.

gateway.service
  • Default value: string, monitoring-kube-prometheus-alertmanager
gateway.subdomain
  • Default value: string, alertmanager

Sets the subdomain name for Alert Manager UI.

alertmanager.infrastructure
  • Default value: null
infrastructure.annotations
  • Default value: map

Sets the infrastructure annotations.

alertmanager.replicas
  • Default value: integer, 2
alertmanager.resources
  • Default value: null
resources.limits
  • Default value: null
limits.cpu
  • Default value: string, 400m
limits.memory
  • Default value: string, 256Mi
resources.requests
  • Default value: null
requests.cpu
  • Default value: string, 100m
requests.memory
  • Default value: string, 64Mi
alertmanager.storage
  • Default value: string, 5gi

kubernetes.helm

  • Default value: null
helm.chart
  • Default value: null
chart.name
  • Default value: string, kube-prometheus-stack
chart.prefix
  • Default value: string, monitoring
chart.version
  • Default value: string

Visit prometheus-community/helm-charts, for latest release version.

helm.repository
  • Default value: null
repository.name
  • Default value: string, helm-charts
repository.org
  • Default value: string, prometheus-community
repository.url
  • Default value: string, https://prometheus-community.github.io

kubernetes.grafana

  • Default value: null
grafana.gateway
  • Default value: null

Read the Gateway API tutorial, for more details.

gateway.service
  • Default value: string, monitoring-grafana
gateway.subdomain
  • Default value: string, grafana

Sets the subdomain name for Grafana UI.

grafana.infrastructure
  • Default value: null
infrastructure.annotations
  • Default value: map

Sets the infrastructure annotations.

grafana.secret
  • Default value: null
secret.name
  • Default value: string, grafana-credentials
grafana.user
  • Default value: null
user.name
  • Default value: string, admin
user.password
  • Default value: string

Encrypt the variable with ansible-vault.

kubernetes.namespace

  • Default value: string, kube-system

kubernetes.prometheus

  • Default value: null
prometheus.gateway
  • Default value: null

Read the Gateway API tutorial, for more details.

gateway.service
  • Default value: string, monitoring-kube-prometheus-prometheus
gateway.subdomain
  • Default value: string, prometheus

Sets the subdomain name for Prometheus UI.

prometheus.infrastructure
  • Default value: null
infrastructure.annotations
  • Default value: map

Sets the infrastructure annotations.

prometheus.resources
  • Default value: null
resources.limits
  • Default value: null
limits.cpu
  • Default value: string, 400m
limits.memory
  • Default value: string, 256Mi
resources.requests
  • Default value: null
requests.cpu
  • Default value: string, 100m
requests.memory
  • Default value: string, 64Mi
prometheus.storage
  • Default value: string, 50Gi

Role Tasks

See the related role tasks, listed below.

Facts

Ansible facts, see facts.yaml for details.

Main

Main role related tasks, see main.yaml for details.

Reset

Reset related tasks, see reset.yaml for details.

Validation

Validation related tasks, see validation.yaml for details.

Role Templates

See the related role templates, listed below.

Helm Chart

Helm chart values template, see values.j2 for details.

Alert Manager

Gateway

Kubernetes Gateway template, see alertmanager_gateway.j2 for details.

HTTP Route

Insecure Route

Kubernetes HTTPRoute template, see alertmanager_http_route.j2 for details.

Secure Route

Kubernetes HTTPRoute template, see alertmanager_https_route.j2 for details.

Grafana

Credentials

Kubernetes Secret template, see grafana_credentials.j2 for details.

Gateway

Kubernetes Gateway template, see grafana_gateway.j2 for details.

HTTP Route

Insecure Route

Kubernetes HTTPRoute template, see grafana_http_route.j2 for details.

Secure Route

Kubernetes HTTPRoute template, see grafana_https_route.j2 for details.

Prometheus

Gateway

Kubernetes Gateway template, see prometheus_gateway.j2 for details.

HTTP Route

Insecure Route

Kubernetes HTTPRoute template, see prometheus_http_route.j2 for details.

Secure Route

Kubernetes HTTPRoute template, see prometheus_https_route.j2 for details.