Skip to content

Commit 81fa818

Browse files
authored
Merge pull request #188 from kube-logging/chore/upgrade-otelcol-image-v0.143.0-axoflow.0
chore: update otelcollector to v0.143.0-axfolow.0
2 parents e9f71f3 + f4a1a23 commit 81fa818

File tree

5 files changed

+17
-22
lines changed

5 files changed

+17
-22
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ LICENSEI_VERSION = 0.9.0
1919

2020
# ENVTEST_K8S_VERSION refers to the version of kubebuilder assets to be downloaded by envtest binary.
2121
ENVTEST_K8S_VERSION = 1.35.0
22-
ENVTEST_OTEL_OPERATOR_VERSION=0.129.1
22+
ENVTEST_OTEL_OPERATOR_VERSION=0.143.0
2323

2424
# renovate: datasource=github-releases depName=cert-manager/cert-manager versioning=semver
2525
CERT_MANAGER_VERSION = 1.19.2

docs/demos/persistence-and-retry-mechanisms/generated-otelcol-config.yaml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,27 +6,25 @@ connectors:
66
- key: tenant
77
- key: subscription
88
- key: exporter
9-
description: The number of logs sent out from each exporter.
10-
resource_attributes:
119
- key: k8s.namespace.name
1210
- key: k8s.node.name
1311
- key: k8s.container.name
1412
- key: k8s.pod.name
1513
- key: k8s.pod.labels.app.kubernetes.io/name
1614
- key: k8s.pod.labels.app
15+
description: The number of logs sent out from each exporter.
1716
count/tenant_metrics:
1817
logs:
1918
telemetry_controller_tenant_log_count:
2019
attributes:
2120
- key: tenant
22-
description: The number of logs from each tenant pipeline.
23-
resource_attributes:
2421
- key: k8s.namespace.name
2522
- key: k8s.node.name
2623
- key: k8s.container.name
2724
- key: k8s.pod.name
2825
- key: k8s.pod.labels.app.kubernetes.io/name
2926
- key: k8s.pod.labels.app
27+
description: The number of logs from each tenant pipeline.
3028
routing/subscription_db_sub-db_outputs:
3129
table:
3230
- condition: "true"

pkg/resources/manager/collector_manager.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ import (
4545

4646
const (
4747
otelCollectorKind = "OpenTelemetryCollector"
48-
axoflowOtelCollectorImageRef = "ghcr.io/axoflow/axoflow-otel-collector/axoflow-otel-collector:0.129.0-axoflow.3"
48+
axoflowOtelCollectorImageRef = "ghcr.io/axoflow/axoflow-otel-collector/axoflow-otel-collector:0.143.0-axoflow.rc1"
4949
)
5050

5151
var (

pkg/resources/otel_conf_gen/otel_col_conf_test_fixtures/complex.yaml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,27 +13,25 @@ connectors:
1313
- key: tenant
1414
- key: subscription
1515
- key: exporter
16-
description: The number of logs sent out from each exporter.
17-
resource_attributes:
1816
- key: k8s.namespace.name
1917
- key: k8s.node.name
2018
- key: k8s.container.name
2119
- key: k8s.pod.name
2220
- key: k8s.pod.labels.app.kubernetes.io/name
2321
- key: k8s.pod.labels.app
22+
description: The number of logs sent out from each exporter.
2423
count/tenant_metrics:
2524
logs:
2625
telemetry_controller_tenant_log_count:
2726
attributes:
2827
- key: tenant
29-
description: The number of logs from each tenant pipeline.
30-
resource_attributes:
3128
- key: k8s.namespace.name
3229
- key: k8s.node.name
3330
- key: k8s.container.name
3431
- key: k8s.pod.name
3532
- key: k8s.pod.labels.app.kubernetes.io/name
3633
- key: k8s.pod.labels.app
34+
description: The number of logs from each tenant pipeline.
3735
routing/subscription_example-tenant-a-ns_subscription-example-1_outputs:
3836
table:
3937
- condition: "true"

pkg/resources/otel_conf_gen/pipeline/components/connector/count_connector.go

Lines changed: 11 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,9 @@ type CountConnectorAttributeConfig struct {
2222
}
2323

2424
type CountConnectorMetricInfo struct {
25-
Description *string `json:"description,omitempty"`
26-
Conditions []string `json:"conditions,omitempty"`
27-
Attributes []CountConnectorAttributeConfig `json:"attributes,omitempty"`
28-
ResourceAttributes []CountConnectorAttributeConfig `json:"resource_attributes,omitempty"`
25+
Description *string `json:"description,omitempty"`
26+
Conditions []string `json:"conditions,omitempty"`
27+
Attributes []CountConnectorAttributeConfig `json:"attributes,omitempty"`
2928
}
3029

3130
func GenerateCountConnectors() map[string]any {
@@ -34,10 +33,10 @@ func GenerateCountConnectors() map[string]any {
3433
"logs": map[string]CountConnectorMetricInfo{
3534
"telemetry_controller_tenant_log_count": {
3635
Description: utils.ToPtr("The number of logs from each tenant pipeline."),
37-
Attributes: []CountConnectorAttributeConfig{{
38-
Key: utils.ToPtr("tenant"),
39-
}},
40-
ResourceAttributes: []CountConnectorAttributeConfig{
36+
Attributes: []CountConnectorAttributeConfig{
37+
{
38+
Key: utils.ToPtr("tenant"),
39+
},
4140
{
4241
Key: utils.ToPtr("k8s.namespace.name"),
4342
},
@@ -68,13 +67,13 @@ func GenerateCountConnectors() map[string]any {
6867
Attributes: []CountConnectorAttributeConfig{
6968
{
7069
Key: utils.ToPtr("tenant"),
71-
}, {
70+
},
71+
{
7272
Key: utils.ToPtr("subscription"),
73-
}, {
73+
},
74+
{
7475
Key: utils.ToPtr("exporter"),
7576
},
76-
},
77-
ResourceAttributes: []CountConnectorAttributeConfig{
7877
{
7978
Key: utils.ToPtr("k8s.namespace.name"),
8079
},

0 commit comments

Comments
 (0)