Line data Source code
1 : #pragma once 2 : 3 : #include "envoy/stats/scope.h" 4 : #include "envoy/stats/stats_macros.h" 5 : 6 : namespace Envoy { 7 : namespace Extensions { 8 : namespace TransportSockets { 9 : namespace Tls { 10 : 11 : #define ALL_SSL_STATS(COUNTER, GAUGE, HISTOGRAM) \ 12 0 : COUNTER(connection_error) \ 13 0 : COUNTER(handshake) \ 14 0 : COUNTER(session_reused) \ 15 0 : COUNTER(no_certificate) \ 16 0 : COUNTER(fail_verify_no_cert) \ 17 0 : COUNTER(fail_verify_error) \ 18 0 : COUNTER(fail_verify_san) \ 19 0 : COUNTER(fail_verify_cert_hash) \ 20 0 : COUNTER(ocsp_staple_failed) \ 21 0 : COUNTER(ocsp_staple_omitted) \ 22 0 : COUNTER(ocsp_staple_responses) \ 23 0 : COUNTER(ocsp_staple_requests) \ 24 0 : COUNTER(was_key_usage_invalid) 25 : 26 : /** 27 : * Wrapper struct for SSL stats. @see stats_macros.h 28 : */ 29 : struct SslStats { 30 : ALL_SSL_STATS(GENERATE_COUNTER_STRUCT, GENERATE_GAUGE_STRUCT, GENERATE_HISTOGRAM_STRUCT) 31 : }; 32 : 33 : SslStats generateSslStats(Stats::Scope& store); 34 : 35 : } // namespace Tls 36 : } // namespace TransportSockets 37 : } // namespace Extensions 38 : } // namespace Envoy