Jump toUpdate content

Cockpit - Quickstart

Reviewed on 31 October 2023Published on 31 October 2022

Scaleway’s Observability Cockpit allows you to monitor your applications and their infrastructure by giving you insights and context into their behavior. Cockpit also enables you to visualize your metrics, logs and traces through a Grafana dashboard.

The Observability Cockpit provides you with four endpoints to push metrics, logs, and traces. You can push metrics with any Prometheus-compatible agent such as Prometheus, Grafana or OpenTelemetry Collector. You can push logs with any Loki-compatible agent such as Promtail, Fluentd, Fluent Bit or Logstash. You can push traces with the Tempo-compatible agent supported by Scaleway: OpenTelemetry.

Read our documentation to find out which Scaleway products are integrated into Cockpit and learn how to reduce extra costs and understand Cockpit pricing.

In this quickstart, we show you how to activate your Cockpit, how to retrieve your Grafana credentials and how to create a push token to send metrics and logs to your Cockpit.

Security & Identity (IAM):

You may need certain IAM permissions to carry out some actions described on this page. This means:

  • you are the Owner of the Scaleway Organization in which the actions will be carried out, or
  • you are an IAM user of the Organization, with a policy granting you the necessary permission sets
Requirements:

You have an account and are logged into the Scaleway console

Important:
  • Having the default configuration on your agents might lead to more of your resources’ metrics being sent, a high consumption and a high bill at the end of the month.
  • Sending metrics and logs for Scaleway resources or personal data using an external path is a billable feature. In addition, any data that you push yourself is billed, even if you send data from Scaleway products. Refer to the product pricing for more information.

How to activate your Cockpit

  1. Click Cockpit in the Observability section of the console side menu. The Cockpit overview page displays.
  2. Click Activate to activate your Cockpit. Your Cockpit will be ready in a matter of minutes.

How to retrieve your Grafana credentials

  1. Click Cockpit in the Observability section of the console side menu. The Cockpit overview page displays.
  2. Click the Grafana users tab.
  3. Click Add user.
  4. Enter a username.
  5. Select a role for the user.
  6. Click Add a user. Your automatically-generated password displays. Make sure to copy and save it before closing the pop-up.

How to create a token to push your metrics and logs

  1. Click Cockpit in the Observability section of the console side menu. The Cockpit overview page displays.

  2. Click the APIs and Tokens tab.

  3. Click Generate token to create a token. A pop-up displays prompting you to create a token.

  4. Choose a name for your token or use the already-generated name.

  5. Select the Push permission for metrics and logs. This permission allows you to send your metrics and logs to your Cockpit.

  6. Click Generate token to generate your token. A pop-up displays with your secret key.

    Important:

    Make sure to save your secret key before closing the pop-up.

Your newly-created token displays in the list of your tokens.