counters.h 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. #pragma once
  2. #include <library/cpp/unified_agent_client/dynamic_counters_wrapper.h>
  3. namespace NUnifiedAgent {
  4. struct TClientSessionCounters;
  5. struct TClientCounters: public TDynamicCountersWrapper {
  6. explicit TClientCounters(const NMonitoring::TDynamicCounterPtr& counters =
  7. MakeIntrusive<NMonitoring::TDynamicCounters>());
  8. NMonitoring::TDeprecatedCounter& ActiveSessionsCount;
  9. NMonitoring::TDeprecatedCounter& ClientLogDroppedBytes;
  10. public:
  11. TIntrusivePtr<TClientSessionCounters> GetDefaultSessionCounters();
  12. };
  13. struct TClientSessionCounters: public TDynamicCountersWrapper {
  14. explicit TClientSessionCounters(const NMonitoring::TDynamicCounterPtr& counters =
  15. MakeIntrusive<NMonitoring::TDynamicCounters>());
  16. NMonitoring::TDeprecatedCounter& ReceivedMessages;
  17. NMonitoring::TDeprecatedCounter& ReceivedBytes;
  18. NMonitoring::TDeprecatedCounter& AcknowledgedMessages;
  19. NMonitoring::TDeprecatedCounter& AcknowledgedBytes;
  20. NMonitoring::TDeprecatedCounter& InflightMessages;
  21. NMonitoring::TDeprecatedCounter& InflightBytes;
  22. NMonitoring::TDeprecatedCounter& GrpcWriteBatchRequests;
  23. NMonitoring::TDeprecatedCounter& GrpcInflightMessages;
  24. NMonitoring::TDeprecatedCounter& GrpcInflightBytes;
  25. NMonitoring::TDeprecatedCounter& GrpcCalls;
  26. NMonitoring::TDeprecatedCounter& GrpcCallsInitialized;
  27. NMonitoring::TDeprecatedCounter& DroppedMessages;
  28. NMonitoring::TDeprecatedCounter& DroppedBytes;
  29. NMonitoring::TDeprecatedCounter& ErrorsCount;
  30. };
  31. }