Gather GUIDs from applications only with v4.0.0

未关闭
#55 2 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
4/5
预计耗时
3-5 天
新手友好度
25/100
Issue 类型
功能
描述清晰度
需要澄清
活跃度
停滞
技术栈
go
领域
cli, cloud

调研方向

首先复现 cf log-meta --noise --guid --sort-by=rate --source-type=application 以及不带 --source-type 的较新命令,然后检查用于验证 --guid--source-type 的 CLI 入口点。比较 v3.1.0 与最新版本的行为;当 application GUID 输出能够可靠地单独提取,或受支持的替代方案已记录时,即可完成。

由索引模型根据 Issue 内容生成。

描述

unscheduled

In order to get a list of the noisy neighbour applications up until now (up until the latest 4.0.0 release ) we were using v3.1.0 and the following command to get the GUIDs of the applications together with the log stats:

cf log-meta --noise --guid --sort-by=rate --source-type=application

After we get the guids we run another CF API call to get the organization and space where the app is running:
cf curl /v3/apps?guids=GUID[i]&include=space,space.organization and the end we show everything as a table.

Now we've installed the latest version of the log-cache cli plugin and we've got an error that the --guid switch can only be used with --source-type=platform. Therefore we've tested with:

cf log-meta --noise --sort-by=rate  --guid

and in the output we've found guids and names of the CF's system components like:

b7a4131c-d903-4b96-a317-964e1683eac7  100000  11051395     1m25s     84498
99fb2c5e-6a0c-40a7-ae85-d84d7b4c2da7  100000  1012754700   1m9s      86893
cc                                    100000  1852851914   1m10s     100949
5173064e-ba3d-4ac5-870d-fc4e5189175e  100000  30521455     3m35s     105759
udp_forwarder                         100000  2928951589   56s       109205
c828168b-46d0-485f-9311-c532d2657e26  100000  39282416     3m53s     113781
metrics_discovery_registrar           100000  3228728621   50s       120818
forwarder_agent                       100000  3378198414   48s       126431
21f89441-0582-48f5-b4f4-2632d51336ea  100000  65673912     48s       132437
4b38f61e-db0f-4112-af0b-9e9366b6ffe8  100000  1205981622   2m30s     136012
metron                                100000  3753111887   43s       140506
prom_scraper                          100000  3766084995   43s       140872
830fcabf-c3c8-4e58-8d11-38108aa28d45  100000  2015974692   42s       149169

Are the GUIDs only from running applications? Can we simply run the output through GUID validator to filter out the system components and leave the application guids only?

Is there some other way to get only the guids of the applications?

Best Regards,
Jovan

主要语言
Go
星标
18
派生
16
平均合并
9 小时 18 分钟
30 天内合并 PR
7

贡献指南

这个仓库没有索引到贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

cloudfoundry/log-cache-cli 的其他 Issue

查看 cloudfoundry/log-cache-cli 的全部 Issue

相似的 Issue

更多 Go Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。