juanmaocxy commented on issue #3260: URL: https://github.com/apache/hertzbeat/issues/3260#issuecomment-2817708101
here is one part of my minitor yaml: - name: pods priority: 2 fields: - field: pod type: 1 i18n: zh-CN: Pod名称 en-US: Pod Name - field: namespace type: 1 i18n: zh-CN: 命名空间 en-US: Namespace - field: status type: 1 i18n: zh-CN: 状态 en-US: Status - field: restart type: 1 i18n: zh-CN: 重启策略 en-US: Restart - field: restart_count type: 1 i18n: zh-CN: 重启次数 en-US: Restart Count - field: host_ip type: 1 i18n: zh-CN: 主机IP en-US: Host IP - field: pod_ip type: 1 i18n: zh-CN: Pod IP en-US: Pod IP - field: creation_time type: 1 i18n: zh-CN: 创建时间 en-US: Creation Time - field: start_time type: 1 i18n: zh-CN: 启动时间 en-US: Start Time aliasFields: - $.metadata.name - $.metadata.namespace - $.status.phase - $.spec.restartPolicy - $.status.hostIP - $.status.podIP - $.metadata.creationTimestamp - $.status.startTime - $.status.containerStatuses[0].restartCount calculates: - pod=$.metadata.name - namespace=$.metadata.namespace - status=$.status.phase - restart=$.spec.restartPolicy - host_ip=$.status.hostIP - pod_ip=$.status.podIP - creation_time=$.metadata.creationTimestamp - start_time=$.status.startTime - restart_count=$.status.containerStatuses[0].restartCount -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: notifications-unsubscr...@hertzbeat.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: notifications-unsubscr...@hertzbeat.apache.org For additional commands, e-mail: notifications-h...@hertzbeat.apache.org