Skip to content

enable_default_metrics can't be enabled after metrics.clear #130

@olegrok

Description

@olegrok
tarantool> box.cfg{}
tarantool> metrics = require('metrics')
tarantool> metrics.enable_default_metrics()
tarantool> #metrics.collect()                               -- Seems to be ok
---
- 0
...

tarantool> metrics.invoke_callbacks()
tarantool> #metrics.collect()                                -- Ok. Got it after enable
---
- 64
...

tarantool> metrics.clear()
---
...

tarantool> metrics.invoke_callbacks()             
tarantool> #metrics.collect()                       
---
- 0
...

tarantool> metrics.enable_default_metrics()  -- Enable again
tarantool> metrics.invoke_callbacks()
tarantool> #metrics.collect()                           -- Where are my metrics? 
---
- 0
...

I expect last row returns me default metrics because I enabled them again.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions