blob: 79f20b0da0e2725ca609a604b3a043c1259d7994 [file] [log] [blame]
Simon Kelley2a8710a2020-01-05 16:40:06 +00001/* dnsmasq is Copyright (c) 2000-2020 Simon Kelley
Simon Kelley8c1b6a52018-07-21 22:12:32 +01002
3 This program is free software; you can redistribute it and/or modify
4 it under the terms of the GNU General Public License as published by
5 the Free Software Foundation; version 2 dated June, 1991, or
6 (at your option) version 3 dated 29 June, 2007.
7
8 This program is distributed in the hope that it will be useful,
9 but WITHOUT ANY WARRANTY; without even the implied warranty of
10 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 GNU General Public License for more details.
12
13 You should have received a copy of the GNU General Public License
14 along with this program. If not, see <http://www.gnu.org/licenses/>.
15*/
16
17#include "dnsmasq.h"
18
19const char * metric_names[] = {
20 "dns_cache_inserted",
21 "dns_cache_live_freed",
22 "dns_queries_forwarded",
23 "dns_auth_answered",
24 "dns_local_answered",
25 "bootp",
26 "pxe",
27 "dhcp_ack",
28 "dhcp_decline",
29 "dhcp_discover",
30 "dhcp_inform",
31 "dhcp_nak",
32 "dhcp_offer",
33 "dhcp_release",
34 "dhcp_request",
35 "noanswer",
36 "leases_allocated_4",
37 "leases_pruned_4",
38 "leases_allocated_6",
39 "leases_pruned_6",
40};
41
42const char* get_metric_name(int i) {
43 return metric_names[i];
44}