Skip to content

Categraf SNMP插件的表关联(一对多)问题 #1478

Description

@Chypre0523

现在针对WLC进行AP和射频的指标采集,我有两张表,索引有差别:

表A(AP表):index标签为:20.50.49.57.56.48.49.65.50.75.50.80.50.52.56.48.48.48.48.76.53(AP是H3C的,第一个20是长度,后续的是AP的序列号),
表B(射频表):20.50.49.57.56.48.49.65.50.75.50.80.50.52.56.48.48.48.48.76.53.1(前面和表A一直,最后的.1是射频的ID)。

我想实现的功能是,在查询射频相关的指标时,该指标能够携带其所属的AP名称,如:
snmp_wlan_radio_station_assoc_reject_count agent_hostname=branch-categraf-snmp ident=10.10.10.252 region=hq-sz role=wlc system_name=SZ-B1A-6F-CORE-WLC-10-252 vendor=h3c ap_name=AP-01 0

虽然也可以分成两张携带标签ap_sn的表,然后在大盘时通过该标签进行聚合查询,但因为该ap_sn的太长,随指标写入时序库里又不太好,所有有没有什么好的方式就在Categraf就解决掉?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions