diff --git a/menu/navigation.json b/menu/navigation.json index 589b8be57c..5440dec029 100644 --- a/menu/navigation.json +++ b/menu/navigation.json @@ -3772,10 +3772,6 @@ "label": "Cockpit API Reference", "slug": "https://www.scaleway.com/en/developers/api/cockpit/regional-api/" }, - { - "label": "Configuring the Grafana agent", - "slug": "configuring-grafana-agent" - }, { "label": "Retrieving logs programmatically using LogCLI", "slug": "querying-logs-with-logcli" diff --git a/pages/cockpit/api-cli/configuring-grafana-agent.mdx b/pages/cockpit/api-cli/configuring-grafana-agent.mdx deleted file mode 100644 index 752055492e..0000000000 --- a/pages/cockpit/api-cli/configuring-grafana-agent.mdx +++ /dev/null @@ -1,268 +0,0 @@ ---- -meta: - title: Configuring the Grafana agent - description: This page provides information on how to configure the Grafana agent, push data sources, and visualize them in Grafana -content: - h1: Configuring the Grafana agent - paragraph: This page provides information on how to configure the Grafana agent, push data sources, and visualize them in Grafana -tags: cockpit observability grafana-agent -dates: - validation: 2024-10-15 - posted: 2023-01-10 -categories: - - observability ---- - -This page explains how to configure the Grafana agent and the Zipkin collector to push your metrics, logs, and traces. You can use it to **push your data from Scaleway resources or external resources**. - - - [The Grafana agent has been deprecated by Grafana](https://grafana.com/docs/agent/latest/). Find out [how to configure Grafana Alloy](/cockpit/how-to/send-metrics-with-grafana-alloy/#configuring-grafana-alloy) which is Grafana's new telemetry collector. - - - - - - [Owner](/iam/concepts/#owner) status or [IAM permissions](/iam/concepts/#permission) allowing you to perform actions in the intended Organization - - A Scaleway account logged into the [console](https://console.scaleway.com) - - Installed [Docker](https://www.docker.com/) and [Docker compose](https://docs.docker.com/compose/install/) - - - - 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](https://www.scaleway.com/en/pricing/?tags=available,managedservices-observability-cockpit) for more information. - - -## Configuring and running the Grafana agent - - - It is not currently possible to collect logs if you are using OSX. - - -1. [Create a token](/cockpit/how-to/create-token/) and select the push permission for metrics, traces, and logs. -2. Create a folder where you will keep your configuration files. -3. Create a configuration file inside your folder and name it `config.yaml`. This file will contain the Grafana agent configuration. -4. Copy the following YAML template. - - - - Make sure you replace `` with `https://metrics.cockpit.fr-par.scw.cloud/api/v1/push`, `` with `https://logs.cockpit.fr-par.scw.cloud/loki/api/v1/push` and `` with `https://traces.cockpit.fr-par.scw.cloud/otlp` - - Make sure you replace ``, `` and `` with the token you created in step 1 - - - ``` - metrics: - wal_directory: /tmp/agent - global: - scrape_interval: 60s - remote_write: - - url: - headers: - "X-Token": - - logs: - positions_directory: /tmp/positions/ - configs: - - name: scw - clients: - - url: - tenant_id: - scrape_configs: - - job_name: varlogs - static_configs: - - targets: [localhost] - labels: - job: varlogs - __path__: /host/root/var/log/*.log - - traces: - configs: - - name: default - remote_write: - - endpoint: - headers: - X-TOKEN: - protocol: http - format: otlp - receivers: - otlp: - protocols: - grpc: - http: - zipkin: - endpoint: 0.0.0.0:9411 - - integrations: - node_exporter: - enabled: true - rootfs_path: /host/root - sysfs_path: /host/sys - procfs_path: /host/proc - # Anything not provided in the list below will be disabled by default - set_collectors: - - uname - - cpu - - loadavg - - meminfo - - filesystem - - netdev - - boottime - - time - - stat - ``` - - Your configuration file should look like the following: - - ``` - metrics: - wal_directory: /tmp/agent - global: - scrape_interval: 60s - remote_write: - - url: https://metrics.cockpit.fr-par.scw.cloud/api/v1/push - headers: - "X-Token": B6GI9xwdtWBxNcFlSxAWOM65R2aGpbTIbS4THIE4JmYZ6eQfj9upxPk5SfhdBm3 - - logs: - positions_directory: /tmp/positions/ - configs: - - name: scw - clients: - - url: https://logs.cockpit.fr-par.scw.cloud/loki/api/v1/push - tenant_id: B6GI9xwdtWBxNcFlSxAWOM65R2aGpbTIbS4THIE4JmYZ6eQfj9upxPk5SfhdBm3 - scrape_configs: - - job_name: varlogs - static_configs: - - targets: [localhost] - labels: - job: varlogs - __path__: /host/root/var/log/*.log - - traces: - configs: - - name: default - remote_write: - - endpoint: https://traces.cockpit.fr-par.scw.cloud/otlp - headers: - X-TOKEN: B6GI9xwdtWBxNcFlSxAWOM65R2aGpbTIbS4THIE4JmYZ6eQfj9upxPk5SfhdBm3 - protocol: http - format: otlp - receivers: - otlp: - protocols: - grpc: - http: - zipkin: - endpoint: 0.0.0.0:9411 - - integrations: - node_exporter: - enabled: true - rootfs_path: /host/root - sysfs_path: /host/sys - procfs_path: /host/proc - # Anything not provided in the list below will be disabled by default - set_collectors: - - uname - - cpu - - loadavg - - meminfo - - filesystem - - netdev - ``` -5. You can also specify the [data source](/cockpit/concepts/#data-sources) containing your [data types](/cockpit/concepts/#data-types) by: - - Adding the ID of the data source to the endpoint. You can retrieve the ID of the data source you want to configure using the `ListDataSources` API command, or - - Adding the `X-Datasource-Id` header in the `headers` section, under `X-Token`. - - If you do not specify a data source, your data will automatically be pushed to the default data source for the concerned data type. - - - Below is an example of what your **Traces** configuration should look like if you add the `X-Datasource-Id` header: - - ``` - traces: - configs: - - name: default - remote_write: - - endpoint: https://traces.cockpit.fr-par.scw.cloud/otlp - headers: - X-TOKEN: B6GI9xwdtWBxNcFlSxAWOM65R2aGpbTIbS4THIE4JmYZ6eQfj9upxPk5SfhdBm3 - X-Datasource-Id: - protocol: http - format: otlp - receivers: - otlp: - protocols: - grpc: - http: - zipkin: - endpoint: 0.0.0.0:9411 - ``` - -6. In the same folder, create another file and name it `docker-compose.yaml`. -7. Copy the following template and paste it into your file: - - ``` - version: "3" - services: - agent: - image: grafana/agent:latest - restart: always - ports: - - "9411:9411" - volumes: - - "./config.yaml:/etc/agent-config/agent.yaml:ro" - - "/:/host/root:ro" - - "/sys:/host/sys:ro" - - "/proc:/host/proc:ro" - - "/tmp/agent:/etc/agent" - entrypoint: - - /bin/grafana-agent - - -config.file=/etc/agent-config/agent.yaml - - -metrics.wal-directory=/tmp/agent/wal - network_mode: "host" - pid: "host" - ``` - -8. Run the following command to open your folder containing your configuration files: - - ``` - cd - ``` -9. Run the following command to bring the Grafana Agent container up: - - ``` - docker compose up - ``` - - Run `sudo docker compose up` if you are using Linux and your user is not in the docker group. - - -## Visualizing metrics in Grafana - -1. [Log into Grafana](/cockpit/how-to/access-grafana-and-managed-dashboards/) using your [Grafana credentials](/cockpit/how-to/retrieve-grafana-credentials/). -2. Click the **Toggle menu** icon. -3. Click **Dashboards**. -4. Click **New** then click **Import** to import your Grafana dashboard. -5. Enter `1860`, which is the ID of the [Node Exporter Full](https://grafana.com/grafana/dashboards/1860-node-exporter-full/) dashboard, in the **Import via grafana.com** field and click **Load**. - -6. Enter a name for your dashboard in the **Name** field. -7. Select the **Metrics** data source and click **Import**. Your dashboard displays with your metrics. - -## Visualizing logs in Grafana - -1. [Log into Grafana](/cockpit/how-to/access-grafana-and-managed-dashboards/) using your [Grafana credentials](/cockpit/how-to/retrieve-grafana-credentials/). -2. Click **Explore**. - -3. Select the **Scaleway logs** data source in the drop-down. -4. Configure a query using the instructions that display on your screen. -5. Click **Run query**. Your logs display. -6. Optionally, click the **Live** button on the top right corner of your screen to see your logs arriving in real time. - -## Visualizing traces in Grafana - -1. [Log into Grafana](/cockpit/how-to/access-grafana-and-managed-dashboards/) using your [Grafana credentials](/cockpit/how-to/retrieve-grafana-credentials/). -2. Click the **Toggle menu** icon. -3. Click **Explore** next to the compass icon. -4. Select the **Traces** data source from the drop-down. -5. Configure the queries you wish to apply to your traces. Your traces display. - - - Refer to the [Grafana documentation](https://grafana.com/docs/grafana/latest/panels-visualizations/visualizations/traces/#add-a-panel-with-tracing-visualizations) to learn more about how to visualize your traces. - \ No newline at end of file diff --git a/pages/elastic-metal/how-to/send-metrics-logs-to-cockpit.mdx b/pages/elastic-metal/how-to/send-metrics-logs-to-cockpit.mdx index 01f6b6d93b..632b02fa24 100644 --- a/pages/elastic-metal/how-to/send-metrics-logs-to-cockpit.mdx +++ b/pages/elastic-metal/how-to/send-metrics-logs-to-cockpit.mdx @@ -31,7 +31,7 @@ Cockpit provides a user-friendly interface for real-time monitoring of CPU, memo ## Accessing Cockpit 1. Create a token with the `push` permission for metrics/logs to Cockpit by following the instructions provided [in the dedicated documentation](/cockpit/how-to/create-token/). -2. Configure the Grafana Agent to push metrics/logs to Cockpit. Refer to the [official documentation](/cockpit/api-cli/configuring-grafana-agent/) for detailed instructions. +2. Configure Grafana Alloy to push metrics/logs to Cockpit. Refer to the [official documentation](/cockpit/how-to/send-metrics-with-grafana-alloy/) for detailed instructions. For efficient cost management and near real-time resource monitoring, it is recommended to set the interval to 1 minute. diff --git a/pages/managed-databases-for-postgresql-and-mysql/api-cli/pg-audit.mdx b/pages/managed-databases-for-postgresql-and-mysql/api-cli/pg-audit.mdx index 2fd746275e..312d1624ff 100644 --- a/pages/managed-databases-for-postgresql-and-mysql/api-cli/pg-audit.mdx +++ b/pages/managed-databases-for-postgresql-and-mysql/api-cli/pg-audit.mdx @@ -208,11 +208,10 @@ Your logs are accessible via the Scaleway Observability dashboard, [Cockpit](htt 1. [Follow the Cockpit Quickstart](/cockpit/quickstart/) to activate the feature and retrieve your Grafana credentials. -2. [Configure the Grafana agent](/cockpit/api-cli/configuring-grafana-agent/). +2. [Configure Grafana Alloy](/cockpit/how-to/send-metrics-with-grafana-alloy/). 3. Connect to Grafana with the credentials you created. 4. Click **RDB PostgreSQL Overview** on the left-side menu. 5. Scroll to the **Logs** section and click to expand. -6. [View the logs](/cockpit/api-cli/configuring-grafana-agent/#visualizing-logs-in-grafana). ### Technical Information - All management actions performed via API or the console, such as database creations and deletions, are logged, no matter the configuration. However, the associated read statements are not logged. For example, select statements used to check that actions have been correctly executed are not logged. diff --git a/pages/webhosting/how-to/manage-databases.mdx b/pages/webhosting/how-to/manage-databases.mdx index 7db53e6bc2..0f667b2766 100644 --- a/pages/webhosting/how-to/manage-databases.mdx +++ b/pages/webhosting/how-to/manage-databases.mdx @@ -7,7 +7,7 @@ content: paragraph: Discover how to manage databases for Scaleway Web Hosting plans from the console. tags: webhosting dates: - validation: 2024-10-24 + validation: 2025-05-02 posted: 2024-10-24 categories: - managed-services @@ -30,41 +30,42 @@ You can create and manage databases for your website and applications, including ## How to create a database 1. Click **Web Hosting** in the **Managed Services** section of the [console](https://console.scaleway.com/) side menu. The **Web Hosting** overview page displays. -2. Click or the domain name of the Web Hosting service you want to configure. The **Hosting information** page displays. +2. Click and **More info**, or the domain name of the Web Hosting service you want to configure. The **Hosting information** page displays. 3. Click the **Databases** tab to display information related to your databases. -4. Click **Create database** in the **Database** section of the page. A pop-up displays. -5. Enter a name for the database, select an existing database user from the drop-down list or create a new one by entering a username and password. Click **Create database** to create the database. -6. Enter the username and password for your FTP account. Then click **Create FTP account** to submit the form and create the account. +4. Click **+ Create database** in the **Databases** section of the page. A pop-up displays. +5. Enter a name for the database, select an existing database user from the drop-down list or create a new one by entering a username and password. +6. Click **Create database** to confirm. ## How to delete a database 1. Click **Web Hosting** in the **Managed Services** section of the [console](https://console.scaleway.com/) side menu. The **Web Hosting** overview page displays. -2. Click or the domain name of the Web Hosting service you want to configure. The **Hosting information** page displays. +2. Click and **More info**, or the domain name of the Web Hosting service you want to configure. The **Hosting information** page displays. 3. Click the **Databases** tab to display information related to your databases. 4. Click next to the database you want to delete. A pop-up displays. -5. Click **Delete database** to confirm the action and delete the database. +5. Click **Delete database** to delete the database. ## How to create a database user 1. Click **Web Hosting** in the **Managed Services** section of the [console](https://console.scaleway.com/) side menu. The **Web Hosting** overview page displays. -2. Click or the domain name of the Web Hosting service you want to configure. The **Hosting information** page displays. +2. Click and **More info**, or the domain name of the Web Hosting service you want to configure. The **Hosting information** page displays. 3. Click the **Databases** tab to display information related to your databases. -4. Click **Create database user** in the **Database users** section of the page to create a new one. A pop-up displays. -5. Enter a username and password. Then click **Create database user** to create the user. +4. Click **+ Create database user** in the **Databases users** section. A pop-up displays. +5. Enter a username and password. +6. Select an existing database from the drop-down list, then click **Create database user**. ## How to update the password of a database user 1. Click **Web Hosting** in the **Managed Services** section of the [console](https://console.scaleway.com/) side menu. The **Web Hosting** overview page displays. -2. Click or the domain name of the Web Hosting service you want to configure. The **Hosting information** page displays. +2. Click and **More info**, or the domain name of the Web Hosting service you want to configure. The **Hosting information** page displays. 3. Click the **Databases** tab to display information related to your databases. -4. Click > **Change password** next to the database user whose password you want to change. A pop-up displays. -5. Enter the new password and click **Update database user** to submit the form and update the password. +4. Click , then **Change password** next to the database user. A pop-up displays. +5. Enter your new password and click **Update database user** to update the password. ## How to delete a database user 1. Click **Web Hosting** in the **Managed Services** section of the [console](https://console.scaleway.com/) side menu. The **Web Hosting** overview page displays. -2. Click or the domain name of the Web Hosting service you want to configure. The **Hosting information** page displays. +2. Click and **More info**, or the domain name of the Web Hosting service you want to configure. The **Hosting information** page displays. 3. Click the **Databases** tab to display information related to your databases. -4. Click > **Delete** next to the database user you want to delete. A pop-up displays. -5. Click **Delete database user** to confirm the action and delete the user. +4. Click , then **Delete** next to the database user you want to delete. A pop-up displays. +5. Click **Delete database user** to delete the user. \ No newline at end of file diff --git a/pages/webhosting/how-to/manage-email-accounts.mdx b/pages/webhosting/how-to/manage-email-accounts.mdx index 2ce39f90be..1baad6bf98 100644 --- a/pages/webhosting/how-to/manage-email-accounts.mdx +++ b/pages/webhosting/how-to/manage-email-accounts.mdx @@ -7,7 +7,7 @@ content: paragraph: Discover how to manage email accounts for Scaleway Web Hosting plans from the console. tags: webhosting dates: - validation: 2024-10-24 + validation: 2025-05-02 posted: 2024-10-24 categories: - managed-services @@ -29,14 +29,14 @@ Send, receive, and store electronic messages through the internet. Email account ## How to create an email account 1. Click **Web Hosting** in the **Managed Services** section of the [console](https://console.scaleway.com/) side menu. The **Web Hosting** overview page displays. -2. Click or the domain name of the Web Hosting service you want to configure. The **Hosting information** page displays. +2. Click and **More info** or the domain name of the Web Hosting service you want to configure. The **Hosting information** page displays. 3. Click the **Emails** tab to display information related to your email accounts. -4. Click **Create email account** to create a new one. A pop-up displays. +4. Click **+ Create email account**. A pop-up displays. 5. Select the domain you want to associate the email account with from the drop-down list, then enter a username and password. - The username is the part of your email address in front of the @. + The username is the part of your email address preceding the `@`. -6. Click **Create email account** to confirm the action and create the account. +6. Click **Create email account** to confirm. To access webmail for the email account, click **Access webmail** next to the email account. @@ -46,15 +46,15 @@ Send, receive, and store electronic messages through the internet. Email account ## How to update the password of an email account 1. Click **Web Hosting** in the **Managed Services** section of the [console](https://console.scaleway.com/) side menu. The **Web Hosting** overview page displays. -2. Click or the domain name of the Web Hosting service you want to configure. The **Hosting information** page displays. +2. Click and **More info**, or the domain name of the Web Hosting service you want to configure. The **Hosting information** page displays. 3. Click the **Emails** tab to display information related to your email accounts. -4. Click > **Change password** next to the email account whose password you want to change. A pop-up displays. -5. Enter the new password and click **Change password** to submit the form and update the password. +4. Click and **Change password** next to the email account. A pop-up displays. +5. Enter your new password in the **Password** field, and click **Change password** to confirm. ## How to delete an email account 1. Click **Web Hosting** in the **Managed Services** section of the [console](https://console.scaleway.com/) side menu. The **Web Hosting** overview page displays. -2. Click or the domain name of the Web Hosting service you want to configure. The **Hosting information** page displays. +2. Click and **More info**, or the domain name of the Web Hosting service you want to configure. The **Hosting information** page displays. 3. Click the **Emails** tab to display information related to your email accounts. -4. Click > **Delete** next to the email account you want to delete. A pop-up displays. -5. Type **DELETE** in the pop-up and click **Delete email account** to confirm the action and delete the account. +4. Click , then **Delete** next to the email account you want to delete. A pop-up displays. +5. Type **DELETE** in the pop-up and click **Delete email account** to delete the account. diff --git a/pages/webhosting/how-to/manage-ftp-accounts.mdx b/pages/webhosting/how-to/manage-ftp-accounts.mdx index 5d6889e32f..0003be7ec6 100644 --- a/pages/webhosting/how-to/manage-ftp-accounts.mdx +++ b/pages/webhosting/how-to/manage-ftp-accounts.mdx @@ -7,7 +7,7 @@ content: paragraph: Discover how to manage FTP accounts for Scaleway Web Hosting plans from the console. tags: webhosting dates: - validation: 2024-10-24 + validation: 2025-05-02 posted: 2024-10-24 categories: - managed-services @@ -31,23 +31,24 @@ You can create and manage FTP accounts directly from the Scaleway console. ## How to create an FTP account 1. Click **Web Hosting** in the **Managed Services** section of the [console](https://console.scaleway.com/) side menu. The **Web Hosting** overview page displays. -2. Click or the domain name of the Web Hosting service you want to configure. The **Hosting information** page displays. +2. Click and **More info**, or the domain name of the Web Hosting service you want to configure. The **Hosting information** page displays. 3. Click the **FTP** tab to display information related to your FTP accounts. -4. Click **Create FTP account** to create a new one. A pop-up displays. -5. Enter the username and password for your FTP account. Then click **Create FTP account** to submit the form to create the account. +4. Click **+ Create FTP account**. A pop-up displays. +5. Enter a username and password for your FTP account. +6. Click **Create FTP account** to create the account. ## How to update the password of an FTP account 1. Click **Web Hosting** in the **Managed Services** section of the [console](https://console.scaleway.com/) side menu. The **Web Hosting** overview page displays. -2. Click or the domain name of the Web Hosting service you want to configure. The **Hosting information** page displays. +2. Click and **More info**, or the domain name of the Web Hosting service you want to configure. The **Hosting information** page displays. 3. Click the **FTP** tab to display information related to your FTP accounts. -4. Click > **Change password** next to the FTP account whose password you want to change. A pop-up displays. -5. Enter the new password and click **Change password** to submit the form to update the password. +4. Click , then **Change password** next to the FTP account. A pop-up displays. +5. Enter the new password and click **Change password** to confirm. ## How to delete an FTP account 1. Click **Web Hosting** in the **Managed Services** section of the [console](https://console.scaleway.com/) side menu. The **Web Hosting** overview page displays. -2. Click or the domain name of the Web Hosting service you want to configure. The **Hosting information** page displays. +2. Click and **More info**, or the domain name of the Web Hosting service you want to configure. The **Hosting information** page displays. 3. Click the **FTP** tab to display information related to your FTP accounts. -4. Click > **Delete** next to the FTP account you want to delete. A pop-up displays. -5. Click **Delete FTP account** to confirm the action and delete the FTP account. +4. Click , then **Delete** next to the FTP account you want to delete. A pop-up displays. +5. Click **Delete FTP account** to delete the FTP account. \ No newline at end of file