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

[Telemetry] Report the policies that have add_field enabled. #184504

Closed
1 task
Tracked by #179915
nimarezainia opened this issue Feb 7, 2024 · 5 comments · Fixed by #186390
Closed
1 task
Tracked by #179915

[Telemetry] Report the policies that have add_field enabled. #184504

nimarezainia opened this issue Feb 7, 2024 · 5 comments · Fixed by #186390
Assignees
Labels
enhancement New value added to drive a business result Team:Elastic-Agent-Control-Plane

Comments

@nimarezainia
Copy link
Contributor

nimarezainia commented Feb 7, 2024

The user has the ability to add multiple fields, at the policy level, to the ingested data from all the agents in that policy. We would like to be able to determine how many fields on average are being added via this mechanism.

  • Capture telemtery that shows count of fields added to each policy that's configured in a given cluster.
@pierrehilbert pierrehilbert added the enhancement New value added to drive a business result label Feb 7, 2024
@ycombinator
Copy link
Contributor

Hey @nimarezainia, would you mind fleshing out some details in the issue description? Thanks!

@ycombinator
Copy link
Contributor

@kpollich Do you think it makes sense for this issue to be transferred to the Kibana repo, since the implementation for the data tagging / add_field feature is being done entirely in Kibana now, e.g. #183563?

@kpollich
Copy link
Member

@kpollich Do you think it makes sense for this issue to be transferred to the Kibana repo, since the implementation for the data tagging / add_field feature is being done entirely in Kibana now, e.g. elastic/kibana#183563?

Yes this can move over to Kibana as we can report this data by querying Kibana objects.

@kpollich kpollich transferred this issue from elastic/elastic-agent May 30, 2024
@nchaulet
Copy link
Member

@nimarezainia Currently in telemetry we capture one field like this for agent policies in .fleet-stats

"agent_policies": {
      "count": 6,
      "output_types": [
        "elasticsearch"
      ]
    },

We can add two properties to that does it make sense to you?

"agent_policies": {
      "count": 6,
      "output_types": [
        "elasticsearch"
      ],
+   "count_with_global_data_tags": 2, // Count of policies using global data tags
+    "avg_number_global_data_tags_per_policy": 3  // Average number of fields per policy
    },

@nimarezainia
Copy link
Contributor Author

LGTM @nchaulet (thank you)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New value added to drive a business result Team:Elastic-Agent-Control-Plane
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants