Skip to content
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

Query usage stats #924

Closed
MKHenson opened this issue Nov 3, 2015 · 2 comments
Closed

Query usage stats #924

MKHenson opened this issue Nov 3, 2015 · 2 comments
Assignees
Labels
api: storage Issues related to the Cloud Storage API. type: question Request for information or clarification. Not an issue.

Comments

@MKHenson
Copy link

MKHenson commented Nov 3, 2015

Hi guys

Is there currently a way to query any kind of usage stats with the files/buckets in storage?

Let's say I wanted to setup a website which stores user files on the cloud. I want to allow them to download the files directly as opposed to me having to download the file first on my own server, process the request, and send it to the user. If I do my own processing I defeat the point of having the files on the cloud as it slows the whole process down and means my server becomes a point of failure. I might do this to see how much usage the user is using of my service.

Is there a feature / methodology for dealing with this? Something like being able to query the file stats (perhaps just number of downloads?) If not can I make a request for it?

@jgeewax jgeewax added type: question Request for information or clarification. Not an issue. api: storage Issues related to the Cloud Storage API. labels Nov 3, 2015
@jgeewax
Copy link
Contributor

jgeewax commented Nov 3, 2015

I think access logs + big query are what you're looking for. Take a look at https://cloud.google.com/storage/docs/access-logs?hl=en ?

I think this is more of a general question though, not really about gcloud-node, so I'm going to mark it as closed. If you have more questions about access logging, feel free to post something on Stack Overflow?

@jgeewax jgeewax closed this as completed Nov 3, 2015
@stephenplusplus
Copy link
Contributor

This might relate to #527, if so, we are hoping to support the metrics/stats API. That issue is for Pub/Sub, but if one exists for Storage, that would be covered as well.

sofisl pushed a commit that referenced this issue Jan 17, 2023
sofisl pushed a commit that referenced this issue Jan 24, 2023
- [ ] Regenerate this pull request now.

PiperOrigin-RevId: 470911839

Source-Link: googleapis/googleapis@3527566

Source-Link: googleapis/googleapis-gen@f16a1d2
Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiZjE2YTFkMjI0ZjAwYTYzMGVhNDNkNmE5YTFhMzFmNTY2ZjQ1Y2RlYSJ9

feat: accept google-gax instance as a parameter
Please see the documentation of the client constructor for details.

PiperOrigin-RevId: 470332808

Source-Link: googleapis/googleapis@d4a2367

Source-Link: googleapis/googleapis-gen@e97a1ac
Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiZTk3YTFhYzIwNGVhZDRmZTczNDFmOTFlNzJkYjdjNmFjNjAxNjM0MSJ9
sofisl pushed a commit that referenced this issue Jan 25, 2023
- [ ] Regenerate this pull request now.

PiperOrigin-RevId: 470911839

Source-Link: googleapis/googleapis@3527566

Source-Link: googleapis/googleapis-gen@f16a1d2
Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiZjE2YTFkMjI0ZjAwYTYzMGVhNDNkNmE5YTFhMzFmNTY2ZjQ1Y2RlYSJ9

feat: accept google-gax instance as a parameter
Please see the documentation of the client constructor for details.

PiperOrigin-RevId: 470332808

Source-Link: googleapis/googleapis@d4a2367

Source-Link: googleapis/googleapis-gen@e97a1ac
Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiZTk3YTFhYzIwNGVhZDRmZTczNDFmOTFlNzJkYjdjNmFjNjAxNjM0MSJ9
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api: storage Issues related to the Cloud Storage API. type: question Request for information or clarification. Not an issue.
Projects
None yet
Development

No branches or pull requests

3 participants