Monitoring
Janus uses OpenCensus to collect and export metrics. OpenCensus supports several exporters, which are:
Datadog
Prometheus
Stackdriver
Currently only Prometheus exporter is available in Janus.
This can be configured via the configuration file or environment variable:
# Stats / Metric Collection
[stats]
# Backend system used to export collected metrics
#
# Valid Values: "datadog", "prometheus", or "stackdriver"
#
# Default: None
#
Exporter: "prometheus"The following feature is deprecated and it is planned for removal.
Janus monitoring is built on top of hellofresh/stats-go library. You can configure it with the following env variables:
STATS_DSN(defaultlog://) - DSN of stats backendSTATS_IDS- second level ID list for URLs to generalise metric names, see details in Generalise resources by type and stripping resource IDSTATS_AUTO_DISCOVER_THRESHOLD- threshold for second level IDs autodiscovery, see details in Generalise resources by type and stripping resource IDSTATS_AUTO_DISCOVER_WHITE_LIST- white list for second level IDs autodiscovery, see details in Generalise resources by type and stripping resource IDSTATS_ERRORS_SECTION(defaulterror-log) - section for error logs monitoring, see details in Usage for error logs monitoring
Last updated
Was this helpful?