Replies: 2 comments 10 replies
-
Yeah, some features are unlikely to produce many metrics and in this case we decided to add them as they are. We could switch them to a different format, like:
The question is would that make anything easier to debug… 🤔 |
Beta Was this translation helpful? Give feedback.
-
I don't think it would make things harder to debug, which is probably the more important consideration. The real killer for cardinality is the counts - with just concatenated (sorted) syscall names, the label values are at least bounded by the permutations of syscall names, though I still don't love that. If you stick to a single label per point it also opens up the possibility to query by syscall without having to resort to regexp, however useful that might or might not be. |
Beta Was this translation helpful? Give feedback.
-
Looking at the recently added seccomp metrics, it looks like the
syscalls
label has essentially unbounded cardinality, since it appears that syscalls and counts are concatenated as a string value, e.g.:So, every possible combination of syscall and count may published to this label, making the possible value permutations infinite.
I'm not sure what the ideal structure for these metrics should be, but I don't think the current metrics should stand as they are.
Beta Was this translation helpful? Give feedback.
All reactions