blob: d6b2e0e62b49dd0f47c6b3212215a0abd47bb3f1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
/* Copyright (c) 2020, The Tor Project, Inc. */
/* See LICENSE for licensing information */
/**
* @file hs_metrics_entry.c
* @brief Defines the metrics entry that are collected by an onion service.
**/
#define HS_METRICS_ENTRY_PRIVATE
#include "orconfig.h"
#include "lib/cc/compat_compiler.h"
#include "feature/hs/hs_metrics_entry.h"
/** The base metrics that is a static array of metrics that are added to every
* single new stores.
*
* The key member MUST be also the index of the entry in the array. */
const hs_metrics_entry_t base_metrics[] =
{
{
.key = HS_METRICS_NUM_INTRODUCTIONS,
.type = METRICS_TYPE_COUNTER,
.name = "hs_intro_num_total",
.help = "Total number of introduction received",
.port_as_label = false,
},
};
/** Size of base_metrics array that is number of entries. */
const size_t base_metrics_size = ARRAY_LENGTH(base_metrics);
|