Functions | Variables
metrics_client.cc File Reference
#include <memory>
#include <string>
#include "absl/flags/flag.h"
#include <grpc/support/log.h>
#include <grpcpp/grpcpp.h>
#include "src/proto/grpc/testing/metrics.grpc.pb.h"
#include "src/proto/grpc/testing/metrics.pb.h"
#include "test/cpp/util/metrics_server.h"
#include "test/cpp/util/test_config.h"
Include dependency graph for metrics_client.cc:

Go to the source code of this file.

Functions

 ABSL_FLAG (bool, total_only, false, "If true, this prints only the total value of all gauges")
 
 ABSL_FLAG (int32_t, deadline_secs, kDeadlineSecs, "The deadline (in seconds) for RCP call")
 
 ABSL_FLAG (std::string, metrics_server_address, "localhost:8081", "The metrics server addresses in the fomrat <hostname>:<port>")
 
void BlackholeLogger (gpr_log_func_args *)
 
int main (int argc, char **argv)
 
bool PrintMetrics (std::unique_ptr< MetricsService::Stub > stub, bool total_only, int deadline_secs)
 

Variables

int kDeadlineSecs = 10
 

Function Documentation

◆ ABSL_FLAG() [1/3]

ABSL_FLAG ( bool  ,
total_only  ,
false  ,
"If  true,
this prints only the total value of all gauges"   
)

◆ ABSL_FLAG() [2/3]

ABSL_FLAG ( int32_t  ,
deadline_secs  ,
kDeadlineSecs  ,
"The deadline (in seconds) for RCP call  
)

◆ ABSL_FLAG() [3/3]

ABSL_FLAG ( std::string  ,
metrics_server_address  ,
"localhost:8081"  ,
"The metrics server addresses in the fomrat <hostname>:<port>"   
)

◆ BlackholeLogger()

void BlackholeLogger ( gpr_log_func_args )

Definition at line 47 of file metrics_client.cc.

◆ main()

int main ( int  argc,
char **  argv 
)

Definition at line 89 of file metrics_client.cc.

◆ PrintMetrics()

bool PrintMetrics ( std::unique_ptr< MetricsService::Stub >  stub,
bool  total_only,
int  deadline_secs 
)

Definition at line 51 of file metrics_client.cc.

Variable Documentation

◆ kDeadlineSecs

int kDeadlineSecs = 10

Definition at line 32 of file metrics_client.cc.



grpc
Author(s):
autogenerated on Fri May 16 2025 03:01:23