Cockpit - Quickstart
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.
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
- 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
- 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 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 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.
- To go further, find out how to configure the Grafana agent, push your metrics and logs and visualize them on your dahsboard.
- Check out our documentation to learn how to activate, and push traces..