8000 Read "measurement" value from config file by joekokker · Pull Request #8 · andig/dbcopy · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Read "measurement" value from config file #8

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

joekokker
Copy link
Contributor

Overwrite preset influx measurement name with the one from the config file.
This restores expected behavior.

Overwrite preset influx measurement name with the one from the config file.
This restores expected behavior.
@andig
Copy link
Owner
andig commented May 30, 2020

Typo with the %%s? Has this change been tested?

@joekokker
Copy link
Contributor Author

Yes I use it in my system. I have a custom measurement name "vzlogger" instead of the default "data".
I do not know php very well, therefore it might not be the nicest solution.

%%s is no typo. % is the escape character for % in sfprintf

@andig
Copy link
Owner
andig commented May 30, 2020

Why does the % need escaping here? All you want to do is replace %s by the actual uuid which is what sprintf does?

@joekokker
Copy link
Contributor Author

I am creating the query where I substitute the measurement name. The uuid is substituted in a second step, which I left unchanged.

I want to replace 'data' with the name specified in the config file as you probably intended in the first place.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants
0