Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
aos
GitHub Repository: aos/grafana-agent
Path: blob/main/production/grafana-agent-mixin/config.libsonnet
4093 views
{
  local makeGroupBy(groups) = std.join(', ', groups),

  _config+:: {
    namespace: '.*',

    // Groups labels to uniquely identify and group by clusters
    cluster_selectors: ['cluster', 'namespace'],

    // Each group-by label list is `, `-separated and unique identifies
    group_by_cluster: makeGroupBy($._config.cluster_selectors),
  },
}