Skip to content

schema freshness metric #523

@Satbek

Description

@Satbek

Add a gauge metric that checks whether the schema matches the Tarantool version. If it matches, set to 1; if not, set to 0.

How to check schema:
https://github.com/tarantool/tarantool/blob/03048fa79c1133e6b77603639a240e36d724c92e/src/box/lua/config/applier/box_status.lua#L29C1-L37C4

local function is_schema_outdated()
    local current_version = box.internal.dd_version()
    local latest_version = box.internal.latest_dd_version()
    return current_version < latest_version
end

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