|
Monitoring System 0.1.0
System resource monitoring with pluggable collectors and alerting
|
Configuration for OTLP gRPC exporter. More...
#include <otlp_grpc_exporter.h>

Public Member Functions | |
| common::VoidResult | validate () const |
| Validate configuration. | |
Public Attributes | |
| std::string | endpoint = "localhost:4317" |
| OTLP receiver endpoint. | |
| std::chrono::milliseconds | timeout {10000} |
| Request timeout. | |
| std::chrono::milliseconds | batch_timeout {5000} |
| Batch export timeout. | |
| std::size_t | max_batch_size = 512 |
| Maximum spans per batch. | |
| std::size_t | max_queue_size = 2048 |
| Maximum queued spans. | |
| std::size_t | max_retry_attempts = 3 |
| Maximum retry attempts. | |
| std::chrono::milliseconds | initial_backoff {100} |
| Initial retry backoff. | |
| std::chrono::milliseconds | max_backoff {10000} |
| Maximum retry backoff. | |
| bool | use_tls = false |
| Enable TLS. | |
| std::string | certificate_path |
| TLS certificate path. | |
| std::string | service_name = "monitoring_system" |
| Service name. | |
| std::string | service_version = "2.0.0" |
| Service version. | |
| std::unordered_map< std::string, std::string > | headers |
| Custom headers. | |
| std::unordered_map< std::string, std::string > | resource_attributes |
| Resource attributes. | |
Configuration for OTLP gRPC exporter.
Definition at line 41 of file otlp_grpc_exporter.h.
|
inline |
Validate configuration.
Definition at line 60 of file otlp_grpc_exporter.h.
References endpoint, kcenon::monitoring::invalid_configuration, max_batch_size, and timeout.
Referenced by kcenon::monitoring::otlp_grpc_exporter::start(), and TEST_F().

| std::chrono::milliseconds kcenon::monitoring::otlp_grpc_config::batch_timeout {5000} |
Batch export timeout.
Definition at line 44 of file otlp_grpc_exporter.h.
Referenced by create_otlp_config().
| std::string kcenon::monitoring::otlp_grpc_config::certificate_path |
TLS certificate path.
Definition at line 51 of file otlp_grpc_exporter.h.
| std::string kcenon::monitoring::otlp_grpc_config::endpoint = "localhost:4317" |
OTLP receiver endpoint.
Definition at line 42 of file otlp_grpc_exporter.h.
Referenced by create_otlp_config(), kcenon::monitoring::create_otlp_grpc_exporter(), kcenon::monitoring::otlp_grpc_exporter::start(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), and validate().
| std::unordered_map<std::string, std::string> kcenon::monitoring::otlp_grpc_config::headers |
Custom headers.
Definition at line 54 of file otlp_grpc_exporter.h.
Referenced by create_otlp_config(), and kcenon::monitoring::otlp_grpc_exporter::export_spans().
| std::chrono::milliseconds kcenon::monitoring::otlp_grpc_config::initial_backoff {100} |
Initial retry backoff.
Definition at line 48 of file otlp_grpc_exporter.h.
Referenced by create_otlp_config(), kcenon::monitoring::otlp_grpc_exporter::send_with_retry(), and TEST_F().
| std::chrono::milliseconds kcenon::monitoring::otlp_grpc_config::max_backoff {10000} |
Maximum retry backoff.
Definition at line 49 of file otlp_grpc_exporter.h.
Referenced by create_otlp_config(), and kcenon::monitoring::otlp_grpc_exporter::send_with_retry().
| std::size_t kcenon::monitoring::otlp_grpc_config::max_batch_size = 512 |
Maximum spans per batch.
Definition at line 45 of file otlp_grpc_exporter.h.
Referenced by create_otlp_config(), demonstrate_batch_export(), TEST_F(), and validate().
| std::size_t kcenon::monitoring::otlp_grpc_config::max_queue_size = 2048 |
Maximum queued spans.
Definition at line 46 of file otlp_grpc_exporter.h.
Referenced by create_otlp_config().
| std::size_t kcenon::monitoring::otlp_grpc_config::max_retry_attempts = 3 |
Maximum retry attempts.
Definition at line 47 of file otlp_grpc_exporter.h.
Referenced by create_otlp_config(), kcenon::monitoring::otlp_grpc_exporter::send_with_retry(), and TEST_F().
| std::unordered_map<std::string, std::string> kcenon::monitoring::otlp_grpc_config::resource_attributes |
Resource attributes.
Definition at line 55 of file otlp_grpc_exporter.h.
Referenced by create_otlp_config(), and kcenon::monitoring::otlp_grpc_exporter::export_spans().
| std::string kcenon::monitoring::otlp_grpc_config::service_name = "monitoring_system" |
Service name.
Definition at line 52 of file otlp_grpc_exporter.h.
Referenced by create_otlp_config(), kcenon::monitoring::otlp_grpc_exporter::export_spans(), TEST_F(), and TEST_F().
| std::string kcenon::monitoring::otlp_grpc_config::service_version = "2.0.0" |
Service version.
Definition at line 53 of file otlp_grpc_exporter.h.
Referenced by create_otlp_config(), kcenon::monitoring::otlp_grpc_exporter::export_spans(), and TEST_F().
| std::chrono::milliseconds kcenon::monitoring::otlp_grpc_config::timeout {10000} |
Request timeout.
Definition at line 43 of file otlp_grpc_exporter.h.
Referenced by create_otlp_config(), kcenon::monitoring::otlp_grpc_exporter::export_spans(), TEST_F(), and validate().
| bool kcenon::monitoring::otlp_grpc_config::use_tls = false |
Enable TLS.
Definition at line 50 of file otlp_grpc_exporter.h.
Referenced by create_otlp_config(), and TEST_F().