44 Commits
Author SHA1 Message Date
Arthur Chaloin f62f2480f4 feat: --expose-labels flags to filter labels 2021-04-22 17:25:51 +02:00
Arthur Chaloin b47b179e77 refactor: use label map for easier filtering 2021-04-22 14:14:56 +02:00
Arthur Chaloin 5696b1fc71 test: fix consecutive tests not cleaning state properly 2021-03-17 19:15:17 +01:00
Arthur Chaloin e013d861e6 fix: handle unhandled error on listen call 2021-03-17 19:14:59 +01:00
Arthur Chaloin b019c372fa fix: use relevant descriptors for relative metrics 2021-03-17 15:09:43 +01:00
Arthur Chaloin 5cc6ba2e84 Merge pull request #13 from jfcoz/x509_read_timestamp
add x509_read_timestamp
2021-03-15 16:57:08 +01:00
Arthur Chaloin 65415ef095 chore: remove unreachable code 2021-03-15 15:22:45 +01:00
Arthur Chaloin f5660c66cc chore: remove unreachable code 2021-03-15 15:11:52 +01:00
Arthur Chaloin c6d36ca8b9 test: add test for duration metrics 2021-03-15 14:54:28 +01:00
Arthur Chaloin e15719dd37 feat: --expose-relative-metrics flag for timestamp calculations 2021-03-15 14:54:07 +01:00
jfcoz 5e47fbf45b --add-delays argument calculate delays in seconds
x509_cert_seconds_since_not_before and x509_cert_seconds_until_not_after
2021-03-15 14:24:37 +01:00
Thibault VINCENT 809b324bae make x509_read_timestamp an optional metric
To preserve storage efficiency in TSDB systems that don't need the
metric for alerting.

Argument --timestamp-metric is to be used when x509_read_timestamp
should be emitted.

Signed-off-by: Thibault VINCENT <root@paraneko.org>
2021-03-12 12:30:23 +01:00
jfcoz 32acde5c04 add x509_read_timestamp
For monitoring tools that does not have timestamp calculation functions
2021-03-12 11:04:29 +01:00
Arthur Chaloin 8250623f7e test: adapt failing test to environment 2021-03-11 14:50:06 +01:00
Arthur Chaloin adc0d4b7c3 refactor: use appropriate contexts instead of TODO() 2021-03-11 14:49:19 +01:00
Arthur Chaloin f5967f2f2c feat: flag to watch custom secret types 2021-03-11 14:39:12 +01:00
Arthur Chaloin 3fedef237e fix: don't fail when pem block isn't a certificate 2021-03-02 12:57:48 +01:00
Arthur Chaloin 3e97062b5d test: fix folder test count 2021-03-01 17:22:36 +01:00
Arthur Chaloin 49017cd6b1 feat: try to resolve symlinks in current directory 2021-03-01 17:15:33 +01:00
Arthur Chaloin 8827177b27 refactor: migrate to go 1.16 2021-02-24 15:04:49 +01:00
Arthur Chaloin 8bf23b8c80 refactor: reduce cyclomatic complexity of getWatchedSecrets
closes #9
2021-02-24 13:17:37 +01:00
Arthur Chaloin bac91af386 refactor: listen on 9793 by default 2021-02-24 12:03:33 +01:00
Arthur Chaloin 83efb0c75d chore: fix minor go report issues 2021-02-23 16:25:59 +01:00
Arthur Chaloin 459f3b443f feat: add --version flag to print version 2021-02-23 15:22:35 +01:00
Arthur Chaloin 650e419224 test: add missing error cases 2021-02-22 17:39:21 +01:00
Arthur Chaloin 99ce1632be test: add tests for new yaml handling 2021-02-22 16:01:54 +01:00
Arthur Chaloin a11c828cd6 refactor: remove yq dependency 2021-02-22 15:20:48 +01:00
Thibault VINCENT fdee6b2bdc chore: project renamed to x509-certificate-exporter 2021-02-19 14:42:11 +01:00
Arthur Chaloin be144ad173 fix: use kube namespace instead of full path 2021-02-17 17:01:31 +01:00
Arthur Chaloin 3b4ab1a057 feat: rename filename and filepath labels 2021-02-17 14:53:32 +01:00
Arthur Chaloin 075fe532a6 fix: handle absolute paths 2021-01-12 13:52:26 +01:00
Arthur Chaloin 6f6b1d4370 fix: remove useless parameters 2021-01-06 12:41:27 +01:00
Arthur Chaloin 83f4048a62 feat(ci): setup ci for k8s integration tests
fix(ci): add curl

fix(ci): add dind

fix(ci): try add docker client

fix(ci): delete cluster whatever

fix(ci): fix kind

fix(ci): remove docker

fix(ci): fix path

fix(ci): try fix ip

wip(ci): remove tests

wip(ci): try better net config

fix(ci): dummy mistake

fix(ci): try new ip

wip(ci): try with container name

wip(ci): try with 'docker' host

wip(ci): try with service

wip(ci): try new ip

wip(ci): try new ip

wip(ci): try example from kind ci

wip(ci): typo

wip(ci): try exact example from kind

wip(ci): test docker inspect

wip(ci): cluster name

wip(ci): typo

wip(ci): quotes

wip(ci): debug

wip(ci): try reach container directly

wip(ci): escape chars

wip(ci): fix escaping

wip(ci): fixes

wip(ci): fix

wip(ci): wip

wip(ci): skip tls verify

wip(ci): skip tls in tests

wip(ci): remove ca

wip(ci): fix connection test

fix(ci): increase timeout

wip(ci): fix

wip(ci): fix b64 arg
2020-10-19 16:05:14 +02:00
Arthur Chaloin 27a4c79624 feat(testing): kube integration tests 2020-10-15 16:10:30 +02:00
Arthur Chaloin e14d169828 feat(exporter): scrappe secrets from k8s api 2020-10-15 11:30:00 +02:00
Arthur Chaloin 1bd627c2b1 feat(exporter): --trim-path-components option 2020-10-14 14:50:25 +02:00
Arthur Chaloin 6025b6c81d feat(exporter): add --trim-path option to remove leading elements from paths 2020-10-14 12:40:16 +02:00
Arthur Chaloin 2e1e46c848 fix(testing): fix failing tests 2020-10-13 15:47:47 +02:00
Arthur Chaloin fe7e0bd44b fix(exporter): better error catching fir valid x509_read_errors metric 2020-10-13 14:15:38 +02:00
Arthur Chaloin eb7d770a19 feat(exporter): x509_read_errors metric 2020-10-12 18:14:42 +02:00
Arthur Chaloin 71bff529c4 feat(testing): 100% code coverage 2020-10-12 17:11:44 +02:00
Arthur Chaloin 4d65004607 feat(testing): add integration tests 2020-10-12 13:53:22 +02:00
Arthur Chaloin 7a5501d40b feat(exporter): support for yaml files / k8s config files 2020-10-12 13:53:22 +02:00
Arthur Chaloin da0fae10ac feat(exporter): working exporter for pem files 2020-10-12 13:53:22 +02:00