aboutsummaryrefslogtreecommitdiff
path: root/src/zenserver/config.h
diff options
context:
space:
mode:
authorStefan Boberg <[email protected]>2023-10-25 12:21:51 +0200
committerGitHub <[email protected]>2023-10-25 12:21:51 +0200
commit0b220255724020daea18ddb559f5edf3fdb1621b (patch)
tree7809227752c15d90111c4e600d80b59d90ad25d2 /src/zenserver/config.h
parentNew rotating file logger that keeps on running regardless of errors (#495) (diff)
downloadzen-0b220255724020daea18ddb559f5edf3fdb1621b.tar.xz
zen-0b220255724020daea18ddb559f5edf3fdb1621b.zip
statsd metrics reporting (#496)
added support for reporting metrics via statsd style UDP messaging, which is supported by many monitoring solution providers this change adds reporting only of three cache related metrics (hit/miss/put) but this should be extended to include more metrics after additional evaluation
Diffstat (limited to 'src/zenserver/config.h')
-rw-r--r--src/zenserver/config.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/zenserver/config.h b/src/zenserver/config.h
index 7743e536f..a1e091665 100644
--- a/src/zenserver/config.h
+++ b/src/zenserver/config.h
@@ -96,6 +96,13 @@ struct ZenObjectStoreConfig
std::vector<BucketConfig> Buckets;
};
+struct ZenStatsConfig
+{
+ bool Enabled = false;
+ std::string StatsdHost = "localhost";
+ int StatsdPort = 8125;
+};
+
struct ZenStructuredCacheConfig
{
bool Enabled = true;
@@ -116,6 +123,7 @@ struct ZenServerOptions
ZenObjectStoreConfig ObjectStoreConfig;
zen::HttpServerConfig HttpServerConfig;
ZenStructuredCacheConfig StructuredCacheConfig;
+ ZenStatsConfig StatsConfig;
std::filesystem::path DataDir; // Root directory for state (used for testing)
std::filesystem::path ContentDir; // Root directory for serving frontend content (experimental)
std::filesystem::path AbsLogFile; // Absolute path to main log file