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

feat(profilecli): Add a label values cardinality subcommand #3354

Merged

Conversation

simonswine
Copy link
Contributor

@simonswine simonswine commented Jun 12, 2024

This allows to find the source of cardinality increases easier.

❯ profilecli query label-values-cardinality
level=info msg="query label names" url=http://localhost:8080 from=2024-06-19T13:09:11.417419+01:00 to=2024-06-19T14:09:11.417419+01:00
level=info msg="received 87 label names"
+------------------------------------+-------------+
|             LABELNAME              | VALUE COUNT |
+------------------------------------+-------------+
| pod                                |      67,397 |
| instance                           |      48,438 |
| pod_template_hash                  |      12,000 |
| resource_version                   |       9,007 |
| tenant                             |       7,795 |
| node                               |       6,986 |
| org                                |       6,930 |
| instanceId                         |       6,930 |
| slug                               |       6,930 |
| stackId                            |       6,929 |
| statefulset_kubernetes_io_pod_name |       3,105 |
| __service_name__                   |       2,434 |
| service_name                       |       2,434 |
| job                                |       2,155 |
| controller_revision_hash           |         812 |
| name                               |         670 |
| container                          |         402 |
| apps_kubernetes_io_pod_index       |         350 |
| batch_kubernetes_io_controller_uid |         270 |
| namespace                          |         268 |
+------------------------------------+-------------+

@simonswine simonswine force-pushed the 20240612_add-label-values-cardinality-cmd branch from e463d71 to 9f510cb Compare June 19, 2024 13:11
@simonswine simonswine marked this pull request as ready for review June 19, 2024 13:12
@simonswine simonswine requested a review from a team as a code owner June 19, 2024 13:12
@simonswine simonswine changed the title profilecli: Add a label values cardinality subcommand feat(profilecli): Add a label values cardinality subcommand Jun 19, 2024
@simonswine simonswine force-pushed the 20240612_add-label-values-cardinality-cmd branch from 9f510cb to 50a42f0 Compare June 21, 2024 09:40
@simonswine simonswine merged commit 81f22bf into grafana:main Jun 21, 2024
16 checks passed
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.

2 participants