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

Add several metrics-generator fields to user-configurable overrides #2711

Conversation

kvrhdn
Copy link
Member

@kvrhdn kvrhdn commented Jul 26, 2023

What this PR does:

Extends the user-configurable overrides added in #2543 with several metrics_generator_... overrides.

I adopted the nested structure proposed in #2688

New JSON payload:

{
  "forwarders": [],
  "metrics_generator": {
    "disable_collection": true,
    "processors": ["service-graphs"],
    "processor": {
      "span_metrics": {
        "dimensions": ["env"],
        "enable_target_info": true
      },
      "service_graphs": {
        "dimensions": ["env"],
        "enable_client_server_prefix": true,
        "peer_attributes": ["att"]
      }
    }
  }
}

Which issue(s) this PR fixes:
Fixes #

Checklist

Copy link
Contributor

@domasx2 domasx2 left a comment

Choose a reason for hiding this comment

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

Also need service_graphs.enable_client_server_prefix, otherwise lgtm!

modules/overrides/userconfigurableapi/limits.go Outdated Show resolved Hide resolved
@kvrhdn kvrhdn merged commit d13fccf into grafana:main Jul 28, 2023
13 checks passed
@kvrhdn kvrhdn deleted the kvrhdn/user-configurable-metrics-generator-simple-fields branch July 28, 2023 15:44
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