-
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
Non textual field string data in sqlserver plugin with SqlRequests query #6679
Comments
@denzilribeiro @m82labs On this one it seems like we should just remove these two fields, can you weight in? |
We can remove those, will be harder to correlate to actual Query plans in the database if we do. I didn't realize couldn't have binary data sorry |
Maybe it would be best if we had these fields base64 encoded or hashed to a UUID? |
if the problem depends only on the datatype the below solution may work, if it's related to GO or some sort string escape/processing problem maybe the "Second solution" section will solve it First Solution
Second Solution personally I think that those fields are useful, especially on a production system like an ERP, where you don't have custom queries, therefore the query_hash is always the same and allows you to identify a single query (and then get it's text by querying the database using the hash). the same is valid for the execution plan, which may change sometimes but not that often. a small addition: |
I think it would make sense to do this in the query, the particular way we encode the data isn't of great importance it just needs to be valid utf-8, either a hex string (with or without 0x) or base64 would be fine for me. On the subject of field vs tags, we should consider the cardinality. Is the relationship between |
query_hash to statement_text is 1:1. query_hash to query_plan_hash is 1:M |
Relevant telegraf.conf:
System info:
Telegraf 1.12.5
Steps to reproduce:
Expected behavior:
All string fields are valid UTF-8 text.
Actual behavior:
The
query_hash
andquery_plan_hash
appear to be binary data.Additional info:
Small selection of example output:
input-filter.txt
The text was updated successfully, but these errors were encountered: