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

Include metric name of limited metric in internal logs emitted by tag_cardinality_limit #15742

Open
jszwedko opened this issue Dec 27, 2022 · 2 comments
Labels
transform: tag_cardinality_limit Anything `tag_cardinality_limit` transform related type: feature A value-adding code addition that introduce new functionality.

Comments

@jszwedko
Copy link
Member

A note for the community

  • Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
  • If you are interested in working on this issue or have submitted a pull request, please leave a comment

Use Cases

A user would like to know which metric hit the cardinality limit. The current internal logs just have the tag name and value. Example current log:

{
  "timestamp": "2022-11-15T14:31:46.054273Z",
  "level": "DEBUG",
  "message": "Rejecting tag after hitting configured value_limit.",
  "tag_key": "name",
  "tag_value": "7bfadae4ec1fc4eb7247fedd385641314940085384283b7b45df5d4f6e8a51a1",
  "internal_log_rate_secs": 10,
  "target": "vector::internal_events::tag_cardinality_limit",
  "span": {
    "component_id": "drop_high_cardinality_tags",
    "component_kind": "transform",
    "component_name": "drop_high_cardinality_tags",
    "component_type": "tag_cardinality_limit",
    "name": "transform"
  },
  "spans": [
    {
      "component_id": "drop_high_cardinality_tags",
      "component_kind": "transform",
      "component_name": "drop_high_cardinality_tags",
      "component_type": "tag_cardinality_limit",
      "name": "transform"
    }
  ]
}

Attempted Solutions

No response

Proposal

Include the name of the metric in the log.

References

Version

vector 0.26.0

@jszwedko jszwedko added type: feature A value-adding code addition that introduce new functionality. transform: tag_cardinality_limit Anything `tag_cardinality_limit` transform related labels Dec 27, 2022
@pablito-perez
Copy link
Contributor

Hello, I'm not a proficient rustacean but I'd like to take a stab at this issue, we really need better visibility on this component's behaviour 🙏

@spencergilbert
Copy link
Contributor

Great! Thanks @nomonamo! Feel free to start a thread in the development channel on our Discord server if you need a more real time conversation about anything, otherwise we're happy to help guide things with feedback once you get a draft PR open.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
transform: tag_cardinality_limit Anything `tag_cardinality_limit` transform related type: feature A value-adding code addition that introduce new functionality.
Projects
None yet
Development

No branches or pull requests

3 participants