Motr  M0
Stats Query API

Functions

int m0_stats_query (struct m0_rpc_session *session, struct m0_uint64_seq *stats_ids, struct m0_stats_recs **stats)
 
void m0_stats_free (struct m0_stats_recs *stats)
 

Detailed Description

This module provide stats query interfaces. These interfaces are used by motr monitoring/administrating utilities/console.

Interfaces m0_stats_query m0_stats_free

Function Documentation

◆ m0_stats_free()

void m0_stats_free ( struct m0_stats_recs stats)

Free stats sequence It frees stats sequence returned by m0_stats_query().

Parameters
statsStats sequence.

Definition at line 139 of file stats_api.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ m0_stats_query()

int m0_stats_query ( struct m0_rpc_session session,
struct m0_uint64_seq stats_ids,
struct m0_stats_recs **  stats 
)

Stats query API It retrive stats from stats service of provided stats ids.

Parameters
sessionThe session to be used for the stats query.
stats_idsSequence of stats ids.
statsOn success, stats information is returned here. It must be released using m0_stats_free().
Return values
Pointerto stats return by stats service. This should be freed by caller after use. It can be freed using m0_stats_free().