forked from scylladb/seastar
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
prometheus: send one MetricFamily per unique metric name
The Prometheus API requires that each unique name be present in just one MetricFamily object; so unify metrics according to their names via a temporary unordered_map. Along the way, eliminate quadratic behavior ("rep->_content += s") which was showing up in latency profiles. Message-Id: <20170212142305.27624-1-avi@scylladb.com>
- Loading branch information
Showing
1 changed file
with
23 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters