-
Notifications
You must be signed in to change notification settings - Fork 9
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
sqls shoud have sanatized names #1
Comments
WDYT? |
You can do that implementing your own naming strategy. We could integrate it in Metrics SQL library if you do PR. |
The more I think about it, the more I think removing unwanted chars from metric names should be done in the Graphite reporter. Though I added a "strict" metric naming strategy which remove most special chars from SQL query id. |
We've stopped using graphite and now use prometheus - at any rate we only poll for datasource level metrics (e.g. not down at the query level) - so not so much of a need for me any longer - but are you still interested in a PR for the NamingStrategy or have you already fixed it - https://github.com/gquintana/metrics-sql/blob/master/src/main/java/com/github/gquintana/metrics/sql/StrictMetricNamingStrategy.java seems to cut it? |
Yes a I tried to fix it. Your feedback and PRs are welcome. |
sql contains . (tablename.colname) - this does not play well with metrics/graphite where . is used to separate/name metrics - hence the namingstrategy should replace dots with something else like dot
See dropwizard/metrics#637 for related issue.
The text was updated successfully, but these errors were encountered: