Deploy Prometheus
This pages describes how to deploy Prometheus alongside Grafana to enable built-in metrics, alerts, and dashboards for kdb Insights Enterprise.
kdb Insights Enterprise produces metrics and includes pre-packaged alerts in order for you to monitor the state of the application.
kdb Insights Enterprise also provides pre-packaged Grafana dashboards that provide visualizations to assist with monitoring kdb Insights Enterprise.
They are all designed to work with the Prometheus stack but do not ship with it. You must deploy the Prometheus stack and enable the application to integrate with it.
This page describes how to install Prometheus. To enable metrics, alerts and dashboards at installation time, use the details provided here.
Prometheus
The most common method of deploying Prometheus is the Prometheus operator.
This can be deployed alongside Grafana for visualizations, and Kubernetes node metrics exporters to gather cluster-wide metrics. One example of this is the kube-prometheus-stack Helm chart. This is what we will install.
Deploying Prometheus
The kube-prometheus-stack
is usually deployed within its own namespace using Helm.
Full installation details are provided
here.
-
Create a namespace.
bash
Copykubectl create ns monitoring
-
Install using Helm.
bash
Copyexport RELEASE_NAME=kx-prom
helm repo add prometheus-community https://prometheus-community.github.io/helm-charts
helm repo update
helm install $RELEASE_NAME prometheus-community/kube-prometheus-stack -n monitoring
Note
Record the release name
Take note of your chosen $RELEASE_NAME
as this is required when configuring kdb Insights Enterprise.
In the example above, this is kx-prom
.
To enable metrics at installation time, use the details here.