Maintained by: NLnet Labs
Data Fields
ub_server_stats Struct Reference

per worker statistics. More...

#include <unbound.h>

Data Fields

long long num_queries
 number of queries from clients received. More...
 
long long num_queries_ip_ratelimited
 number of queries that have been dropped/ratelimited by ip. More...
 
long long num_queries_missed_cache
 number of queries that had a cache-miss. More...
 
long long num_queries_prefetch
 number of prefetch queries - cachehits with prefetch
 
long long sum_query_list_size
 Sum of the querylistsize of the worker for every query that missed cache. More...
 
long long max_query_list_size
 max value of query list size reached. More...
 
int extended
 Extended stats below (bool)
 
long long qtype [UB_STATS_QTYPE_NUM]
 qtype stats
 
long long qtype_big
 bigger qtype values not in array
 
long long qclass [UB_STATS_QCLASS_NUM]
 qclass stats
 
long long qclass_big
 bigger qclass values not in array
 
long long qopcode [UB_STATS_OPCODE_NUM]
 query opcodes
 
long long qtcp
 number of queries over TCP
 
long long qtcp_outgoing
 number of outgoing queries over TCP
 
long long qipv6
 number of queries over IPv6
 
long long qbit_QR
 number of queries with QR bit
 
long long qbit_AA
 number of queries with AA bit
 
long long qbit_TC
 number of queries with TC bit
 
long long qbit_RD
 number of queries with RD bit
 
long long qbit_RA
 number of queries with RA bit
 
long long qbit_Z
 number of queries with Z bit
 
long long qbit_AD
 number of queries with AD bit
 
long long qbit_CD
 number of queries with CD bit
 
long long qEDNS
 number of queries with EDNS OPT record
 
long long qEDNS_DO
 number of queries with EDNS with DO flag
 
long long ans_rcode [UB_STATS_RCODE_NUM]
 answer rcodes
 
long long ans_rcode_nodata
 answers with pseudo rcode 'nodata'
 
long long ans_secure
 answers that were secure (AD)
 
long long ans_bogus
 answers that were bogus (withheld as SERVFAIL)
 
long long rrset_bogus
 rrsets marked bogus by validator
 
long long queries_ratelimited
 number of queries that have been ratelimited by domain recursion. More...
 
long long unwanted_replies
 unwanted traffic received on server-facing ports
 
long long unwanted_queries
 unwanted traffic received on client-facing ports
 
long long tcp_accept_usage
 usage of tcp accept list
 
long long zero_ttl_responses
 answers served from expired cache
 
long long hist [UB_STATS_BUCKET_NUM]
 histogram data exported to array if the array is the same size, no data is lost, and if all histograms are same size (is so by default) then adding up works well. More...
 
long long msg_cache_count
 number of message cache entries
 
long long rrset_cache_count
 number of rrset cache entries
 
long long infra_cache_count
 number of infra cache entries
 
long long key_cache_count
 number of key cache entries
 
long long num_query_dnscrypt_crypted
 number of queries that used dnscrypt
 
long long num_query_dnscrypt_cert
 number of queries that queried dnscrypt certificates
 
long long num_query_dnscrypt_cleartext
 number of queries in clear text and not asking for the certificates
 
long long num_query_dnscrypt_crypted_malformed
 number of malformed encrypted queries
 
long long num_query_dnscrypt_secret_missed_cache
 number of queries which did not have a shared secret in cache
 
long long shared_secret_cache_count
 number of dnscrypt shared secret cache entries
 
long long num_query_dnscrypt_replay
 number of queries which are replays
 
long long nonce_cache_count
 number of dnscrypt nonces cache entries
 

Detailed Description

per worker statistics.

Field Documentation

◆ num_queries

long long ub_server_stats::num_queries

number of queries from clients received.

Referenced by print_stats(), server_stats_add(), server_stats_log(), and usage().

◆ num_queries_ip_ratelimited

long long ub_server_stats::num_queries_ip_ratelimited

number of queries that have been dropped/ratelimited by ip.

Referenced by print_stats(), server_stats_add(), server_stats_log(), and usage().

◆ num_queries_missed_cache

long long ub_server_stats::num_queries_missed_cache

number of queries that had a cache-miss.

Referenced by print_stats(), server_stats_add(), server_stats_log(), server_stats_querymiss(), and usage().

◆ sum_query_list_size

long long ub_server_stats::sum_query_list_size

Sum of the querylistsize of the worker for every query that missed cache.

To calculate average.

Referenced by print_stats(), server_stats_add(), server_stats_log(), server_stats_prefetch(), server_stats_querymiss(), and usage().

◆ max_query_list_size

long long ub_server_stats::max_query_list_size

max value of query list size reached.

Referenced by print_stats(), server_stats_add(), server_stats_log(), server_stats_prefetch(), server_stats_querymiss(), and usage().

◆ queries_ratelimited

long long ub_server_stats::queries_ratelimited

number of queries that have been ratelimited by domain recursion.

Referenced by server_stats_compile().

◆ hist

long long ub_server_stats::hist[UB_STATS_BUCKET_NUM]

histogram data exported to array if the array is the same size, no data is lost, and if all histograms are same size (is so by default) then adding up works well.

Referenced by print_hist(), server_stats_add(), and server_stats_compile().


The documentation for this struct was generated from the following file: