-
Notifications
You must be signed in to change notification settings - Fork 52
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
GetSeries fails on measurements containing a dot #67
Comments
Double-quoting is actually what InfluxDB requires. I'll have to think about it, but I'm not sure if I'll be implementing additional logic around the library API which would inspect and detect if a user passed a dot in a measurement string. I'm leaning towards the idea that the user of the library should take care of this. |
That particular measurement is created by Telegraf. It's not like it's invalid. I think the part thats in charge of creating the actual queries should take care of it. But your call :) |
I didn't say the measurement was invalid, example 7 from the link I shared explain a case such as yours. When I have the time, I'll make a few unit tests and decide what to do (which might not be that soon since I'm very busy with some other stuff in the next 2-3 months - in case you need this asap). You have a good point there and the app is already escaping special characters as per InfluxDB rules, so perhaps this should be treated in the same way. |
No rush man. |
Fails: var x = client.Serie.GetSeriesAsync("p1meter", "cpuload.short").Result;
Works: var x = client.Serie.GetSeriesAsync("p1meter", "\"cpuload.short\"").Result;
The text was updated successfully, but these errors were encountered: