#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"
Go to the source code of this file.
|
| 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) |
|
◆ 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() [3/3]
ABSL_FLAG |
( |
std::string |
, |
|
|
metrics_server_address |
, |
|
|
"localhost:8081" |
, |
|
|
"The metrics server addresses in the fomrat <hostname>:<port>" |
|
|
) |
| |
◆ BlackholeLogger()
◆ main()
int main |
( |
int |
argc, |
|
|
char ** |
argv |
|
) |
| |
◆ PrintMetrics()
bool PrintMetrics |
( |
std::unique_ptr< MetricsService::Stub > |
stub, |
|
|
bool |
total_only, |
|
|
int |
deadline_secs |
|
) |
| |
◆ kDeadlineSecs