aboutsummaryrefslogtreecommitdiff
path: root/src/zennet/zennet.cpp
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/zennet/zennet.cpp
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/zennet/zennet.cpp')
-rw-r--r--src/zennet/zennet.cpp19
1 files changed, 19 insertions, 0 deletions
diff --git a/src/zennet/zennet.cpp b/src/zennet/zennet.cpp
new file mode 100644
index 000000000..30a012a3b
--- /dev/null
+++ b/src/zennet/zennet.cpp
@@ -0,0 +1,19 @@
+// Copyright Epic Games, Inc. All Rights Reserved.
+
+#include "zennet/zennet.h"
+
+#include <zencore/testing.h>
+
+#include <zennet/statsdclient.h>
+
+namespace zen {
+
+void
+zennet_forcelinktests()
+{
+#if ZEN_WITH_TESTS
+ zen::statsd_forcelink();
+#endif
+}
+
+} // namespace zen