-
Notifications
You must be signed in to change notification settings - Fork 306
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
Expose streaming aggregation config in vmagent chart #930
Comments
Hello! helm-charts/charts/victoria-metrics-agent/values.yaml Lines 588 to 589 in 7b517be
Do you have better idea on how to expose this? |
In the latest version of the helm chart, which I use in terraform, I do something like resource "helm_release" "victoriametrics" {
name = "victoriametrics"
chart = var.vmcluster_chart_name
version = var.vmcluster_chart_version
repository = var.chart_repository
namespace = kubernetes_namespace.victoriametrics.metadata[0].name
timeout = 1200
values = [local.vmcluster_helm_chart_values]
}
resource "kubernetes_config_map" "victoriametrics_relabel_configs" {
metadata {
name = "victoriametrics-agent-vmagent-relabel-configs"
namespace = kubernetes_namespace.victoriametrics.metadata[0].name
}
data = {
"remotewrite_relabelconfig.yml" = "${file("${path.module}/manifests/remotewrite_relabelconfig.yaml")}"
"remotewrite_streamAggr_config.yml" = "${file("${path.module}/manifests/remotewrite_streamAggr_config.yaml")}"
}
} and then I just use it in extraArgs like extraArgs:
remoteWrite.relabelConfig: /config/extra/remotewrite_relabelconfig.yml
remoteWrite.streamAggr.config: /config/extra/remotewrite_streamAggr_config.yml I prefer it this way because I can keep a real YAML file in my terraform repository and use all the usual YAML tools on it. |
Thanks for the suggestions, I'll take a look |
Close as answered, feel free to re-open if there is further question. |
Streaming aggregation looks like a great alternative to recording rules and I'd like to try it out:
https://docs.victoriametrics.com/stream-aggregation/
However the
-remoteWrite.streamAggr.config
setting is not available through the vmagent helm chart, requiring some manual intervention to configure. Would it be possible to expose it and a method for defining streaming aggregation rules?Thanks!
The text was updated successfully, but these errors were encountered: