cf_get_events icon indicating copy to clipboard operation
cf_get_events copied to clipboard

I want to suppress / filter out some orgs/spaces?

Open ghost opened this issue 6 years ago • 4 comments

I would like to suppress / filter out some orgs/spaces from the counts/outputs. For example, I might want to get all AIs across the foundation, except AIs in "system" org (and relevant spaces).

ghost avatar Jun 12 '18 11:06 ghost

The sum on AI has a with and without system

+-----------------------+-----+-----+--------+
|       CATEGORY        | APP | AI  | MEMORY |
+-----------------------+-----+-----+--------+
| Total                 | 114 | 182 | 139886 |
| Total (excl system)   |  70 |  95 |  80506 |
| STARTED               |  87 | 132 | 100970 |
| STARTED (excl system) |  56 |  75 |  63670 |
+-----------------------+-----+-----+--------+

Does that covers your use case?

If you 'd want a "--exclude orgA,orgB"

  • would it be fine
  • would you expect the "(excl system)" above to report 0 or be hidden

Another option is to support --csv to let you post-process - but cf bcr goal is not to replace AppsManager detail csv zip export anyway.

alexvasseur avatar Jun 12 '18 13:06 alexvasseur

Thanks Alex!

I didn't realize the output already does both AI counts with System and without System org. It is a bit confusing to have both.

I mean it's great to get the current totals, with or without System, but not that accurate for the historical counts.

Here's why: If you do cf bcr --ai --monthly:

cf bcr --monthly --ai
+------+-------+--------+--------+-----------------+-----------------+
| YEAR | MONTH | AI AVG | AI MAX | TASK CONCURRENT | TASK TOTAL RUNS |
+------+-------+--------+--------+-----------------+-----------------+
| 2018 |     6 |     14 |     29 |               1 |              14 |
| 2018 |     5 |      1 |     12 |               2 |              28 |
|    0 |     0 |      0 |      0 |               0 |               0 |
|    0 |     0 |      0 |      0 |               0 |               0 |
|    0 |     0 |      0 |      0 |               0 |               0 |
|    0 |     0 |      0 |      0 |               0 |               0 |
|    0 |     0 |      0 |      0 |               0 |               0 |
+------+-------+--------+--------+-----------------+-----------------+

The system org seems to be included. It would be great to be able to suppress an org (e.g. system) or multiple orgs, and then have proper counts. Maybe even specify the list of orgs we are interested to summarize data for?

ghost avatar Jun 12 '18 19:06 ghost

cf bcr --monthly is a standalone option It does capture the exact same report than the AppsManager report - which according to Pivotal doc excludes system org. I am happy to rename this table title if this helps clarify.

alexvasseur avatar Jun 12 '18 20:06 alexvasseur

Any comments?

alexvasseur avatar Jun 24 '18 22:06 alexvasseur