默认值 数据类型 描述
metrics.reporter.prometheus.deleteOnShutdown
true Boolean 是否在 PushGateway 停止运行时删除指标数据,Flink 会尽最大可能性删除指标数据(不保证一定能删除),更多细节请查看 此链接
metrics.reporter.prometheus.filterLabelValueCharacters
true Boolean 是否过滤 label 中的字符。如果设置过滤,所有没有按照 \[a-zA-Z0-9:_\] 匹配的字符都会被过滤掉,如果设置不过滤,则不会有字符被过滤掉。设置不过滤前,请确保你的 label 符合 Prometheus 的命名规范
metrics.reporter.prometheus.groupingKey
(none) String 指定分组键,作为所有指标的组和全局标签。标签名称与值之间用 '=' 分割,标签与标签之间用 ';' 分隔,比如 k1=v1;k2=v2 。请确保你的分组键符合 Prometheus 的命名规范
metrics.reporter.prometheus.hostUrl
(none) String PushGateway 服务器的 URL,包括协议、服务地址、端口号。
metrics.reporter.prometheus.jobName
(none) String 推送运行指标数据时的作业名。
metrics.reporter.prometheus.password
(none) String (可选)用于 PushGateway HTTP Basic 认证的密码。
metrics.reporter.prometheus.randomJobNameSuffix
true Boolean 是否在作业名后添加一个随机后缀。
metrics.reporter.prometheus.username
(none) String (可选)用于 PushGateway HTTP Basic 认证的用户名。