question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Influx string escaping

See original GitHub issue

It 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:closed
  • Created 3 years ago
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
themoritzcommented, Jun 16, 2020

Can confirm that using InfluxNamingConvention(NamingConvention.dot) solves my issue, thanks a lot @izeye!

1reaction
shakuzencommented, Jun 16, 2020

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

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found