Commit Graph

84 Commits

Author SHA1 Message Date
Ivaylo Korakov
75851911ef
Merge pull request #40 from UnikumAB/master
VGO, simple test and some minor cleanup
2020-02-21 12:13:04 +01:00
Per Abich
c598c828be
Merge pull request #2 from UnikumAB/digineo-updates
Digineo updates
2020-02-19 18:21:39 +01:00
Per Abich
2e1ca8fd52 ran "go mod tidy" after merge 2020-02-19 18:18:31 +01:00
Per Abich
fd473ea329 Merge remote-tracking branch 'digineo/gomod' into digineo-updates
# Conflicts:
#	Dockerfile
#	go.mod
#	go.sum
2020-02-19 18:16:20 +01:00
Per Abich
30711892c6 added go.sum 2020-02-19 18:11:52 +01:00
Per Abich
d23c664b65 Fixing merge issues 2020-02-19 18:10:45 +01:00
Per Abich
b268207758 Merge remote-tracking branch 'digineo/refactoring' into digineo-updates
# Conflicts:
#	postfix_exporter.go
2020-02-19 17:57:34 +01:00
Per Abich
7428bf432b Added better counting of unsupported lines 2020-02-19 13:08:47 +01:00
Per Abich
eab41dab6b Fixed compile failure 2020-02-18 16:56:31 +01:00
Per Abich
3af4390187 - Added flag for logging lines that were not processed (mainly for debugging/development)
- Added Counter for smtp Connection Timed Out events
- Added counter for OpenDKIM signatures added
2020-02-18 16:54:25 +01:00
Per Abich
e416d73974 Fixed test 2020-02-18 16:17:13 +01:00
Per Abich
574e478b44 Removed unused variable 2020-02-18 15:32:44 +01:00
Per Abich
26d0642831 Moved the collection of stats into its own go routine 2020-02-18 15:31:07 +01:00
Per Abich
3e8a3a4917 Cleaning up the Dockerfile 2020-02-18 13:33:30 +01:00
Per Abich
72c753ff7d Merge remote-tracking branch 'netlogix/nlx_master'
# Conflicts:
#	postfix_exporter.go
2020-02-18 12:50:41 +01:00
Per Abich
851c00f29f Added a simple test and migrated to vgo 2020-02-12 13:41:29 +01:00
Per Abich
da5280083a Added extra build tags to enable testing on no-linux systems 2020-02-12 13:40:22 +01:00
Per Abich
b0a28deeca Added logging of log event source 2020-02-12 13:39:13 +01:00
Per Abich
365a2e307a Ignoring more files 2020-02-12 13:38:03 +01:00
Ivaylo Korakov
aa111672d4 Update docker file 2019-10-31 18:22:22 +01:00
Tim Stoop
0a237f860d
Merge pull request #30 from ljagiello/build-with-golang-image
Build binary with official golang image
2019-07-25 14:03:19 +02:00
Tim Stoop
9f69ed3c47
Merge pull request #29 from CamilionEU/evilham-new-metrics
New metrics cleanupNotAccepted and smtpDeferreds.
2019-07-25 14:02:21 +02:00
Tim Stoop
c43f4d9402
Merge pull request #33 from Azanx/prometheusHandlerFix
replace prometheus.Handler with promhttp.Handler
2019-07-25 13:59:41 +02:00
Azanx
689aedff1c replace prometheus.Handler with promhttp.Handler 2019-06-20 16:45:51 +02:00
Lienhart Woitok
0ca7f8207f
Merge pull request #2 from netlogix/ponert
[FIX] made metric smtp_status_deferred actually work
2019-04-15 19:50:37 +02:00
Andre Ponert
18a48b8d7d [FIX] made metric smtp_status_deferred actually work 2019-04-15 19:48:49 +02:00
Lienhart Woitok
7f5757e35c
Merge pull request #1 from netlogix/ponert
Added support for status=deferred metric
2019-04-15 19:01:51 +02:00
Andre Ponert
5ceffcde75 [FIX] consistent variable names 2019-04-15 18:57:32 +02:00
Andre Ponert
b925d46fcb Added support for status=deferred metric 2019-04-15 18:46:11 +02:00
Lukasz Jagiello
63db16cbcb
Build binary with official golang image
Ubuntu 16.04 use a very old Go version (1.6). It's better to use
official golang docker image with the latest golang release - 1.12.

Additionally I was able to fix #16 where `--systemd.enable` wasn't
working correctly.
2019-03-07 15:08:50 -08:00
Evilham
114311033f New metrics cleanupNotAccepted and smtpDeferreds.
This adds support for two new metrics:

* `cleanup_messages_not_accepted_total`
* `smtp_deferred_messages_total`.
2019-03-07 17:59:04 +01:00
Julian Kornberger
8e333e774e Update dependencies 2019-02-21 00:14:45 +01:00
Julian Kornberger
43221afdb0 Move main function to main.go 2019-02-21 00:04:06 +01:00
Julian Kornberger
7072c5242f Small refactoring 2019-02-21 00:04:06 +01:00
Julian Kornberger
243cb79779 Reduce indentation 2019-02-21 00:04:06 +01:00
Julian Kornberger
99db0017f8 Update Dockerfile to use Go 1.11 with modules 2019-02-21 00:00:02 +01:00
Julian Kornberger
acf7a97917 Use Go modules 2019-02-20 23:54:44 +01:00
Bart Vercoulen
af6943b1bc
Fixed Readme. 2019-02-15 12:41:28 +01:00
Bart Vercoulen
1b1c5f3489
Merge pull request #17 from eklitzke/tail
When following log files, tail them rather than truncate them.
2019-02-15 12:14:41 +01:00
Bart Vercoulen
a4e09a2c37
Merge branch 'master' into tail 2019-02-15 10:53:21 +01:00
Bart Vercoulen
623a840f32
Merge pull request #23 from kumina/kingpin_update
Refactored to kingpin and bugfix.
2019-02-15 10:51:19 +01:00
Bart Vercoulen
d73bd20065
Fixed formatting. 2019-02-15 10:41:53 +01:00
Bart Vercoulen
8bbd11f3cd
Merge pull request #26 from mjtrangoni/fix-error-handling
postfix_exporter.go: Handle the case where EOF is reached.
2019-02-13 10:16:09 +01:00
Mario Trangoni
27ac982de7 postfix_exporter.go: Handle the case where EOF is reached.
See these annoying messages,
Feb 06 13:34:03 hostname postfix_exporter[30713]: 2019/02/06 13:34:03 Could not read postfix output, EOF
Feb 06 13:34:27 hostname postfix_exporter[30713]: 2019/02/06 13:34:27 Could not read postfix output, EOF
Feb 06 13:35:27 hostname postfix_exporter[30713]: 2019/02/06 13:35:27 Could not read postfix output, EOF
Feb 06 13:36:27 hostname postfix_exporter[30713]: 2019/02/06 13:36:27 Could not read postfix output, EOF
Feb 06 13:37:27 hostname postfix_exporter[30713]: 2019/02/06 13:37:27 Could not read postfix output, EOF
Feb 06 13:38:27 hostname postfix_exporter[30713]: 2019/02/06 13:38:27 Could not read postfix output, EOF
Feb 06 13:39:27 hostname postfix_exporter[30713]: 2019/02/06 13:39:27 Could not read postfix output, EOF
Feb 06 13:40:27 hostname postfix_exporter[30713]: 2019/02/06 13:40:27 Could not read postfix output, EOF
Feb 06 13:41:27 hostname postfix_exporter[30713]: 2019/02/06 13:41:27 Could not read postfix output, EOF
Feb 06 13:42:27 hostname postfix_exporter[30713]: 2019/02/06 13:42:27 Could not read postfix output, EOF
2019-02-06 13:42:09 +01:00
Bart Vercoulen
f51b1f882d
Refactored to kingpin and fixed a EOF bug in CollectShowqFromReader. 2018-12-17 17:01:01 +01:00
Bart Vercoulen
1e650923d8
Merge pull request #22 from mjtrangoni/fix-megacheck-issues
postfix_exporter.go: Fix megacheck issues
2018-12-17 15:38:12 +01:00
Mario Trangoni
4d195655fd postfix_exporter.go: Fix megacheck issues
See,
$ gometalinter --vendor --deadline 10m --disable-all --enable=megacheck ./...
postfix_exporter.go:97:17⚠️ should use raw string (`...`) with regexp.MustCompile to avoid having to escape twice (S1007) (megacheck)
postfix_exporter.go:276:40⚠️ should use raw string (`...`) with regexp.MustCompile to avoid having to escape twice (S1007) (megacheck)
postfix_exporter.go:277:40⚠️ should use raw string (`...`) with regexp.MustCompile to avoid having to escape twice (S1007) (megacheck)
postfix_exporter.go:278:40⚠️ should use raw string (`...`) with regexp.MustCompile to avoid having to escape twice (S1007) (megacheck)
postfix_exporter.go:279:40⚠️ should use raw string (`...`) with regexp.MustCompile to avoid having to escape twice (S1007) (megacheck)
postfix_exporter.go:280:40⚠️ should use raw string (`...`) with regexp.MustCompile to avoid having to escape twice (S1007) (megacheck)
postfix_exporter.go:281:40⚠️ should use raw string (`...`) with regexp.MustCompile to avoid having to escape twice (S1007) (megacheck)
postfix_exporter.go:282:40⚠️ should use raw string (`...`) with regexp.MustCompile to avoid having to escape twice (S1007) (megacheck)
postfix_exporter.go:283:40⚠️ should use raw string (`...`) with regexp.MustCompile to avoid having to escape twice (S1007) (megacheck)
postfix_exporter.go:284:40⚠️ should use raw string (`...`) with regexp.MustCompile to avoid having to escape twice (S1007) (megacheck)
postfix_exporter.go:285:40⚠️ should use raw string (`...`) with regexp.MustCompile to avoid having to escape twice (S1007) (megacheck)

Signed-off-by: Mario Trangoni <mjtrangoni@gmail.com>
2018-12-16 10:56:41 +01:00
Bart Vercoulen
c4ddca4296
Merge pull request #20 from mjtrangoni/fix-linter-issues
Fix gosec issues
2018-12-13 12:09:33 +01:00
Mario Trangoni
a0059f793e systemd.go: Fix gosec issue.
See,
$ gometalinter --vendor ./...
systemd.go:49:⚠️ Errors unhandled.,LOW,HIGH (gosec)
2018-12-04 17:13:17 +01:00
Mario Trangoni
76f8dd448b postfix_exporter.go: Comment out unused CollectShowqFromFile function
See,
$ gometalinter --vendor ./...
postfix_exporter.go:256:1⚠️ CollectShowqFromFile is unused
(deadcode)
2018-12-04 16:50:01 +01:00