Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(deploys): OTEL_RESOURCE_ATTRIBUTES #9642

Merged
merged 3 commits into from
Nov 1, 2024
Merged

Conversation

ludamad
Copy link
Collaborator

@ludamad ludamad commented Nov 1, 2024

This adds k8s environment to otel resources bringing back parity with filtering when we had the daemonset
Screenshot 2024-10-31 at 9 47 55 PM

@ludamad ludamad enabled auto-merge (squash) November 1, 2024 01:48
@ludamad ludamad disabled auto-merge November 1, 2024 13:47
@ludamad ludamad enabled auto-merge (squash) November 1, 2024 13:47
@ludamad ludamad merged commit 86b2490 into master Nov 1, 2024
63 checks passed
@ludamad ludamad deleted the ad/otel-resource-attrs branch November 1, 2024 14:15
ludamad pushed a commit that referenced this pull request Nov 1, 2024
Adds service names 

complementary to
#9642
stevenplatt added a commit that referenced this pull request Nov 4, 2024
# Change log

- **OTEL resource attribute to metric label conversion**

In addition to work for adding OTEL resource attributes in PR #9642 , a
second configuration is needed for OTEL to convert these into metrics
labels as outlined in opentelemetry-collector-contrib PR
[#15349](open-telemetry/opentelemetry-collector-contrib#15349).

If the resource attribute is node converted into a metics label, they
arrive to Prometheus with the namespace set as `metrics`, which is where
the OTEL collector is installed and not the application itself.

This change has ben tested by reinstalling the metrics charts into the
spartan cluster and confirming namespace was an available label on
metrics arriving to prometheus. (I manually connected to prometheus to
query, rather than downstream Grafana).

- **Added kube-state-metrics to prometheus**

Kube state metrics exposes kubernetes cluster stats to prometheus. This
is needed currently to show CPU usage in Grafana dashboards (since this
is not an application metric).

More info: https://github.com/kubernetes/kube-state-metrics
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants