Prometheus
Overview
Prometheus is available as an add-on within Ankra's platform, providing an open-source monitoring and alerting toolkit designed for reliability and scalability. Prometheus allows you to collect and query metrics, visualize them, and set up alerts based on the collected data.
Configuration Options
The Prometheus add-on offers configurable inputs that allow you to customize the deployment based on your organization's needs. Below are the available inputs:
Inputs
-
Helm Chart Version
This input sets the version of the Prometheus Helm chart to deploy.- Default:
57.2.0
- Options:
57.2.0
(default)
Example:
helm_chart_version: "57.2.0"
- Default:
-
Slack Webhook URL
This input defines the Slack webhook URL for sending alerts. Populate this if you want to enable Slack alerting.- Default:
""
Example:
slack_webhook_url: "https://hooks.slack.com/services/your/slack/webhook"
- Default:
-
Persistence Enabled
This input allows you to enable or disable persistent storage for Prometheus.- Default:
true
- Options:
true
(default)false
Example:
persistence_enabled: "true"
- Default:
-
Storage Class
This input specifies the storage class for the Prometheus persistent storage.- Default:
ebs-sc
- Options:
ebs-sc
(default)""
Example:
storage_class: "ebs-sc"
- Default:
-
Storage Size
This input sets the size of the storage to use for Prometheus.- Default:
50Gi
Example:
storage_size: "50Gi"
- Default:
Usage
Deploying Prometheus
To deploy Prometheus in your Kubernetes cluster using Ankra, follow these steps:
-
Access the Add-ons Section
In Ankra's platform, navigate to the Add-ons section and select Prometheus from the list of available add-ons. -
Configure Inputs
You will be prompted to configure the following inputs:- Helm Chart Version: Set the version of the Prometheus Helm chart to install.
- Slack Webhook URL: Enter the Slack webhook URL for alerting.
- Persistence Enabled: Enable or disable persistent storage.
- Storage Class: Set the storage class for persistent storage.
- Storage Size: Define the storage size for Prometheus.
Example configuration:
helm_chart_version: "57.2.0"
slack_webhook_url: "https://hooks.slack.com/services/your/slack/webhook"
persistence_enabled: "true"
storage_class: "ebs-sc"
storage_size: "50Gi" -
Access
You can gain access from the URL you have provided during setup. You can get started with the admin account by extracting the admin-credentials secret and decode the secret data. Additionally Grafana is automatically configured to this prometheus. Access The data via Grafana dashboards.