-
Notifications
You must be signed in to change notification settings - Fork 101
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
Inconsistent metrics from storage.googleapis.com #41
Comments
Ahh straight from https://cloud.google.com/monitoring/api/metrics_gcp#gcp-storage
So we need to cache this result as it will not be available for up to 10 minutes. |
Hey, I'm facing exactly the same problem. It also seems that the sampling doesn't work. I see changes in
What exactly does this mean? I interpret this as:
Now please see my stackdriver console output below. You see the past 7 days and the graph is only updated once a day. I don't see the sampling data changing the graphs at all. This basically makes the metrics useless (since they are at max 24h old). |
Hi @frodenas , I'm also having the same issue on another metric. Found this documentation regarding the "not visible for up" https://cloud.google.com/monitoring/api/metrics#metadata My interpretation of the "Sampled every 300 seconds." is that every 300 seconds google goes into the bucket and counts the number of objects. It then sends the count to some storage. The "After sampling, data is not visible for up to 600 seconds." is the time the count takes to be consistent on the storage. Only after is being consistent can we read it using the api. This has a big impact on metric collection, as to get a non empty value, we should be able to configure some delay on the metric date time. i.g. for object count, when it stackdriver exporter collection runs, it should fetch the metric value for at least 600 seconds ago, if not it will get empty values as is not yet visible because the 600 seconds haven't passed yet. Regards |
Stackdriver exporter already support the option to set an offset on the metrics date. See: Tracing back the code, it can be configured at the cli with the switch: |
Hello,
I encounter some issue to grab the storage metrics. Some time I've got all the metrics, some time just some of them and some times none.
I've started it with just storage and verbose output
And observed the following logs:
But only one metric is returned
Or two
Any idea why all metrics (like stackdriver_gcs_bucket_storage_googleapis_com_storage_total_bytes) are not returned each time ?
Thanks.
The text was updated successfully, but these errors were encountered: