Skip to content

Commit

Permalink
update extended SSL stats
Browse files Browse the repository at this point in the history
  • Loading branch information
dakshinai committed Nov 6, 2023
1 parent 58241ab commit 6d6f513
Showing 1 changed file with 15 additions and 2 deletions.
17 changes: 15 additions & 2 deletions client/nginx.go
Original file line number Diff line number Diff line change
Expand Up @@ -224,8 +224,21 @@ type HTTPRequests struct {
// SSL represents SSL related stats.
type SSL struct {
Handshakes uint64
HandshakesFailed uint64 `json:"handshakes_failed"`
SessionReuses uint64 `json:"session_reuses"`
HandshakesFailed uint64 `json:"handshakes_failed"`
SessionReuses uint64 `json:"session_reuses"`
NoCommonProtocol uint64 `json:"no_common_protocol"`
NoCommonCipher uint64 `json:"no_common_cipher,omitempty"`
HandshakeTimeout uint64 `json:"handshake_timeout"`
PeerRejectedCert uint64 `json:"peer_rejected_cert"`
VerifyFailures VerifyFailures `json:"verify_failures"`
}

type VerifyFailures struct {
NoCert uint64 `json:"no_cert,omitempty"`
ExpiredCert uint64 `json:"expired_cert"`
RevokedCert uint64 `json:"revoked_cert"`
HostnameMismatch uint64 `json:"hostname_mismatch,omitempty"`
Other uint64 `json:"other"`
}

// ServerZones is map of server zone stats by zone name
Expand Down

0 comments on commit 6d6f513

Please sign in to comment.