Skip to content

Query usage stats #924

Description

@MKHenson

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?

Activity

  1. added
    type: questionRequest for information or clarification. Not an issue.
    api: storageIssues related to the Cloud Storage API.
    on Nov 3, 2015
  2. jgeewax commented on Nov 3, 2015

    @jgeewax
    Contributor

    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?

  3. stephenplusplus commented on Nov 3, 2015

    @stephenplusplus
    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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

api: storageIssues related to the Cloud Storage API.type: questionRequest for information or clarification. Not an issue.

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions