Update to prom-client v12, requiring Node >=10

v12 drops support for versions of Node.js that are no longer supported
(as-of January, 2020), and also removes the timeout option from
collectDefaultMetrics().

Remove 6 and 8 from Travis, and add 12 and 13 (so all the non-EOL versions
of Node.js are tested).
This commit is contained in:
Sam Roberts
2020-03-05 13:43:16 -08:00
parent a21bd439cf
commit 20c6a7de24
7 changed files with 14 additions and 18 deletions

View File

@@ -14,7 +14,6 @@ const bundle = promBundle({
metricsPath: '/prometheus',
promClient: {
collectDefaultMetrics: {
timeout: 1000
}
},
urlValueParser: {