kube-prometheus Plugin
This plugin installs kube-prometheus in an existing Kubernetes cluster using the Helm chart.
Usage
tools:
# name of the tool
- name: kube-prometheus
# id of the tool instance
instanceID: default
# format: name.instanceID; If specified, dtm will make sure the dependency is applied first before handling this tool.
dependsOn: []
# 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.