userver: userver/utils/statistics/pretty_format.hpp File Reference
Loading...
Searching...
No Matches
pretty_format.hpp File Reference

Detailed Description

Statistics output in human-readable format.

Definition in file pretty_format.hpp.

Go to the source code of this file.

#include <string>
#include <userver/utils/statistics/storage.hpp>
+ Include dependency graph for pretty_format.hpp:

Namespaces

namespace  utils
 Utilities.
 

Functions

std::string utils::statistics::ToPrettyFormat (const utils::statistics::Storage &statistics, const utils::statistics::Request &statistics_request={})
 Output statistics in a human-readable, compact format, useful for visual inspection.
 

Function Documentation

◆ ToPrettyFormat()

std::string utils::statistics::ToPrettyFormat ( const utils::statistics::Storage & statistics,
const utils::statistics::Request & statistics_request = {} )

Output statistics in a human-readable, compact format, useful for visual inspection.

Warning
This format is unstable, we reserve the right to change it at any point. Don't use it in scripts, use utils::statistics::ToJsonFormat instead!

The current version of this unstable format is:

metric-path: some-label=label-value, other-label=other-label-value\tRATE\t42