You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@kudu.apache.org by "Marton Greber (Jira)" <ji...@apache.org> on 2025/08/19 10:46:00 UTC

[jira] [Created] (KUDU-3692) Add table attribution to tablet metrics in /metrics_prometheus

Marton Greber created KUDU-3692:
-----------------------------------

             Summary: Add table attribution to tablet metrics in /metrics_prometheus
                 Key: KUDU-3692
                 URL: https://issues.apache.org/jira/browse/KUDU-3692
             Project: Kudu
          Issue Type: Sub-task
          Components: metrics, Prometheus
    Affects Versions: 1.18.0
            Reporter: Marton Greber


In 1.18.0 the Prometheus exposition for tablet metrics (/metrics_prometheus) does not include table attribution. Tablet IDs appear in metric names (e.g., kudu_tablet_<tablet_id>_live_row_count), but there are no Prometheus labels that allow joining a tablet to its table.
In contrast, the JSON metrics (/metrics) expose attributes like table_id, table_name, and human-readable partition info under the tablet entity.

While implementing this fix one should look into how much more work it would take to have "label parity" with the existing json metrics that are available.

Supplementary:
Root issue reported on Slack:
"I get all the metrics per tablet. The tabletID is in the metric name (example: kudu_tablet_d3ef3d70f47a47fc8073593c8587f58b_live_row_count).
Unfortunately, I can't find the mappings from a table_name to the tabletID in the metric name."



--
This message was sent by Atlassian Jira
(v8.20.10#820010)