clasp icon indicating copy to clipboard operation
clasp copied to clipboard

clasp metrics

Open grant opened this issue 7 years ago • 9 comments

Expected Behavior

Be able to view metrics such as # of executions, active users, active processes.

Maybe a metrics dashboard:

  • clasp metrics

Actual Behavior

Does not exist. We don't use these API methods. Could they be interesting?

grant avatar Oct 18 '18 05:10 grant

It would be nice if we could see the # of API requests:

https://cloud.google.com/monitoring/api/ref_v3/rest/v3/projects.timeSeries/list?apix_params=%7B%22name%22%3A%22projects%2Fcounterpoint-test%22%2C%22filter%22%3A%22metric.type%20%3D%20%5C%22storage.googleapis.com%2Fapi%2Frequest_count%5C%22%22%2C%22interval.endTime%22%3A%222018-11-22T00%3A12%3A59Z%22%2C%22interval.startTime%22%3A%222018-11-21T00%3A12%3A59Z%22%7D

grant avatar Nov 21 '18 00:11 grant

I want this command! Currently, We should use GUI on web to check up if there are problems in clasp project . By using this function, We can investigate the problem with CUI only.

takanakahiko avatar Nov 28 '18 10:11 takanakahiko

It could be a useful command. I don't have any add-ons with significant users, so it's less useful for me.

It's a good first issue.

Useful for at least for these metrics:

"activeUsers"
"totalExecutions"
"failedExecutions"

grant avatar Jan 25 '19 21:01 grant

I decided to pick this up. I am looking for some input on how the output of the command should look like. Does this output style look reasonable?

$ clasp metrics
2020-03-18:  0 users,  0 executions,  0 failed
2020-03-17:  0 users,  0 executions,  0 failed
2020-03-16:  0 users,  0 executions,  0 failed
2020-03-15:  1 users,  1 executions,  0 failed
2020-03-14:  2 users, 21 executions,  2 failed
2020-03-13:  0 users,  0 executions,  0 failed
2020-03-12:  0 users,  0 executions,  0 failed

kalmi avatar Mar 18 '20 03:03 kalmi

@kalmi

Is it possible get output without any separate signs? : & , are redundant.

oshliaer avatar Mar 20 '20 19:03 oshliaer

@contributorpw Thanks, good idea. Dropped them. Which one do you prefer?

2020-03-20 0 users  0 executions 0 failed
2020-03-19 0 users  0 executions 0 failed
2020-03-18 0 users  0 executions 0 failed
2020-03-17 0 users  0 executions 0 failed
2020-03-16 0 users  0 executions 0 failed
2020-03-15 1 user   1 execution  0 failed
2020-03-14 2 users 21 executions 2 failed
2020-03-20  0 users   0 executions  0 failed
2020-03-19  0 users   0 executions  0 failed
2020-03-18  0 users   0 executions  0 failed
2020-03-17  0 users   0 executions  0 failed
2020-03-16  0 users   0 executions  0 failed
2020-03-15  1 user    1 execution   0 failed
2020-03-14  2 users  21 executions  2 failed
2020-03-20 0 users 0 executions 0 failed
2020-03-19 0 users 0 executions 0 failed
2020-03-18 0 users 0 executions 0 failed
2020-03-17 0 users 0 executions 0 failed
2020-03-16 0 users 0 executions 0 failed
2020-03-15 1 user 1 execution 0 failed
2020-03-14 2 users 21 executions 2 failed

Also, is the pluralisation (user/users) a good idea? Or is it just confusing?

kalmi avatar Mar 20 '20 21:03 kalmi

I'd like the second one.

I can't say something best about pluralisation =) I'd like simple stuff.

oshliaer avatar Mar 21 '20 04:03 oshliaer

I am glad. I prefer that one too.

kalmi avatar Mar 21 '20 09:03 kalmi

@kalmi, I look forward to your suggestions. I would really like this feature.

oshliaer avatar Mar 22 '20 13:03 oshliaer