Skip to content

Commit 25e34a1

Browse files
committed
docs(cpt): add images + fix dates
1 parent 83bba68 commit 25e34a1

File tree

5 files changed

+22
-16
lines changed

5 files changed

+22
-16
lines changed

menu/navigation.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3558,6 +3558,14 @@
35583558
"label": "Send metrics to Cockpit using Grafana Alloy",
35593559
"slug": "send-metrics-with-grafana-alloy"
35603560
},
3561+
{
3562+
"label": "Send metrics from your Kubernetes cluster to Cockpit",
3563+
"slug": "send-metrics-from-k8s-to-cockpit"
3564+
},
3565+
{
3566+
"label": "Send logs from your Kubernetes cluster to Cockpit",
3567+
"slug": "send-logs-from-k8s-to-cockpit"
3568+
},
35613569
{
35623570
"label": "Send metrics and logs to your Cockpit",
35633571
"slug": "send-metrics-logs-to-cockpit"
231 KB
Loading
185 KB
Loading

observability/cockpit/how-to/send-log-from-k8s-to-cockpit.mdx

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ tags: kubernetes cockpit logs observability monitoring cluster
99
categories:
1010
- observability
1111
dates:
12-
validation: 2025/01/20
13-
posted: 2025/01/20
12+
validation: 2025-01-20
13+
posted: 2025-01-20
1414
---
1515

1616
In this page, we will show you how to send application logs from your Kubernetes cluster to your Cockpit using either a Helm chart or deploying a Helm chart with [Terraform](https://www.terraform.io/).
@@ -43,14 +43,14 @@ destinations:
4343
- name: "my-cockpit-logs"
4444
type: "loki"
4545
protocol: "http"
46-
logs:
46+
logs:
4747
enabled: true
4848
url: "$COCKPIT_CUSTOM_LOGS_DATASOURCE_URL/loki/api/v1/push" ##You can find your logs URL in the **Data sources** tab of the Scaleway console under the "API URL" section of the relevant data source
4949
tenantId: "$COCKPIT_TOKEN"
50-
51-
metrics:
50+
51+
metrics:
5252
enabled: false
53-
traces:
53+
traces:
5454
enabled: false
5555
clusterEvents:
5656
enabled: true
@@ -91,7 +91,6 @@ Once you have configured your `values.yml` file, you can use Helm to deploy the
9191
helm install -f /your-path/to/values.yml name-of-your-choice-for-your-log-ingester k8s-monitoring --version 1.6.16
9292
```
9393
The `-f` flag specifies the path to your `values.yml` file, which contains the configuration for the Helm chart. Make sure that you replace `/your-path/to/values.yml` with the correct path where your `values.yml` file is stored. Make sure that you also replace `name-of-your-choice-for-your-log-ingester` with a clear name (ex. `alloy-logs-ingester`). In our configuration, we are using `alloy-lm-ingester`.
94-
9594
Helm installs the `k8s-monitoring` chart, which includes the Alloy DaemonSet configured to collect logs from your Kubernetes cluster.
9695
The DaemonSet ensures that a pod is running on each node in your cluster, which collects logs and forwards them to the specified Loki endpoint in your Cockpit.
9796

observability/cockpit/how-to/send-metrics-from-k8s-to-cockpit.mdx

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ tags: kubernetes cockpit metrics observability monitoring cluster
99
categories:
1010
- observability
1111
dates:
12-
validation: 2025/01/20
13-
posted: 2025/01/20
12+
validation: 2025-01-20
13+
posted: 2025-01-20
1414
---
1515

1616

@@ -45,14 +45,14 @@ destinations:
4545
- name: "my-cockpit-metrics"
4646
type: "prometheus"
4747
protocol: "http"
48-
metrics:
48+
metrics:
4949
enabled: true
5050
url: "$COCKPIT_CUSTOM_METRICS_DATASOURCE_URL/api/v1/push"
5151
tenantId: "$COCKPIT_TOKEN"
52-
53-
logs:
52+
53+
logs:
5454
enabled: false
55-
traces:
55+
traces:
5656
enabled: false
5757

5858
annotationAutodiscovery:
@@ -151,9 +151,8 @@ Once you have configured your `values.yml` file, you can use Helm to deploy the
151151
helm install -f /your-path/to/values.yml name-of-your-choice-for-your-metric-ingester k8s-monitoring --version 1.6.16
152152
```
153153
The `-f` flag specifies the path to your `values.yml` file, which contains the configuration for the Helm chart. Make sure that you replace `/your-path/to/values.yml` with the correct path where your `values.yml` file is stored. Make sure that you also replace `name-of-your-choice-for-your-metric-ingester` with a clear name (ex. `alloy-metrics-ingester`). In our configuration, we are using `alloy-lm-ingester`.
154-
155-
Helm installs the `k8s-monitoring` chart, which includes the Alloy DaemonSet configured to collect metrics from your Kubernetes cluster.
156-
The DaemonSet ensures that a pod is running on each node in your cluster, which collects metrics and forwards them to the specified Prometheus endpoint in your Cockpit.
154+
Helm installs the `k8s-monitoring` chart, which includes the Alloy DaemonSet configured to collect metrics from your Kubernetes cluster.
155+
The DaemonSet ensures that a pod is running on each node in your cluster, which collects metrics and forwards them to the specified Prometheus endpoint in your Cockpit.
157156
158157
3. Optionally, check the status of the release to ensure it was installed:
159158

0 commit comments

Comments
 (0)