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

fix: entity exporter should use logs_endpoint, instead of endpoint #266

Merged
merged 1 commit into from
Nov 8, 2024

Conversation

xueweiz
Copy link
Collaborator

@xueweiz xueweiz commented Nov 7, 2024

If you use endpoint, OTel agent will append it with "/logs" as the real URL. Not what we want.

If you use endpoint, OTel agent will append it with "/logs" as the
real URL. Not what we want.
Copy link
Contributor

github-actions bot commented Nov 7, 2024

The following chart updates are necessary:

diff --git a/charts/agent/Chart.yaml b/charts/agent/Chart.yaml
index e451ef6..65a5c37 100644
--- a/charts/agent/Chart.yaml
+++ b/charts/agent/Chart.yaml
@@ -2,7 +2,7 @@ apiVersion: v2
 name: agent
 description: Chart to install K8s collection stack based on Observe Agent
 type: application
-version: 0.30.2
+version: 0.30.3
 appVersion: "1.1.0"
 dependencies:
   - name: opentelemetry-collector

@@ -15,7 +15,7 @@ otlphttp/observe/base:

{{- define "config.exporters.otlphttp.observe.entity" -}}
otlphttp/observe/entity:
endpoint: "{{ .Values.observe.collectionEndpoint.value | toString | trimSuffix "/" }}/v1/kubernetes/v1/entity"
logs_endpoint: "{{ .Values.observe.collectionEndpoint.value | toString | trimSuffix "/" }}/v1/kubernetes/v1/entity"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we also need metrics_endpoint/traces_endpoint?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

(we don't support traces yet
for metrics, we use a dedicated prometheus endpoint + prometheus remotewrite exporter for it, and it has been running healthily for a while :)

endpoint: "{{ .Values.observe.collectionEndpoint.value | toString | trimSuffix "/" }}/v1/prometheus"

The prom remote write exporter does NOT do these "url suffixing" stuff :D

@xueweiz xueweiz merged commit f565152 into main Nov 8, 2024
11 checks passed
@xueweiz xueweiz deleted the xuewei/fixUrl branch November 8, 2024 00:01
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