Skip to content

解析私有协议有response-status label 无 request-content label #336

Discussion options

You must be logged in to vote

request_contentresponse_content这两个字段在不同协议下代表的含义不同,有的协议确实会缺少某一个字段,具体详情见文档Prometheus Metrics.

在开发新协议时,要输出request_contentresponse_content这两个字段,需要在exporter/tools/adapter/net_dict.go中编写字段转换字典,将自己的字段转换到这两个字段上;另外要输出指标,还需要在aggregateprocessor/processor中增加要聚合的字段名。

目前增加新的协议要改动的组件偏多,后续有计划对这部分需求进行改进。

Replies: 1 comment 8 replies

Comment options

You must be logged in to vote
8 replies
@dxsup
Comment options

@LambertZhaglog
Comment options

@dxsup
Comment options

dxsup Nov 1, 2022
Maintainer

@dxsup
Comment options

dxsup Nov 1, 2022
Maintainer

@LambertZhaglog
Comment options

Answer selected by LambertZhaglog
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants