Influx string escaping
See original GitHub issueIt looks like the Influx backend doesn’t do any escaping of e.g. tag values. As an example, using JvmMemoryMetrics()
tries to send the following line to influx:
jvm.memory.max,area=heap,id=G1 Eden Space,metric_type=gauge value=-1 1592264154913
whereas the properly escaped value for the id
tag would be G1\ Eden\ Space
(see Influx docs).
Issue Analytics
- State:
- Created 3 years ago
- Comments:6 (4 by maintainers)
Top Results From Across the Web
How to escape strings in Flux (influxdb)? - Stack Overflow
I want to pass a http.post json through a task but I cannot find docs on how to escape a string and I...
Read more >InfluxDB line protocol reference - InfluxData Documentation
You must use a backslash character \ to escape the following special characters: In string field values, you must escape: double quotes; backslash...
Read more >String serialization failure while escaping characters #241
Expected Behavior: Measurement with provided string is correctly escaped and written to the DB. Current Behavior:
Read more >InfluxDB Line protocol special character escaping
I'm using quoted strings (like “3.2.7”) for non-numeric tag values. If needed, the " character itself is escaped by \ character (and double...
Read more >Variable - node-influx
TagEscaper escapes tag keys, tag values, and field keys. Static Public. public Precision: Object<String, String> ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Can confirm that using
InfluxNamingConvention(NamingConvention.dot)
solves my issue, thanks a lot @izeye!Thanks for the support @izeye. With that information, I believe that makes things clear and there is no change to be made in Micrometer. Let us know if that’s not the case and we can reopen this @themoritz