-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
Correct the name and labels when report metrics to stackdriver #7928
Comments
what if you already using it? stop sending new metrics data and delete alert policies based on the new metric type. Usage:
|
@tam7t of interest to you probably |
Ack I'll take a look. |
The opencensus exporter has a 1:1 mapping between a 'view' and a stackdriver I'm curious how vault pushed you over 500 limit though. My instance (just the KV secret engine, GCS backend) only at 64:
Do you use a lot of the Also if you did not include |
Assume: Our Vault had X namespace, each namespace had 4 KV mounts, the identity mount, the cubbyhole mount, and 2 Auth mounts = 8 mounts. X * 8 = 8X mounts. Each mount tried to create the following custom metric descriptors.
That is 40X custom metric descriptors. what if X is larger than 15? or 20? |
Ah, it looks like the request router also include the mount name in the metric name, so I could see that also resulting in ~10 metrics per mount. Edit: Yeah so it seems like there are a few places where vault's I can also look into writing a shim to do that transformation for known-paths (database/routes) similar to statsd->prometheus metric mapping. |
It is very desirable if the number of metric descriptors does not have a linear relationship with the number of mounts or namespaces. |
I've created google/go-metrics-stackdriver#3 as one strategy to address this by adding an interface to allow for extracting labels from metric names and a function to do metric mapping for the current metrics in vault specifically. |
Closing this because #8073 has been merged. |
Current issue
vault 1.3 has the feature to report metrics directly to stackdriver.
But it has issue with current code implementation.
Right now, it created a metrics descriptor every time when send the metrics data, without set the labels. And, the metric on stackdriver looks as below:
Note: https://cloud.google.com/monitoring/quotas
With current code, vault can easily have more than 500 metric descriptors.
what shoult it looks like
Use limit number of metric descriptors while using label to mark the metric.
For example:
please refer: opencensus to check how they are using go-metrics-stackdriver.
The text was updated successfully, but these errors were encountered: