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
metrics name truncated #4
Comments
Hello there @yiyijin! Thanks for filing this issue. If I recall correctly from 2017/2019, this is to protect and high cardinality labels as the limit for label key names by OpenCensus or Stackdriver, but indeed it truncates long names. Since Prometheus doesn't seem to have a limit, perhaps we can/could remove this limit? |
@odeke-em Thanks a lot for the reply! I think it will be good to remove this limitations, or make it configurable at least, I just wonder do we have an estimate for this change? Thanks a lot! |
Thanks a lot! |
Cheers! Thanks for the report, and for using this software!
…On Mon, Feb 24, 2020 at 4:16 PM yiyijin ***@***.***> wrote:
Thanks a lot!
—
You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub
<#4?email_source=notifications&email_token=ABFL3V5RRUB3U2GQYBJKXZTRERPO3A5CNFSM4K2SW3CKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEM2BCVQ#issuecomment-590614870>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABFL3V3RJ2NHLDIDZ2RCFRDRERPO3ANCNFSM4K2SW3CA>
.
|
We are using opencensus to collect metrics from the application, which uses oc-agent and oc-collector to send to prometheus.
I have noticed that the metrics name gets truncated if the number of chars is greater than 100, after looking at the code, it looks like:
prometheus-go-metrics-exporter/sanitize.go
Line 25 in b321c52
is causing the issue.
I just wonder any reason for this restriction? is there anyway that we can make it configurable?
The text was updated successfully, but these errors were encountered: