Skip to content

Collect statement lock time metrics on MariaDB #1026

Description

@SeanGeb

Hello! 👋

MariaDB's performance_schema.events_statements_summary_by_digest has a SUM_LOCK_TIME column, just like MySQL 8.0.28+.

It would be a nice little improvement to use that column to populate the mysql_events_statements_lock_time_seconds_total metric when scraping new-enough MariaDB servers.

This will need a new query - perfEventsStatementsQueryMySQL won't work as MariaDB doesn't have the SUM_CPU_TIME or QUANTILE_* columns. This may justify using SELECT * over that table and looking at which columns get returned instead.

This is something I'd be very happy to tackle myself when I get the time but would appreciate any ideas or gotchas before I do.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions