VictoriaMetrics / operator

Kubernetes operator for Victoria Metrics
Apache License 2.0
436 stars 146 forks source link

Added support for maxDiskUsagePerURL and forceVMProto in vmagent remoteWriteSpec #1117

Closed leandregagnonlewis closed 1 month ago

leandregagnonlewis commented 1 month ago

Describe Your Changes

Added two fields to VMAgentRemoteWriteSpec:

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.

f41gh7 commented 1 month ago

Thanks for contribution!