Add checks for invalid metric names and labels.#59
Conversation
Document who's responsible for checking produced metrics are valid. Closes #28
|
👍 in principle, but the build is failing with OOM. @brian-brazil @beorn7 Is lack of memory for Java client library tests a known issue? |
|
This happens a fair bit of the time on the pushgateway test. All tests are passing on my laptop. |
Add checks for invalid metric names and labels.
|
This fix doesn't catch hyphens in the metric name.
|
|
Are you sure your're using a recent enough version of the code? |
|
Sorry for leaving that off. I'm using version |
|
Oh my code snippet was misleading. My actual code (in an exporter) is doing:
So it is bypassing the check. Sorry for the noise. |
|
Custom collectors don't have sanity checks, it's up to you to ensure they're sane. |
Document who's responsible for checking produced metrics are valid.
Closes #28
@juliusv