-
Notifications
You must be signed in to change notification settings - Fork 491
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
sanitize names when using them as tag value #858
sanitize names when using them as tag value #858
Conversation
Codecov Report
@@ Coverage Diff @@
## master #858 +/- ##
==========================================
- Coverage 50.15% 50.15% -0.01%
==========================================
Files 37 37
Lines 3483 3505 +22
Branches 495 501 +6
==========================================
+ Hits 1747 1758 +11
- Misses 1625 1632 +7
- Partials 111 115 +4
Continue to review full report at Codecov.
|
The biggest concern here is the impact that this will have on anyone who is currently using series with a |
Yeah, we could do that. Then i think I should update the docs accordingly, and update the validation function in raintank/schema as well to keep everything consistent |
Another question: What do we do if a metric name is exactly |
The only real option available here would be to drop it as invalid afaik |
I updated the docs accordingly https://github.com/graphite-project/graphite-web/pull/2458/files |
44b21c5
to
d700f69
Compare
d700f69
to
15da096
Compare
Currently, if the resulting string is Line 42 in 8e94e48
So it would ignore the metric and log an error. I think that's probably what we want |
15da096
to
dc86a7c
Compare
a7cbbde
to
7afddc0
Compare
I've pushed a few more tests, so the test coverage report is happy |
Co-Authored-By: Dan Cech <dan@aussiedan.com>
9d7d37b
to
f1cc19f
Compare
* sanitize names when using them as tag value related: graphite-project/graphite-web#2458 * implement updated rules * copy tag and value validation from graphite * better error messages * add tests for tag validation * Better exception messages Co-Authored-By: Dan Cech <dan@aussiedan.com> Co-authored-by: Dan Cech <dan@aussiedan.com>
* sanitize names when using them as tag value related: graphite-project/graphite-web#2458 * implement updated rules * copy tag and value validation from graphite * better error messages * add tests for tag validation * Better exception messages Co-Authored-By: Dan Cech <dan@aussiedan.com> Co-authored-by: Dan Cech <dan@aussiedan.com>
* sanitize names when using them as tag value related: graphite-project/graphite-web#2458 * implement updated rules * copy tag and value validation from graphite * better error messages * add tests for tag validation * Better exception messages Co-Authored-By: Dan Cech <dan@aussiedan.com> Co-authored-by: Dan Cech <dan@aussiedan.com>
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
related: graphite-project/graphite-web#2458