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

Added support for maxDiskUsagePerURL and forceVMProto in vmagent remoteWriteSpec #1117

Conversation

leandregagnonlewis
Copy link
Contributor

@leandregagnonlewis leandregagnonlewis commented Sep 27, 2024

Describe Your Changes

Added two fields to VMAgentRemoteWriteSpec:

  • forceVMProto
  • maxDiskUsage

This allows to easily configure different remote write destination without using the extraArgs.

When only some of the remote write destinations are set, the others are set to the default value of "1073741824" which was the default value set in VMAgentRemoteWriteSettings.

If maxDiskUsage is set in both VMAgentRemoteWriteSettings and VMAgentRemoteWriteSpec, only VMAgentRemoteWriteSpec is used. If extraArgs is also used, extraArgs still takes precedence.

For forceVMProto, it is also overriden by extraArgs if the flag is set there.

@@ -4,3 +4,9 @@ patches:
- path: manager_webhook_patch.yaml
target:
kind: Deployment
apiVersion: kustomize.config.k8s.io/v1beta1
Copy link
Contributor

Choose a reason for hiding this comment

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

@leandregagnonlewis could you please reset changes in this file?

f41gh7
f41gh7 previously approved these changes Oct 3, 2024
Copy link
Collaborator

@f41gh7 f41gh7 left a comment

Choose a reason for hiding this comment

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

LGTM.

Could you please mention changes at docs/changelog.md ?

updated changelog
@leandregagnonlewis leandregagnonlewis force-pushed the feature/more-vmagent-remotewrite-spec-options branch from 23be6f1 to 8c99c3a Compare October 4, 2024 14:46
f41gh7
f41gh7 previously approved these changes Oct 5, 2024
Copy link
Collaborator

@f41gh7 f41gh7 left a comment

Choose a reason for hiding this comment

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

LGTM

@f41gh7 f41gh7 merged commit 90a2665 into VictoriaMetrics:master Oct 14, 2024
1 check passed
@f41gh7
Copy link
Collaborator

f41gh7 commented Oct 14, 2024

Thanks for contribution!

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.

3 participants