Skip to content

Commit 977d0e2

Browse files
committed
docs(add): feedback
1 parent 9fcaafc commit 977d0e2

File tree

6 files changed

+69
-24
lines changed

6 files changed

+69
-24
lines changed

pages/cockpit/how-to/access-grafana-and-managed-dashboards.mdx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,11 @@ title: How to access Grafana and your preconfigured dashboards
33
description: Learn to access your Grafana preconfigured dashboards, including steps to log in, navigate, and view your resources.
44
tags: observability cockpit grafana preconfigured-dashboard
55
dates:
6+
<<<<<<< HEAD
67
validation: 2025-07-22
8+
=======
9+
validation: 2024-08-20
10+
>>>>>>> be1419eb2 (docs(add): feedback)
711
posted: 2022-10-31
812
---
913
import Requirements from '@macros/iam/requirements.mdx'
@@ -24,7 +28,7 @@ This page shows you how to access [preconfigured dashboards](/cockpit/concepts/#
2428
2. Click **Open dashboards** to open your preconfigured dashboards in Grafana. You are redirected to the Grafana website.
2529
3. Enter your [Grafana credentials](/cockpit/how-to/retrieve-grafana-credentials/).
2630
4. Click **Log in**. The Grafana overview page displays.
27-
5. Click the **Home** icon at the top left of your screen.
31+
5. Click the Grafana icon in the top left side of your screen to open the menu.
2832
6. Click **Dashboard**. The Scaleway folder appears, with a list of all available preconfigured dashboards for Scaleway resources.
2933
7. Click the dashboard you want to view.
3034

pages/cockpit/how-to/configure-alerts-for-scw-resources.mdx

Lines changed: 44 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
title: How to configure alerts for Scaleway resources in Grafana
33
description: Learn how to configure alerts for Scaleway resources in Grafana. Follow the steps to create alert rules, define conditions, and set up notifications for your monitored resources.
44
dates:
5-
validation: 2025-07-18
5+
validation: 2025-08-20
66
posted: 2023-11-06
77
---
88
import Requirements from '@macros/iam/requirements.mdx'
@@ -15,7 +15,15 @@ import AlertsFiringGrafana from './assets/scaleway-alert-firing.webp'
1515
import AlertsViaGrafanaUI from './assets/scaleway-alerts-via-grafana-ui.webp'
1616

1717

18+
<<<<<<< HEAD
1819
Cockpit does not support Grafana-managed alerting. It integrates with Grafana to visualize metrics, but alerts are managed through the Scaleway alert manager. You should use Grafana only to define alert rules, not to evaluate or receive alert notifications. Once the conditions of your alert rule are met, the Scaleway alert manager evaluates the rule and sends a notification to the contacts you have configured in the Scaleway console or in Grafana.
20+
=======
21+
Cockpit does not support the Grafana alert manager nor Grafana-managed alert rules. You should only use the Grafana interface to define alert rules, not to evaluate or receive alert notifications. Alerting rules are evaluated at the data source level and notifications are handled and sent out by the Scaleway alert manager only.
22+
23+
Once the conditions of your alert rule are met, the rule evaluation engine of your data source forwards the firing alert to the Scaleway alert manager, which then sends a notification to the contacts you have configured in the Scaleway console or in Grafana.
24+
25+
You can also create alerting rules on your custom data sources.
26+
>>>>>>> be1419eb2 (docs(add): feedback)
1927

2028
This page shows you how to create alert rules in Grafana for monitoring Scaleway resources integrated with Cockpit, such as Instances, Object Storage, and Kubernetes. These alerts rely on Scaleway-provided metrics, which are preconfigured and available in the **Metrics browser** drop-down when using the **Scaleway Metrics data source** in the Grafana interface. This page explains how to use the `Scaleway Metrics` data source, interpret metrics, set alert conditions, and activate alerts.
2129

@@ -25,12 +33,17 @@ This page shows you how to create alert rules in Grafana for monitoring Scaleway
2533
- [Owner](/iam/concepts/#owner) status or [IAM permissions](/iam/concepts/#permission) allowing you to perform actions in the intended Organization
2634
- Scaleway resources you can monitor
2735
- [Created Grafana credentials](/cockpit/how-to/retrieve-grafana-credentials/) with the **Editor** role
36+
<<<<<<< HEAD
2837
- [Enabled](/cockpit/how-to/enable-alert-manager/) the Scaleway alert manager
2938
- [Created](/cockpit/how-to/add-contact-points/) a contact in the Scaleway console or a contact point in Grafana (with the `Scaleway Alerting` alert manager of the same region as your `Scaleway Metrics` data source), otherwise alerts will not be delivered
39+
=======
40+
- [Enabled](/cockpit/how-to/enable-alert-manager/) the Scaleway alert manager in the same region as the resources you want to be alerted for
41+
- [Added](/cockpit/how-to/add-contact-points/) contacts in the Scaleway console or contact points in Grafana (with the `Scaleway Alerting` alert manager of the same region as your `Scaleway Metrics` data source), otherwise alerts will not be delivered
42+
>>>>>>> be1419eb2 (docs(add): feedback)
3043

3144
## Switch to the data source-managed tab
3245

33-
Data source managed alert rules allow you to configure alerts managed by the data source of your choice, instead of using Grafana's managed alerting system which is not supported by Cockpit.
46+
Data source managed alert rules allow you to configure alerts managed by the data source of your choice, instead of using Grafana's managed alerting system **which is not supported by Cockpit**.
3447

3548
1. [Log in to Grafana](/cockpit/how-to/access-grafana-and-managed-dashboards/) using your credentials.
3649
2. Click the Grafana icon in the top left side of your screen to open the menu.
@@ -43,7 +56,7 @@ Data source managed alert rules allow you to configure alerts managed by the dat
4356
8. In the **Rule type** subsection, click the **Data source-managed** tab.
4457
<Lightbox image={DataSourceManaged} alt="" />
4558
<Message type="important">
46-
Data source managed alert rules allow you to configure alerts managed by the data source of your choice, instead of using Grafana's managed alerting system which is not supported by Cockpit.
59+
Data source managed alert rules allow you to configure alerts managed by the data source of your choice, instead of using Grafana's managed alerting system **which is not supported by Cockpit**.
4760
This step is **mandatory** because Cockpit does not support Grafana’s built-in alerting system, but only alerts configured and evaluated by the data source itself.
4861
</Message>
4962

@@ -62,16 +75,19 @@ Switch between the tabs below to create alerts for a Scaleway Instance, an Objec
6275
<Message type="tip">
6376
The `instance_server_cpu_seconds_total` metric records how many seconds of CPU time your Instance has used in total. It is helpful to detect unexpected CPU usage spikes.
6477
</Message>
65-
2. In the **Set alert evaluation behavior** section, specify how long the condition must be true before triggering the alert.
66-
3. Enter a name in the **Namespace** and **Group** fields to categorize and manage your alert, and optionally, add annotations.
78+
2. In the **Set alert evaluation behavior** section, specify how long the condition must be met before triggering the alert.
79+
3. Enter a name in the **Namespace** and **Group** fields to categorize and manage your alert rules. Rules that share the same group will use the same configuration, including the evaluation interval which determines how often the rule is evaluated (by default: every 1 minute). You can modify this interval later in the group settings.
80+
<Message type="note">
81+
The evaluation interval is different from the pending period set in step 2. The evaluation interval controls how often the rule is checked, while the pending period defines how long the condition must be continuously met before the alert fires.
82+
</Message>
6783
4. In the **Configure labels and notifications** section, click **+ Add labels**. A pop-up appears.
68-
5. Enter a label and value name and click **Save**. You can skip this step if you want your alerts to be sent to the contact points you may already have created in the Scaleway console.
84+
5. Enter a label and value name and click **Save**. You can skip this step if you want your alerts to be sent to the contacts you may already have created in the Scaleway console.
6985
<Message type="note">
7086
In Grafana, notifications are sent by matching alerts to notification policies based on labels. This step is about deciding how alerts will reach you or your team (Slack, email, etc.) based on labels you attach to them. Then, you can set up rules that define who receives notifications in the **Notification policies** page.
71-
For example, if an alert has the label `team = instances-team`, you are telling Grafana to send a notification to the Instances team when your alert `alert-for-high-cpu-usage` gets triggered. Find out how to [configure notification policies in Grafana](/tutorials/configure-slack-alerting/#configuring-a-notification-policy).
87+
For example, if your alert named `alert-for-high-cpu-usage` has the label `team = instances-team`, you are telling Grafana to send a notification to the Instances team when the alert gets triggered. Find out how to [configure notification policies in Grafana](/tutorials/configure-slack-alerting/#configuring-a-notification-policy).
7288
</Message>
7389
6. Click **Save rule and exit** in the top right corner of your screen to save and activate your alert.
74-
7. Optionally, check that your configuration works by temporarily lowering the threshold. This will trigger the alert and notify your [contact point](/cockpit/concepts/#contact-points).
90+
7. Optionally, check that your configuration works by temporarily lowering the threshold. This will trigger the alert and notify your [contacts](/cockpit/concepts/#contact-points).
7591
</TabsTab>
7692
<TabsTab label="Object Storage bucket">
7793
The steps below explain how to create the metric selection and configure an alert condition that triggers when **the object count in your bucket exceeds a specific threshold**.
@@ -83,16 +99,19 @@ Switch between the tabs below to create alerts for a Scaleway Instance, an Objec
8399
<Message type="tip">
84100
The `object_storage_bucket_objects_total` metric indicates the total number of objects stored in a given Object Storage bucket. It is useful to monitor and control object growth in your bucket and avoid hitting thresholds.
85101
</Message>
86-
2. In the **Set alert evaluation behavior** section, specify how long the condition must be true before triggering the alert.
87-
3. Enter a name in the **Namespace** and **Group** fields to categorize and manage your alert, and optionally, add annotations.
102+
2. In the **Set alert evaluation behavior** section, specify how long the condition must be met before triggering the alert.
103+
3. Enter a name in the **Namespace** and **Group** fields to categorize and manage your alert rules. Rules that share the same group will use the same configuration, including the evaluation interval which determines how often the rule is evaluated (by default: every 1 minute). You can modify this interval later in the group settings.
104+
<Message type="note">
105+
The evaluation interval is different from the pending period set in step 2. The evaluation interval controls how often the rule is checked, while the pending period defines how long the condition must be continuously met before the alert fires.
106+
</Message>
88107
4. In the **Configure labels and notifications** section, click **+ Add labels**. A pop-up appears.
89-
5. Enter a label and value name and click **Save**. You can skip this step if you want your alerts to be sent to the contact points you may already have created in the Scaleway console.
108+
5. Enter a label and value name and click **Save**. You can skip this step if you want your alerts to be sent to the contacts you may already have created in the Scaleway console.
90109
<Message type="note">
91110
In Grafana, notifications are sent by matching alerts to notification policies based on labels. This step is about deciding how alerts will reach you or your team (Slack, email, etc.) based on labels you attach to them. Then, you can set up rules that define who receives notifications in the **Notification policies** page.
92111
For example, if an alert has the label `team = object-storage-team`, you are telling Grafana to send a notification to the Object Storage team when your alert is firing. Find out how to [configure notification policies in Grafana](/tutorials/configure-slack-alerting/#configuring-a-notification-policy).
93112
</Message>
94113
6. Click **Save rule and exit** in the top right corner of your screen to save and activate your alert.
95-
7. Optionally, check that your configuration works by temporarily lowering the threshold. This will trigger the alert and notify your [contact point](/cockpit/concepts/#contact-points).
114+
7. Optionally, check that your configuration works by temporarily lowering the threshold. This will trigger the alert and notify your [contacts](/cockpit/concepts/#contact-points).
96115
</TabsTab>
97116
<TabsTab label="Kubernetes pod">
98117
The steps below explain how to create the metric selection and configure an alert condition that triggers when **no new pod activity occurs, which could mean your cluster is stuck or unresponsive.**
@@ -105,15 +124,18 @@ Switch between the tabs below to create alerts for a Scaleway Instance, an Objec
105124
The `kubernetes_cluster_k8s_shoot_nodes_pods_usage_total` metric represents the total number of pods currently running across all nodes in your Kubernetes cluster. It is helpful to monitor current pod consumption per node pool or cluster, and help track resource saturation or unexpected workload spikes.
106125
</Message>
107126
2. In the **Set alert evaluation behavior** field, specify how long the condition must be true before triggering the alert.
108-
3. Enter a name in the **Namespace** and **Group** fields to categorize and manage your alert, and optionally, add annotations.
127+
3. Enter a name in the **Namespace** and **Group** fields to categorize and manage your alert rules. Rules that share the same group will use the same configuration, including the evaluation interval which determines how often the rule is evaluated (by default: every 1 minute). You can modify this interval later in the group settings.
128+
<Message type="note">
129+
The evaluation interval is different from the pending period set in step 2. The evaluation interval controls how often the rule is checked, while the pending period defines how long the condition must be continuously met before the alert fires.
130+
</Message>
109131
4. In the **Configure labels and notifications** section, click **+ Add labels**. A pop-up appears.
110-
5. Enter a label and value name and click **Save**. You can skip this step if you want your alerts to be sent to the contact points you may already have created in the Scaleway console.
132+
5. Enter a label and value name and click **Save**. You can skip this step if you want your alerts to be sent to the contacts you may already have created in the Scaleway console.
111133
<Message type="note">
112134
In Grafana, notifications are sent by matching alerts to notification policies based on labels. This step is about deciding how alerts will reach you or your team (Slack, email, etc.) based on labels you attach to them. Then, you can set up rules that define who receives notifications in the **Notification policies** page.
113135
For example, if an alert has the label `team = kubernetes-team`, you are telling Grafana to send a notification to the Kubernetes team when your alert is firing. Find out how to [configure notification policies in Grafana](/tutorials/configure-slack-alerting/#configuring-a-notification-policy).
114136
</Message>
115137
6. Click **Save rule and exit** in the top right corner of your screen to save and activate your alert.
116-
7. Optionally, check that your configuration works by temporarily lowering the threshold. This will trigger the alert and notify your [contact point](/cockpit/concepts/#contact-points).
138+
7. Optionally, check that your configuration works by temporarily lowering the threshold. This will trigger the alert and notify your [contacts](/cockpit/concepts/#contact-points).
117139
</TabsTab>
118140
<TabsTab label="Cockpit logs">
119141
The steps below explain how to create the metric selection and configure an alert condition that triggers when **no logs are stored for 5 minutes, which may indicate your app or system is broken**.
@@ -126,22 +148,25 @@ Switch between the tabs below to create alerts for a Scaleway Instance, an Objec
126148
The `observability_cockpit_loki_chunk_store_stored_chunks_total:increase5m` metric represents the number of chunks (log storage blocks) that have been written over the last 5 minutes for a specific resource. It is useful to monitor log ingestion activity and detect issues such as a crash of the logging agent, or your application not producing logs.
127149
</Message>
128150
2. In the **Set alert evaluation behavior** field, specify how long the condition must be true before triggering the alert.
129-
3. Enter a name in the **Namespace** and **Group** fields to categorize and manage your alert, and optionally, add annotations.
151+
3. Enter a name in the **Namespace** and **Group** fields to categorize and manage your alert rules. Rules that share the same group will use the same configuration, including the evaluation interval which determines how often the rule is evaluated (by default: every 1 minute). You can modify this interval later in the group settings.
152+
<Message type="note">
153+
The evaluation interval is different from the pending period set in step 2. The evaluation interval controls how often the rule is checked, while the pending period defines how long the condition must be continuously met before the alert fires.
154+
</Message>
130155
4. In the **Configure labels and notifications** section, click **+ Add labels**. A pop-up appears.
131-
5. Enter a label and value name and click **Save**. You can skip this step if you want your alerts to be sent to the contact points you may already have created in the Scaleway console.
156+
5. Enter a label and value name and click **Save**. You can skip this step if you want your alerts to be sent to the contacts you may already have created in the Scaleway console.
132157
<Message type="note">
133158
In Grafana, notifications are sent by matching alerts to notification policies based on labels. This step is about deciding how alerts will reach you or your team (Slack, email, etc.) based on labels you attach to them. Then, you can set up rules that define who receives notifications in the **Notification policies** page.
134159
For example, if an alert has the label `team = cockpit-team`, you are telling Grafana to send a notification to the Cockpit team when your alert is firing. Find out how to [configure notification policies in Grafana](/tutorials/configure-slack-alerting/#configuring-a-notification-policy).
135160
</Message>
136161
6. Click **Save rule and exit** in the top right corner of your screen to save and activate your alert.
137-
7. Optionally, check that your configuration works by temporarily lowering the threshold. This will trigger the alert and notify your [contact point](/cockpit/concepts/#contact-points).
162+
7. Optionally, check that your configuration works by temporarily lowering the threshold. This will trigger the alert and notify your [contacts](/cockpit/concepts/#contact-points).
138163
</TabsTab>
139164
</Tabs>
140165

141166
**You can configure up to a maximum of 10 alerts** for the `Scaleway Metrics` data source.
142167

143168
<Message type="tip">
144-
You can also build your alerts from the Grafana-managed tab, with the metrics explorer (book icon) and **+ Operations** button. However, remember to click the **Data source-managed** tab once you are done building them to receive alert notifications.
169+
You can also build your PromQL expressions and find the right metrics from the Grafana-managed tab, with the metrics explorer (book icon) and **+ Operations** button. However, remember to click the **Data source-managed** tab once you are done building them to proceed with the final configuration steps.
145170
<Lightbox image={AlertsViaGrafanaUI} alt="" />
146171
</Message>
147172

0 commit comments

Comments
 (0)