Classes | Functions
channelz_sampler.cc File Reference
#include <grpc/support/port_platform.h>
#include <unistd.h>
#include <cstdlib>
#include <fstream>
#include <iostream>
#include <memory>
#include <ostream>
#include <queue>
#include <string>
#include "absl/flags/flag.h"
#include "absl/strings/str_format.h"
#include "absl/strings/str_join.h"
#include "google/protobuf/text_format.h"
#include <grpc/grpc.h>
#include <grpcpp/channel.h>
#include <grpcpp/client_context.h>
#include <grpcpp/create_channel.h>
#include <grpcpp/ext/channelz_service_plugin.h>
#include <grpcpp/grpcpp.h>
#include <grpcpp/security/credentials.h>
#include <grpcpp/security/server_credentials.h>
#include <grpcpp/server.h>
#include <grpcpp/server_builder.h>
#include <grpcpp/server_context.h>
#include "src/core/lib/json/json.h"
#include "src/cpp/server/channelz/channelz_service.h"
#include "src/proto/grpc/channelz/channelz.pb.h"
#include "test/core/util/test_config.h"
#include "test/cpp/util/test_config.h"
#include "test/cpp/util/test_credentials_provider.h"
Include dependency graph for channelz_sampler.cc:

Go to the source code of this file.

Classes

class  ChannelzSampler
 

Functions

 ABSL_FLAG (int64_t, sampling_interval_seconds, 0, "sampling interval in seconds")
 
 ABSL_FLAG (int64_t, sampling_times, 1, "number of sampling")
 
 ABSL_FLAG (std::string, custom_credentials_type, "", "custom credentials type")
 
 ABSL_FLAG (std::string, output_json, "", "output filename in json format")
 
 ABSL_FLAG (std::string, server_address, "", "channelz server address")
 
int main (int argc, char **argv)
 

Function Documentation

◆ ABSL_FLAG() [1/5]

ABSL_FLAG ( int64_t  ,
sampling_interval_seconds  ,
,
"sampling interval in seconds"   
)

◆ ABSL_FLAG() [2/5]

ABSL_FLAG ( int64_t  ,
sampling_times  ,
,
"number of sampling"   
)

◆ ABSL_FLAG() [3/5]

ABSL_FLAG ( std::string  ,
custom_credentials_type  ,
""  ,
"custom credentials type  
)

◆ ABSL_FLAG() [4/5]

ABSL_FLAG ( std::string  ,
output_json  ,
""  ,
"output filename in json format"   
)

◆ ABSL_FLAG() [5/5]

ABSL_FLAG ( std::string  ,
server_address  ,
""  ,
"channelz server address"   
)

◆ main()

int main ( int  argc,
char **  argv 
)

Definition at line 564 of file channelz_sampler.cc.



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