flashcatcloud / categraf

one-stop telemetry collector for nightingale
https://flashcat.cloud/docs/
MIT License
854 stars 259 forks source link

阿里云 oss 云监控采集指标没有oss名称 #1050

Open dumingyou opened 2 months ago

dumingyou commented 2 months ago

Relevant config.toml

namespaces=["acs_oss_dashboard"]
[[instances.metric_filters]]
metric_names=["GetObjectCount","PutObjectCount"]

Logs from categraf

2024/09/10 17:26:09 cloud.go:301: D! acs_oss_dashboard GetObjectCount 
2024/09/10 17:26:09 cloud.go:301: D! acs_oss_dashboard PutObjectCount 
17:24:00 aliyun_acs_oss_dashboard_get_object_count_value agent_hostname=agent_hostname env=prod metric_name=GetObjectCount namespace=acs_oss_dashboard user_id=user_id 0
17:24:00 aliyun_acs_oss_dashboard_get_object_count_value agent_hostname=agent_hostname env=prod metric_name=GetObjectCount namespace=acs_oss_dashboard user_id=user_id 0
17:24:00 aliyun_acs_oss_dashboard_get_object_count_value agent_hostname=agent_hostname env=prod metric_name=GetObjectCount namespace=acs_oss_dashboard user_id=user_id 3
17:24:00 aliyun_acs_oss_dashboard_get_object_count_value agent_hostname=agent_hostname env=prod metric_name=GetObjectCount namespace=acs_oss_dashboard user_id=user_id 13

上面将 agent_hostname user_id 给隐去了

System info

0.13 4.19.91-24.1.al7.x86_64

Docker

11111

Steps to reproduce

参考配置文件获取oss指标

Expected behavior

/usr/bin/categraf -configs=/tmp/conf -inputs aliyun -test -debug

Actual behavior

/usr/bin/categraf -configs=/tmp/conf -inputs aliyun -test -debug

Additional info

-da98c1f59319f3e9448b2eb138f7faedeb24c68b

kongfei605 commented 2 months ago

符合预期的 ,指标内可能只有instance id, bucket之类的