Cockpit - Quickstart
Scaleway Observability allows you to monitor your applications and their infrastructure by giving you insights and context into their behavior. Observability also enables you to visualize your metrics and logs through a Grafana dashboard.
The Observability Cockpit provides you with 2 Remote Write endpoints to be able to push metrics and logs. You can push metrics with any Prometheus Remote Write
compatible agent such as the Prometheus, Grafana or OpenTelemetry Collector agents.
You can push logs with any Loki compatible agent such as the Promtail, Fluentd, Fluent Bit or Logstash agents.
In this Quickstart, we show you how to activate your Cockpit, how to retrieve your Grafana credentials, how to create a push token and how to send metrics and logs to your Cockpit.
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
You have an account and are logged into the Scaleway console
How to activate your Cockpit
- Click Cockpit in the Observability section of the console side menu. The Cockpit overview page displays.
- Click Activate to activate your Cockpit. Your Cockpit will be ready in a matter of minutes.
How to retrieve your Grafana credentials
- Click Cockpit in the Observability section of the console side menu. The Cockpit overview page displays.
- Click the Grafana Users tab.
- Click Add a user.
- Enter a username.
- Select a role for the user.
- 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
-
Click Cockpit in the Observability section of the console side menu. The Cockpit overview page displays.
-
Click the APIs and Tokens tab.
-
Click Generate a token to create a token. A pop-up displays prompting you to create a token.
-
Choose a name for your token or use the already-generated name.
-
Select the Push permission for metrics and logs. This permission allows you to send your metrics and logs to your Cockpit.
-
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.
How to send your metrics and logs to your Cockpit
-
Click Cockpit in the Observability section of the console side menu. The Cockpit overview page displays.
-
Configure your applications to send metrics and logs to your Cockpit endpoints, using the token you have created above for authentication.
Important:- The
Prometheus Remote Write
endpoint to push your metrics is the following:https://metrics.cockpit.fr-par.scw.cloud/api/v1/push
- The Remote Write endpoint to push your logs is the following:
https://logs.cockpit.fr-par.scw.cloud/loki/api/v1/push
- The
-
Click Open your dashboard to open your Grafana managed dashboard. You are redirected to the Grafana website.
-
Enter the credentials you have previously generated.
-
Click Log in. The Grafana overview page displays.
-
Hover over Dashboards and click Browse. The Scaleway folder displays with all of Scaleway’s available managed dashboards.
To go further, find out how to configure the Grafana agent, push your metrics and logs and visualize them on your dahsboard.