You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@mesos.apache.org by "Benno Evers (JIRA)" <ji...@apache.org> on 2019/03/11 15:39:00 UTC

[jira] [Created] (MESOS-9645) Add a way to access a subset of metrics

Benno Evers created MESOS-9645:
----------------------------------

             Summary: Add a way to access a subset of metrics
                 Key: MESOS-9645
                 URL: https://issues.apache.org/jira/browse/MESOS-9645
             Project: Mesos
          Issue Type: Improvement
            Reporter: Benno Evers


Currently, the only way to access libprocess metrics is via the `metrics/snapshot` endpoint, which returns the current values of all installed metrics.

If the caller is only interested in a specific metric, or a subset of the metrics, this is wasteful in two ways: First the process has to do extra work to collect these metrics, and second the caller has to do extra work to filter out the unneeded metrics.

Ideally libprocess could use the request path to implement filtering such that e.g. a request to
{noformat}
wget http://mesos.master:5050/metrics/allocator/mesos/
{noformat}
would return all metrics whose name begins with "allocator/mesos/", would I'm not sure that this is currently implementable.

Alternatively, a request parameter could be added to the same effect:
{noformat}
wget http://mesos.master:5050/metrics/snapshot?prefix=allocator/mesos/
{noformat}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)