-
Notifications
You must be signed in to change notification settings - Fork 5k
[Prometheus] Remote - Write: Enforce Maxdecoding Length check #48218
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
base: main
Are you sure you want to change the base?
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>
🤖 GitHub commentsJust comment with:
|
|
Pinging @elastic/obs-ds-hosted-services (Team:obs-ds-hosted-services) |
|
This pull request does not have a backport label.
To fixup this pull request, you need to add the backport labels for the needed
|
🔍 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>
MichaelKatsoulis
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Signed-off-by: Andreas Gkizas <andreas.gkizas@elastic.co>
Signed-off-by: Andreas Gkizas <andreas.gkizas@elastic.co>
| #insecure_skip_verify: true | ||
| ``` | ||
|
|
||
| ## Request size limits [_request_size_limits] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What version will these changes go into? We need to tag that version in the docs. For example:
| ## Request size limits [_request_size_limits] | |
| ## Request size limits [_request_size_limits] | |
| ```{applies_to} | |
| stack: ga 9.4 | |
| ``` |
Repeat in each of the doc entries in this PR. More info here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @bmorelli25 . See fixing docs with versions
let me know wdyt
Signed-off-by: Andreas Gkizas <andreas.gkizas@elastic.co>
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
Related issues
Screenshots
The metrics ingestion from prometheus remote write works fine with no problems
No restars of metricbeat during our tests:
Logs