prometheus-community / rsyslog_exporter

Export rsyslog metrics to prometheus
Apache License 2.0
22 stars 8 forks source link

Add omfwd and mmkubernetes support #5

Closed filippog closed 2 years ago

filippog commented 3 years ago

Hello, thank you for your work on rsyslog_exporter ! In our setup we're using omfwd plus mmkubernetes and ran into "error handling stats line" e.g.

Aug  6 07:26:19 thanos-fe2001 rsyslog_exporter[1744917]: 2021/08/06 07:26:19 error handling stats line: unknown pstat type: 0, line was: 2021-08-06T07:26:19.224409+00:00 thanos-fe2001 rsyslogd-pstats: { "name": "TCP-centrallog1001.eqiad.wmnet-6514", "origin": "omfwd", "bytes.sent": 22926913011 }
Jul 26 13:38:45 kubernetes1001 rsyslog_exporter[23109]: 2021/07/26 13:38:45 error handling stats line: unknown pstat type: 0, line was: 2021-07-26T13:38:45.414590+00:00 kubernetes1001 rsyslogd-pstats: { "name": "mmkubernetes(https:\/\/kubemaster.svc.eqiad.wmnet:6443)", "origin": "mmkubernetes", "recordseen": 940266, "namespacemetadatasuccess": 9, "namespacemetadatanotfound": 0, "namespacemetadatabusy": 0, "namespacemetadataerror": 0, "podmetadatasuccess": 36, "podmetadatanotfound": 0, "podmetadatabusy": 0, "podmetadataerror": 0 }