kube-prometheus Plugin

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

Usage

  1. tools:
  2. # name of the tool
  3. - name: kube-prometheus
  4. # id of the tool instance
  5. instanceID: default
  6. # format: name.instanceID; If specified, dtm will make sure the dependency is applied first before handling this tool.
  7. dependsOn: []
  8. # options for the plugin
  9. options:
  10. # need to create the namespace or not, default: false
  11. create_namespace: false
  12. # Helm repo information
  13. repo:
  14. # name of the Helm repo
  15. name: prometheus-community
  16. # url of the Helm repo
  17. url: https://prometheus-community.github.io/helm-charts
  18. # Helm chart information
  19. chart:
  20. # name of the chart
  21. chart_name: prometheus-community/kube-prometheus-stack
  22. # release name of the chart
  23. release_name: dev
  24. # k8s namespace where kube-prometheus will be installed
  25. namespace: monitoring
  26. # whether to wait for the release to be deployed or not
  27. wait: true
  28. # the time to wait for any individual Kubernetes operation (like Jobs for hooks). This defaults to 5m0s
  29. timeout: 5m
  30. # whether to perform a CRD upgrade during installation
  31. upgradeCRDs: true
  32. # 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)
  33. values_yaml: |
  34. namespaceOverride: "monitoring"

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