[Prometheus] Remote - Write: Enforce Maxdecoding Length check#48218
Merged
[Prometheus] Remote - Write: Enforce Maxdecoding Length check#48218
Conversation
Signed-off-by: Andreas Gkizas <andreas.gkizas@elastic.co>
Signed-off-by: Andreas Gkizas <andreas.gkizas@elastic.co>
Signed-off-by: Andreas Gkizas <andreas.gkizas@elastic.co>
Signed-off-by: Andreas Gkizas <andreas.gkizas@elastic.co>
Contributor
🤖 GitHub commentsJust comment with:
|
Contributor
|
Pinging @elastic/obs-ds-hosted-services (Team:obs-ds-hosted-services) |
Contributor
|
This pull request does not have a backport label.
To fixup this pull request, you need to add the backport labels for the needed
|
Contributor
🔍 Preview links for changed docs |
Signed-off-by: Andreas Gkizas <andreas.gkizas@elastic.co>
Signed-off-by: Andreas Gkizas <andreas.gkizas@elastic.co>
Signed-off-by: Andreas Gkizas <andreas.gkizas@elastic.co>
Signed-off-by: Andreas Gkizas <andreas.gkizas@elastic.co>
Signed-off-by: Andreas Gkizas <andreas.gkizas@elastic.co>
bmorelli25
reviewed
Dec 23, 2025
docs/reference/metricbeat/metricbeat-metricset-prometheus-remote_write.md
Show resolved
Hide resolved
Signed-off-by: Andreas Gkizas <andreas.gkizas@elastic.co>
bmorelli25
approved these changes
Jan 5, 2026
Signed-off-by: Andreas Gkizas <andreas.gkizas@elastic.co>
…nto remote_write_maxdecoding
Signed-off-by: Andreas Gkizas <andreas.gkizas@elastic.co>
Contributor
Author
|
@elastic/beats-tech-leads can I have a review please? |
cmacknz
approved these changes
Jan 8, 2026
Member
cmacknz
left a comment
There was a problem hiding this comment.
Approving use of the year 2026 :)
Contributor
|
@Mergifyio backport 9.1 9.2 9.3 |
Contributor
✅ Backports have been createdDetails
|
mergify bot
pushed a commit
that referenced
this pull request
Jan 9, 2026
* fix the snappy decompression Signed-off-by: Andreas Gkizas <andreas.gkizas@elastic.co> * merging new config vars Signed-off-by: Andreas Gkizas <andreas.gkizas@elastic.co> --------- Signed-off-by: Andreas Gkizas <andreas.gkizas@elastic.co> Co-authored-by: Brandon Morelli <brandon.morelli@elastic.co> (cherry picked from commit 38cc702)
mergify bot
pushed a commit
that referenced
this pull request
Jan 9, 2026
* fix the snappy decompression Signed-off-by: Andreas Gkizas <andreas.gkizas@elastic.co> * merging new config vars Signed-off-by: Andreas Gkizas <andreas.gkizas@elastic.co> --------- Signed-off-by: Andreas Gkizas <andreas.gkizas@elastic.co> Co-authored-by: Brandon Morelli <brandon.morelli@elastic.co> (cherry picked from commit 38cc702)
This was referenced Jan 9, 2026
mergify bot
pushed a commit
that referenced
this pull request
Jan 9, 2026
* fix the snappy decompression Signed-off-by: Andreas Gkizas <andreas.gkizas@elastic.co> * merging new config vars Signed-off-by: Andreas Gkizas <andreas.gkizas@elastic.co> --------- Signed-off-by: Andreas Gkizas <andreas.gkizas@elastic.co> Co-authored-by: Brandon Morelli <brandon.morelli@elastic.co> (cherry picked from commit 38cc702)
6 tasks
gizas
added a commit
that referenced
this pull request
Jan 12, 2026
#48363) * fix the snappy decompression * merging new config vars --------- (cherry picked from commit 38cc702) Signed-off-by: Andreas Gkizas <andreas.gkizas@elastic.co> Co-authored-by: Andrew Gizas <andreas.gkizas@elastic.co> Co-authored-by: Brandon Morelli <brandon.morelli@elastic.co> Co-authored-by: Pierre HILBERT <pierre.hilbert@elastic.co>
5 tasks
mergify bot
pushed a commit
that referenced
this pull request
Feb 18, 2026
* fix the snappy decompression Signed-off-by: Andreas Gkizas <andreas.gkizas@elastic.co> * merging new config vars Signed-off-by: Andreas Gkizas <andreas.gkizas@elastic.co> --------- Signed-off-by: Andreas Gkizas <andreas.gkizas@elastic.co> Co-authored-by: Brandon Morelli <brandon.morelli@elastic.co> (cherry picked from commit 38cc702) # Conflicts: # docs/reference/metricbeat/metricbeat-metricset-prometheus-remote_write.md # metricbeat/module/prometheus/remote_write/_meta/docs.md # x-pack/metricbeat/module/prometheus/remote_write/_meta/docs.md
6 tasks
gizas
added a commit
that referenced
this pull request
Feb 18, 2026
…ing Length check (#48918) * [Prometheus] Remote - Write: Enforce Maxdecoding Length check (#48218) * fix the snappy decompression Signed-off-by: Andreas Gkizas <andreas.gkizas@elastic.co> --------- Signed-off-by: Andreas Gkizas <andreas.gkizas@elastic.co> Co-authored-by: Brandon Morelli <brandon.morelli@elastic.co> (cherry picked from commit 38cc702) # Conflicts: # docs/reference/metricbeat/metricbeat-metricset-prometheus-remote_write.md # metricbeat/module/prometheus/remote_write/_meta/docs.md # x-pack/metricbeat/module/prometheus/remote_write/_meta/docs.md * update docs for ga 8.19.3 Signed-off-by: Andreas Gkizas <andreas.gkizas@elastic.co> * update docs for ga 8.19.13 Signed-off-by: Andreas Gkizas <andreas.gkizas@elastic.co> --------- Signed-off-by: Andreas Gkizas <andreas.gkizas@elastic.co> Co-authored-by: Andrew Gizas <andreas.gkizas@elastic.co>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Proposed commit message
Checklist
stresstest.shscript to run them under stress conditions and race detector to verify their stability../changelog/fragmentsusing the changelog tool.How to test this PR locally
Follow the steps of doc to deploy elastic stack and metricbeat locally
Specifically add the following configuration for remote-write prometheus module:
Prometheus Module Config
apiVersion: v1 kind: ConfigMap metadata: name: metricbeat-daemonset-modules namespace: kube-system labels: k8s-app: metricbeat data: prometheus.yml: |- - module: prometheus metricsets: - remote_write host: "0.0.0.0" port: 9201 period: 10sInstall prometheus in your kind cluster
Install the following service in order to be able your prometheus server to send remote-write metrics to metricbeat
Metricbeat Service
--- apiVersion: v1 kind: Service metadata: name: metricbeat-remote-write namespace: kube-system labels: k8s-app: metricbeat spec: ports: - port: 9201 protocol: TCP targetPort: 9201 selector: k8s-app: metricbeat sessionAffinity: None type: ClusterIPConfigure prometheus server with remote write
Metricbeat Service
Save following to the trigger-pod.yaml. Install following pod to be able to create snappy requests and test the new configs
kubeclt apply -f trigger-pod.yaml
Screenshots
The metrics ingestion from prometheus remote write works fine with no problems
No restars of metricbeat during our tests:
Logs