Skip to content
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

Open
davidkarlsen opened this issue Aug 27, 2015 · 5 comments
Open

sqls shoud have sanatized names #1

davidkarlsen opened this issue Aug 27, 2015 · 5 comments

Comments

@davidkarlsen
Copy link

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.

@davidkarlsen
Copy link
Author

WDYT?

@gquintana
Copy link
Owner

You can do that implementing your own naming strategy. We could integrate it in Metrics SQL library if you do PR.

@gquintana
Copy link
Owner

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.

@davidkarlsen
Copy link
Author

davidkarlsen commented Sep 30, 2017

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?

@gquintana
Copy link
Owner

Yes a I tried to fix it. Your feedback and PRs are welcome.

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

No branches or pull requests

2 participants