-
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
Adding tags using http plugin in json format #5330
Comments
Can you run |
In my case, I replaced some information, I marked it with bold.
|
I notice in the test output that the tags (coord_lat, coord_lon, etc) are not being reported as fields, perhaps they were once inserted as fields? Once a field has been created the The |
Probably, but I used Ok, I will use one |
I have seen some situations where the metric is not fully remove after running The name and description are a bit tricky, because it looks like there could be multiple items, but you could specify them like this:
BTW, you might want to keep an eye on this pull request too: #5125 |
Thanks, it's works. This solves the empty field problem: |
Relevant telegraf.conf:
System info:
Influxdb version: 1.7.3
Telegraf version: 1.9.2
OS: CentOS Linux release 7.6.1810 (Core)
Docker: 18.09.1
Docker image: telegraf:alpine
Actual behavior:
Fields that are defined as tags (tag_keys) and as timestamp (json_time_key) are also stored as empty fields.
Fields that are defined as strings (json_string_fields) are not saved.
The parameter "json_name_key" does not change the measurement name.
Measurement name is "http".
Timestamp by parameter "json_time_key" added correctly.
Additional info:
SHOW FIELD KEYS ON weather FROM http
name: http
SHOW TAG KEYS ON weather FROM http
name: http
SELECT coord_lat, coord_lon, dt, id FROM http
Your query is syntactically correct but returned no results
The text was updated successfully, but these errors were encountered: