feat(api): add prometheus metrics

Currently we support metrics for the Node.js runtime and HTTP endpoints.
This commit is contained in:
Julian Tölle 2020-11-21 19:55:53 +01:00
parent 9869f0a061
commit e2056b4734
6 changed files with 118 additions and 5 deletions

View file

@ -42,6 +42,9 @@ import { ConfigModule as NestConfigModule } from "@nestjs/config";
is: Joi.valid(true),
then: Joi.required(),
}),
// Prometheus for Metrics (Optional)
PROMETHEUS_ENABLED: Joi.boolean().default(false),
}),
}),
],