tarantool / docker

Docker images for tarantool database
https://hub.docker.com/r/tarantool/tarantool
52 stars 25 forks source link

2.10.0 fatal error with env TARANTOOL_PROMETHEUS_DEFAULT_METRICS_PORT #237

Closed exename closed 2 years ago

exename commented 2 years ago

hi. since version 2.10 with env TARANTOOL_PROMETHEUS_DEFAULT_METRICS_PORT lua crash with error

  no field package.preload['metrics.default_metrics.tarantool']
  no file '/opt/tarantool/metrics/default_metrics/tarantool.lua'
  no file '/opt/tarantool/metrics/default_metrics/tarantool/init.lua'
  no file '/opt/tarantool/metrics/default_metrics/tarantool.so'
  no file '/opt/tarantool/.rocks/share/tarantool/metrics/default_metrics/tarantool.lua'
  no file '/opt/tarantool/.rocks/share/tarantool/metrics/default_me
2022-07-01 18:39:12.645 [1] main F> fatal error, exiting the event loop

possible bug in https://github.com/tarantool/docker/blob/93ae09b132295661ee3f29ba5afccc8adad5f87f/files/tarantool-entrypoint.lua#L276


- require('metrics.default_metrics.tarantool').enable()
+ require('metrics').enable_default_metrics()