You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This page shows you how to send your application logs created in a Kubernetes cluster to your Cockpit either by using a Helm Chart or by deploying this Helm chart with Terraform.
16
+
This page shows you how to send application logs created in a Kubernetes cluster to your Cockpit either by using a Helm chart or by deploying a Helm chart with [Terraform](https://www.terraform.io/).
17
17
18
-
In this example, we use [k8s-monitoring](https://artifacthub.io/packages/helm/grafana/k8s-monitoring/1.6.16) which install an Alloy Daemon set to your Kubernetes Cluster to export logs to your Cockpit.
18
+
In this example, we use [k8s-monitoring](https://artifacthub.io/packages/helm/grafana/k8s-monitoring/1.6.16) which installs an Alloy Daemon set to your Kubernetes cluster to export logs to your Cockpit.
19
19
20
20
<Macroid="requirements" />
21
21
22
22
- A Scaleway account logged into the [console](https://console.scaleway.com)
23
23
-[Owner](/identity-and-access-management/iam/concepts/#owner) status or [IAM permissions](/identity-and-access-management/iam/concepts/#permission) allowing you to perform actions in the intended Organization
24
-
-[Created](/observability/cockpit/how-to/create-external-data-sources/) an custom external data source
25
-
-[Created](/observability/cockpit/how-to/create-token/) a Cockpit Token for the same region as the data source
26
-
- A running Kubernetes Cluster containing your application deployed
27
-
- For Terraform : [Created](/identity-and-access-management/iam/how-to/create-api-keys/) an API key and retrieved your API secret key
28
-
29
-
24
+
-[Created](/observability/cockpit/how-to/create-external-data-sources/) a custom external data source
25
+
-[Created](/observability/cockpit/how-to/create-token/) a Cockpit token for the same region as the data source
26
+
- A running Kubernetes cluster containing your application deployed
27
+
-[Created](/identity-and-access-management/iam/how-to/create-api-keys/) an API key and retrieved your API secret key
30
28
31
29
<Messagetype="important">
32
30
- Sending 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.
33
31
<Message/>
34
32
35
33
## Configure the Helm chart
36
34
37
-
Create a `values.yml` file to configure your Helm chart, here is an example:
38
-
39
-
<Messagetype="Note">
40
-
Do not forget to replace:
41
-
-`$SCW_CLUSTER_NAME` by the name of your Scaleway Cluster
42
-
-`$COCKPIT_CUSTOM_DATASOURCE_HOST` by the hostname of your custom endpoint (do not include the `/loki/api/v1/push` )
43
-
-`$COCKPIT_TOKEN` by your Cockpit Token
44
-
<Message/>
35
+
Create a `values.yml` file to configure your Helm chart, using the example below. Make sure that you replace `$SCW_CLUSTER_NAME` with the name of your Scaleway Kubernetes cluster, `$COCKPIT_CUSTOM_DATASOURCE_HOST` with the hostname of your custom endpoint (excluding the `/loki/api/v1/push` part), and `$COCKPIT_TOKEN` with your Cockpit token.
45
36
46
37
```yaml
47
38
cluster:
@@ -95,21 +86,21 @@ alloy-logs:
95
86
```
96
87
97
88
<Message type="info">
98
-
- Note that this is only an example to send logs to your cockpit, you can also send metrics to cockpit using this Helm chart
89
+
The template above is only an example to send logs to your Cockpit. You can also send metrics to Cockpit using this Helm chart.
99
90
</Message>
100
91
101
92
## Send Kubernetes logs to your Cockpit using Helm chart
102
93
103
-
1. Connect your kubectl to your Scaleway Cluster
104
-
2. Apply your Helm chart with the `values.yml` file by running
94
+
1. Connect your kubectl to your Kubernetes cluster
95
+
2. Run the following command to apply your Helm chart with the `values.yml` file:
0 commit comments