Our packages export metrics, logs and traces depending on your configuration.
To activate monitoring, set the
monitoring.active flag to
Logs are written to the standard output using logrus.
We support two ways of exposing metrics:
If you want to pull Prometheus metrics, set
When using Prometheus, you should also set
Your metrics can then be pulled at
If you want to use Elastic APM, set
All the Elastic APM configuration options should be passed as environment variables. Please see the Elastic APM documentation for reference.
The following configuration options are mandatory:
We recommend setting the following configuration options too:
ELASTIC_APM_METRICS_INTERVALif the default 30 seconds doesn't suit you
Distributed traces are only available when choosing the
If you use distributed tracing, don't forget to set
to less than
1.0 in production.
Distributed tracing is expensive, if you have a lot of requests you can't
afford to trace them all.