-
Notifications
You must be signed in to change notification settings - Fork 224
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
Document the metadata column in the CSV output #925
Comments
This was probably introduced with the v0.41.0 release , grafana/k6#2726. Based on the release notes. Not sure if we want to document or reference it. Or simply change the example in the docs to add this column. Internal support for high-cardinality metrics metadata (grafana/k6#2726, grafana/k6#2727)As described in the previous section, the efficient grouping of metric samples into time series works well for relatively low-cardinality data. However, k6 needed some way to attach high-cardinality metadata as well. This is necessary for data that's unique or random, such as Trace and Span IDs in distributed tracing or user IDs in tests with huge data sets. k6 v0.41.0 has added support for attaching high-cardinality metadata to metric samples, and the vu and iter system tags have been transformed into such metadata (see the breaking changes section above), but it is not yet accessible from user scripts. There is no JavaScript API to modify this metadata, only built-in k6 Go modules and xk6 Go extensions can make use of it, for now. |
If we take the CSV headers I'd like to see all the headers clearly documented, either pointing to the corresponding metric or explaining what we'll find there ( We could convert this issue to better document what to expect when writing to files vs streaming. At least for the outputs maintained in the core. What do you think @MattDodsonEnglish ? |
I think it's a great Idea to add tabbed references for the major OSs here. 👍 . Especially since it's an introductory doc. |
Thank! Is this comment maybe for #1078 @MattDodsonEnglish ? |
Haha, yes 🤦 . I need to be a little slower in going through my issues |
🤦 |
Do you plan to create a new issue for this @MattDodsonEnglish
|
In the docs we have the output columns as below:
Currently, the output is adding a
metadata
column:We should change the example and also review where the
fieldNames
are documented. Is it under metrics? I am not finding themetadata
field in the docs. Could this be themetadata
in the requests?Decide if it's worth documenting the output columns as in k6-learn.
And also review the JSON and other outputs to see if it's clear. Or we can document the columns in general for "all" the outputs.
The text was updated successfully, but these errors were encountered: