aboutsummaryrefslogtreecommitdiff
path: root/src/zenserver/stats
diff options
context:
space:
mode:
authorDan Engelbrecht <[email protected]>2023-11-06 14:50:33 +0100
committerGitHub <[email protected]>2023-11-06 14:50:33 +0100
commit0b184fd2a65852028672a7a0013ec794c7e0b071 (patch)
tree8f2d6f8296016943c1544716a6110be58729b4c6 /src/zenserver/stats
parentfixed issue where file log sink would get the wrong pattern assigned (#513) (diff)
downloadzen-0b184fd2a65852028672a7a0013ec794c7e0b071.tar.xz
zen-0b184fd2a65852028672a7a0013ec794c7e0b071.zip
statsd for cas (#511)
* separate statsd interfaces so they can be accessible to zenstore * statsd for cas
Diffstat (limited to 'src/zenserver/stats')
-rw-r--r--src/zenserver/stats/statsreporter.h9
1 files changed, 2 insertions, 7 deletions
diff --git a/src/zenserver/stats/statsreporter.h b/src/zenserver/stats/statsreporter.h
index ed6ec6c55..2f93aa8bb 100644
--- a/src/zenserver/stats/statsreporter.h
+++ b/src/zenserver/stats/statsreporter.h
@@ -5,17 +5,12 @@
#include "config.h"
#include <zencore/thread.h>
+#include <zenutil/statsreporter.h>
namespace zen {
class StatsDaemonClient;
-class StatsProvider
-{
-public:
- virtual void ReportMetrics(StatsDaemonClient& Statsd) = 0;
-};
-
class StatsReporter
{
public:
@@ -27,8 +22,8 @@ public:
void Initialize(const ZenStatsConfig& Config);
void Shutdown();
- void AddProvider(StatsProvider* Provider);
void ReportStats();
+ void AddProvider(StatsProvider* Provider);
private:
RwLock m_Lock;