Skip to content

Latest commit

 

History

History
46 lines (41 loc) · 1.59 KB

kube-prometheus_plugin.md

File metadata and controls

46 lines (41 loc) · 1.59 KB

1 kube-prometheus Plugin

This plugin installs kube-prometheus in an existing Kubernetes cluster using the Helm chart.

2 Usage:

tools:
# name of the instance with kube-prometheus
- name: kube-prometheus-dev
  plugin:
    # kind of the plugin
    kind: kube-prometheus
    # version of the plugin
    version: 0.2.0
  # options for the plugin
  options:
    # need to create the namespace or not, default: false
    create_namespace: false
    # Helm repo information
    repo:
      # name of the Helm repo
      name: prometheus-community
      # url of the Helm repo
      url: https://prometheus-community.github.io/helm-charts
    # Helm chart information
    chart:
      # name of the chart
      chart_name: prometheus-community/kube-prometheus-stack
      # release name of the chart
      release_name: dev
      # k8s namespace where kube-prometheus will be installed
      namespace: monitoring
      # whether to wait for the release to be deployed or not
      wait: true
      # the time to wait for any individual Kubernetes operation (like Jobs for hooks). This defaults to 5m0s
      timeout: 5m
      # whether to perform a CRD upgrade during installation
      upgradeCRDs: true
      # custom configuration (Optional). You can refer to [kube-prometheus-stack values.yaml](https://github.com/prometheus-community/helm-charts/blob/main/charts/kube-prometheus-stack/values.yaml)
      values_yaml: |
        namespaceOverride: "monitoring"

Currently, except for values_yaml, all the parameters in the example above are mandatory.