-
Notifications
You must be signed in to change notification settings - Fork 5.6k
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
add pivot example for starlark processor #7976
Conversation
to be the key of the value in key `value` | ||
|
||
Input: measurement,tag_set sensor=001A0,value=111.48 | ||
Output: measurement,tag_set 001A0=111.48 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
love the input output section. We should make this standard for all examples.
I think we should change tag_set to an actual tag though, since this isn't valid line protocol as is.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Got rid of the tags altogether as they don't play a role here
# metric.fields[str(metric.fields['sensor'])] = metric.fields['value'] | ||
# metric.fields.pop('value',None) | ||
# metric.fields.pop('sensor',None) | ||
# return metric |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
no need to have it commented out.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Got rid of 'em :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One other change I think we should make, as I think this is going to set the standard for how great example docs should look.
Input: temperature sensor=001A0,value=111.48 | ||
Output: temperature 001A0=111.48 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Input: temperature sensor=001A0,value=111.48 | |
Output: temperature 001A0=111.48 | |
Input: | |
temperature sensor=001A0,value=111.48 | |
Output: | |
temperature 001A0=111.48 |
Required for all PRs: