Skip to content

Commit

Permalink
fix metric attributes
Browse files Browse the repository at this point in the history
  • Loading branch information
kristofgyuracz committed Jun 13, 2024
1 parent 50e907f commit d77546b
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 5 deletions.
2 changes: 1 addition & 1 deletion config/manager/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@ kind: Kustomization
images:
- name: controller
newName: ghcr.io/kube-logging/telemetry-controller
newTag: 0.0.6
newTag: 0.0.7-dev.4
2 changes: 1 addition & 1 deletion internal/controller/telemetry/collector_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ func (r *CollectorReconciler) Reconcile(ctx context.Context, req ctrl.Request) (
UpgradeStrategy: "none",
Config: otelConfig,
Mode: otelv1alpha1.ModeDaemonSet,
Image: "ghcr.io/axoflow/axoflow-otel-collector/axoflow-otel-collector:0.98.0-count2",
Image: "ghcr.io/axoflow/axoflow-otel-collector/axoflow-otel-collector:0.98.0-count3",
ServiceAccount: saName.Name,
VolumeMounts: []corev1.VolumeMount{
{
Expand Down
11 changes: 8 additions & 3 deletions internal/controller/telemetry/otel_conf_gen.go
Original file line number Diff line number Diff line change
Expand Up @@ -465,6 +465,9 @@ func generateCountConnectors() map[string]any {
{
Key: "k8s.pod.labels.app.kubernetes.io/name",
},
{
Key: "k8s.pod.labels.app",
},
},
},
},
Expand Down Expand Up @@ -498,6 +501,9 @@ func generateCountConnectors() map[string]any {
{
Key: "k8s.pod.labels.app.kubernetes.io/name",
},
{
Key: "k8s.pod.labels.app",
},
},
},
},
Expand Down Expand Up @@ -558,9 +564,8 @@ func generateMetricsProcessors() map[string]any {
{
Action: "insert",
Key: "app",
FromAttribute: "k8s.pod.labels.app.kubernetes.io/name",
},
{
FromAttribute: "k8s.pod.labels.app",
}, {
Action: "insert",
Key: "host",
FromAttribute: "k8s.node.name",
Expand Down

0 comments on commit d77546b

Please sign in to comment.