Skip to content
Open
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 26 additions & 2 deletions docs/setup-robusta/additional-settings.rst
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
:hide-toc:

Additional Settings
=======================

Expand Down Expand Up @@ -221,3 +219,29 @@ Add this to Robusta's Helm values:
memory: 2048Mi
limits:
memory: 2048Mi

Adding a Cluster Label to Alerts
---------------------------------------------
When using Robusta's built-in Prometheus stack, Robusta uses the ``cluster_name`` you set during installation to identify which alerts belong to which cluster.

If you forward external alerts to Robusta (e.g., from Grafana/Grafana Cloud), you will need to pass the ``cluster_name`` metadata manually. For example, if you use Grafana alerting, ensure that all your metrics and alerts have a ``cluster_name`` label.

You can add this label to all of your metrics using ``prometheus.prometheusSpec.additionalScrapeConfigs`` as mentioned below. Add the following config to your Helm values file.

.. code-block:: yaml

prometheus:
prometheusSpec:
additionalScrapeConfigs:
- job_name: "cluster-name-to-metric"
kubernetes_sd_configs:
- role: pod
metric_relabel_configs:
- target_label: cluster_name
replacement: "YOUR_ROBUSTA_CLUSTER_NAME" # This is the cluster name you set in the Helm values during Robusta installation

.. note::

1. ``cluster_name`` label will be added only to metrics after you add this config. i.e Previously scraped metrics will not have ``cluster_name`` label. **You will need to wait a few hours after adding this configuration for the label to show up on your alerts and be forwarded correctly.**
2. ``prometheus.prometheusSpec.externalLabels.cluster`` does not work for cases when you need ``cluster_name`` label in Grafana.

Loading