-
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
Make timestamp configurable for JSON parser #2986
Comments
Lets call it |
+1, this would be very helpful for me, trying to access OPC data through a restful api. |
This issue proved to be a blocker for our use case of Telegraf, would you be interested in a PR? |
@petetnt Absolutely |
hello i would be very interested in the timestamp feature, too. |
An updated json parser will have an optional 'json_time_key' and a 'json_time_format' config. This will extract one timestamp per metric from the specified key, so if your data has an array of objects you can extract multiple different timestamps. Would this suit the above use cases? |
Hello, References new features like json_time_key and json_time_format that are not yet available as of version 1.7.4 , and that will be available in 1.8.0 ? Is release date expected on 21 september ? Thanks for your help |
@pmouawad I recently updated the JSON documentation, these options are documented but can you take a look and let me know if you have any feedback. Any documentation links to the master branch are for the latest development version, so you may want to check the release branch for release specific docs: https://github.com/influxdata/telegraf/tree/release-1.8/plugins/parsers/json |
@bbczeuz were you able to get this working with the UDP streaming? I am trying to do the same, would you mind share your experience? Thanks |
@littlespace I didn't work with that feature for a long time and am ususally offline these days, so you might have to test it yourself |
Feature Request
Proposal:
Current Behavior:
time
field as timestamp...Desired Behavior:
Use Case:
socket_listener
input plugin supports the JSON format and tag_keys to process most datatime
field with the timestamp of the measurement in microseconds since the beginning of the current Epoch (http://www.juniper.net/documentation/en_US/junos/information-products/pathway-pages/ex4300/network-management.pdf)Example Data
Proposed Example Configuration
The text was updated successfully, but these errors were encountered: