Skip to content

Conversation

@swiatekm
Copy link
Contributor

@swiatekm swiatekm commented Apr 23, 2025

What does this PR do?

Switches from our fork of the Otel prometheus receiver to the upstream version. This fork was driven by a dependency conflict with the prometheus library, which was resolved in elastic/beats#43540.

To achieve this, we bump the beats dependency version. I was also forced to downgrade github.com/elastic/cloud-on-k8s, as it depended on a version of github.com/prometheus/common which was incompatible with the new prometheus library. @pkoutsovasilis I hope that's ok.

Why is it important?

We want to use upstream components where possible.

Checklist

  • I have read and understood the pull request guidelines of this project.
    - [ ] My code follows the style guidelines of this project
    - [ ] I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
    - [ ] I have made corresponding change to the default configuration files
    - [] I have added tests that prove my fix is effective or that my feature works
    - [ ] I have added an entry in ./changelog/fragments using the changelog tool
    - [ ] I have added an integration test or an E2E test

@swiatekm swiatekm added backport-8.18 Automated backport to the 8.18 branch backport-active-9 Automated backport with mergify to all the active 9.[0-9]+ branches backport-8.19 Automated backport to the 8.19 branch Cleanup labels Apr 23, 2025
@swiatekm swiatekm force-pushed the chore/use-upstream-prometheus-receiver branch from 3bec659 to b07074a Compare April 23, 2025 13:56
@swiatekm swiatekm marked this pull request as ready for review April 23, 2025 13:56
@swiatekm swiatekm requested a review from a team as a code owner April 23, 2025 13:56
@swiatekm swiatekm added the Team:Elastic-Agent-Control-Plane Label for the Agent Control Plane team label Apr 23, 2025
@elasticmachine
Copy link
Contributor

Pinging @elastic/elastic-agent-control-plane (Team:Elastic-Agent-Control-Plane)

@elastic-sonarqube
Copy link

@elasticmachine
Copy link
Contributor

💛 Build succeeded, but was flaky

Failed CI Steps

History

cc @cmacknz @andrzej-stencel @swiatekm

@swiatekm swiatekm merged commit 0c78a0f into main Apr 24, 2025
13 checks passed
@swiatekm swiatekm deleted the chore/use-upstream-prometheus-receiver branch April 24, 2025 08:46
@github-actions
Copy link
Contributor

@Mergifyio backport 9.0

@mergify
Copy link
Contributor

mergify bot commented Apr 24, 2025

backport 9.0

✅ Backports have been created

Details

mergify bot pushed a commit that referenced this pull request Apr 24, 2025
(cherry picked from commit 0c78a0f)

# Conflicts:
#	NOTICE.txt
#	go.mod
#	go.sum
#	internal/pkg/otel/README.md
#	internal/pkg/otel/configtranslate/otelconfig_test.go
mergify bot pushed a commit that referenced this pull request Apr 24, 2025
(cherry picked from commit 0c78a0f)

# Conflicts:
#	NOTICE.txt
#	go.mod
#	go.sum
#	internal/pkg/otel/README.md
#	internal/pkg/otel/configtranslate/otelconfig_test.go
mergify bot pushed a commit that referenced this pull request Apr 24, 2025
(cherry picked from commit 0c78a0f)

# Conflicts:
#	NOTICE.txt
#	go.mod
#	go.sum
mergify bot pushed a commit that referenced this pull request Apr 24, 2025
(cherry picked from commit 0c78a0f)

# Conflicts:
#	NOTICE.txt
#	go.mod
#	go.sum
#	internal/pkg/otel/README.md
#	internal/pkg/otel/configtranslate/otelconfig_test.go
mergify bot pushed a commit that referenced this pull request Apr 24, 2025
(cherry picked from commit 0c78a0f)

# Conflicts:
#	NOTICE.txt
#	go.mod
#	go.sum
#	internal/pkg/otel/README.md
#	internal/pkg/otel/configtranslate/otelconfig_test.go
mergify bot pushed a commit that referenced this pull request Apr 24, 2025
(cherry picked from commit 0c78a0f)

# Conflicts:
#	NOTICE.txt
#	go.mod
#	go.sum
swiatekm added a commit that referenced this pull request Apr 24, 2025
(cherry picked from commit 0c78a0f)

# Conflicts:
#	NOTICE.txt
#	go.mod
#	go.sum
#	internal/pkg/otel/README.md
#	internal/pkg/otel/configtranslate/otelconfig_test.go
swiatekm added a commit that referenced this pull request Apr 24, 2025
(cherry picked from commit 0c78a0f)

# Conflicts:
#	NOTICE.txt
#	go.mod
#	go.sum
swiatekm added a commit that referenced this pull request Apr 24, 2025
(cherry picked from commit 0c78a0f)

# Conflicts:
#	NOTICE.txt
#	go.mod
#	go.sum
#	internal/pkg/otel/README.md
#	internal/pkg/otel/configtranslate/otelconfig_test.go
swiatekm added a commit that referenced this pull request Apr 24, 2025
(cherry picked from commit 0c78a0f)

# Conflicts:
#	NOTICE.txt
#	go.mod
#	go.sum
#	internal/pkg/otel/README.md
#	internal/pkg/otel/configtranslate/otelconfig_test.go
swiatekm added a commit that referenced this pull request Apr 24, 2025
(cherry picked from commit 0c78a0f)

# Conflicts:
#	NOTICE.txt
#	go.mod
#	go.sum
swiatekm added a commit that referenced this pull request Apr 24, 2025
(cherry picked from commit 0c78a0f)

# Conflicts:
#	NOTICE.txt
#	go.mod
#	go.sum
#	internal/pkg/otel/README.md
#	internal/pkg/otel/configtranslate/otelconfig_test.go
swiatekm added a commit that referenced this pull request Apr 25, 2025
(cherry picked from commit 0c78a0f)

# Conflicts:
#	NOTICE.txt
#	go.mod
#	go.sum

Co-authored-by: Mikołaj Świątek <[email protected]>
swiatekm added a commit that referenced this pull request Apr 25, 2025
(cherry picked from commit 0c78a0f)

# Conflicts:
#	NOTICE.txt
#	go.mod
#	go.sum
#	internal/pkg/otel/README.md
#	internal/pkg/otel/configtranslate/otelconfig_test.go

Co-authored-by: Mikołaj Świątek <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport-8.18 Automated backport to the 8.18 branch backport-8.19 Automated backport to the 8.19 branch backport-active-9 Automated backport with mergify to all the active 9.[0-9]+ branches Cleanup skip-changelog Team:Elastic-Agent-Control-Plane Label for the Agent Control Plane team

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants