Suggest an edit

How to configure managed alerts for Scaleway resources

Reviewed on 05 April 2024Published on 06 November 2023

This page shows you how to configure managed alerts for Scaleway resources using the Scaleway Metrics data source.

Before you start

To complete the actions presented below, you must have:

  • A Scaleway account logged into the console
  • Owner status or IAM permissions allowing you to perform actions in the intended Organization
  • Scaleway resources you can monitor
  • Created Grafana credentials with the Editor role
  • Enabled the alert manager, and activated managed alerts
  • Created at least one contact point
  • Selected the Scaleway Alerting alert manager in Grafana
  1. Log in to Grafana using your credentials.
  2. Click the Toggle menu then click Alerting.
  3. Click Alert rules and + New alert rule.
  4. Scroll down to the Define query and alert condition section and click Switch to data source-managed alert rule.

    This allows you to configure alert rules managed by the data source of your choice, instead of using Grafana’s managed alert rules.

  5. Type in a name for your alert.
  6. Select the data source you want to configure alerts for. For the sake of this documentation, we are choosing the Scaleway Metrics data source.
  7. In the Metrics browser drop-down, select the metric you want to configure an alert for. For the sake of this documentation, we are choosing the instance_server_cpu_seconds_total metric.
  8. Select labels that apply to the metric you have selected in the previous step, to target your desired resources and fine-tune your alert.
  9. Select one or more values for your labels.
  10. Click Use query to generate your alert based on the conditions you have defined. For example, the alert below will be triggered whenever the rate of our Instance’s total CPU usage per second exceeds 10%.
  11. In the Set alert evaluation behavior field, configure the amount of time during which the alert can be in breach of the condition(s) you have defined until it fires.

    For example, if you wish to be alerted after your alert has been in breach of the condition for 2 minutes without interruption, type 2 and select minutes in the drop-down.

  12. Enter a namespace for your alert in the Namespace field and click Enter.
  13. Enter a name for your alert’s group in the Group field and click Enter.
  14. Optionally, add a summary and a description.
  15. Click Save rule at the top right corner of your screen to save your alert. Once your alert meets the requirements you have configured, you will receive an email to inform you that your alert is firing.

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

See also
How to add contact pointsHow to access Grafana and managed dashboards
Docs APIScaleway consoleDedibox consoleScaleway LearningScaleway.comPricingBlogCarreer
© 2023-2024 – Scaleway