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

rule: add --query.http-method #3378

Merged
merged 3 commits into from Oct 30, 2020
Merged

Conversation

GiedriusS
Copy link
Member

@GiedriusS GiedriusS commented Oct 29, 2020

Add a new parameter which lets you specify what kind of HTTP method to
use when sending queries.

Switch to using POST by default to avoid possible problems and because it
has been around for quite a while by now.

Signed-off-by: Giedrius Statkevičius giedriuswork@gmail.com

  • I added CHANGELOG entry for this change.
  • Change is not relevant to the end user.

Verification

Tests still pass.

Closes #2577.
Closes #3233.

Add a new parameter which let's you specify what kind of HTTP method to
use when sending queries.

Signed-off-by: Giedrius Statkevičius <giedriuswork@gmail.com>
Copy link
Member

@bwplotka bwplotka left a comment

Choose a reason for hiding this comment

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

Amazing 🤗

Once suggestion and LGTM! 👍

CHANGELOG.md Outdated
@@ -20,6 +20,7 @@ We use *breaking :warning:* to mark changes that are not backward compatible (re
- [#3346](https://github.com/thanos-io/thanos/pull/3346) Ruler UI: Fix a bug preventing the /rules endpoint from loading.
- [#3115](https://github.com/thanos-io/thanos/pull/3115) compact: now deletes partially uploaded and blocks with deletion marks concurrently. It does that at the beginning and then every `--compact.cleanup-interval` time period. By default it is 5 minutes.
- [#3312](https://github.com/thanos-io/thanos/pull/3312) s3: add list_objects_version config option for compatibility.
- [#3378](https://github.com/thanos-io/thanos/pull/3378) Ruler: learned to send queries via POST. Helps when alerting/recording rules are extra long. It now uses POST unless `--query.http-method` is `GET`.
Copy link
Member

Choose a reason for hiding this comment

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

learned? ;p Can we use more technical language?

Copy link
Member Author

Choose a reason for hiding this comment

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

😄 reworked this line to make it more technical and even cleaner. Let me know if that works :P

Make it more technical :-P

Signed-off-by: Giedrius Statkevičius <giedriuswork@gmail.com>
Signed-off-by: Giedrius Statkevičius <giedriuswork@gmail.com>
@bwplotka bwplotka merged commit f07d8bc into thanos-io:master Oct 30, 2020
@bwplotka
Copy link
Member

Thanks!

Oghenebrume50 pushed a commit to Oghenebrume50/thanos that referenced this pull request Dec 7, 2020
* rule: add --query.http-method

Add a new parameter which let's you specify what kind of HTTP method to
use when sending queries.

Signed-off-by: Giedrius Statkevičius <giedriuswork@gmail.com>

* CHANGELOG: rework the line

Make it more technical :-P

Signed-off-by: Giedrius Statkevičius <giedriuswork@gmail.com>
Signed-off-by: Oghenebrume50 <raphlbrume@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Rule: add ability to send POST requests
2 participants