diff options
author | Emmanuel Vasilakis <mrzammler@mm.st> | 2021-04-21 18:24:51 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-04-21 18:24:51 +0300 |
commit | a1ce482f3e336dbabe1b12b92f6339af6a2bbbf8 (patch) | |
tree | 8ae1e1add384b80988479d36b1f88702e71b48c9 /Makefile.am | |
parent | b6d729f96a0b1e17abffb2cf69d1ff29e62004f4 (diff) |
Provide more agent analytics to posthog (#10887)
* Move statistics related functions to analytics.c
* error message change, space added after if
* start an analytics thread
* use heartbeat instead of sleep
* add late enviroment (after rrdinit) pick of some attributes
* change loop
* re-enable info messages
* remove possible new line
* log and report hits on allmetrics pages. detect if exporting engines are enabled/in use, and report them
* use lowercase for analytics variables
* add collectors
* add buildinfo
* more attributes from late environment
* add new attributes to v1/info
* re-gather meta data before exit. update allmetrics counters to be available in v1/info
* log hits to dashboard
* add mirrored hosts
* added notification methods
* fix spaces, proper JSON naming
* add alerts, charts and metrics count
* more attributes
* keep the thread up, and report a meta event every 2 hours
* small formating changes. Disable analytics_log_prometheus when for unit testing. Add the new attributes to the anonymous-statistics.sh.in script
* applied clang-format
* dont gather data again on exit
* safe buffer length in snprintfz
* add rrdset lock
* remove show_archived
Diffstat (limited to 'Makefile.am')
-rw-r--r-- | Makefile.am | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Makefile.am b/Makefile.am index 8917b51b83..aa45fc3a40 100644 --- a/Makefile.am +++ b/Makefile.am @@ -668,6 +668,8 @@ DAEMON_FILES = \ daemon/daemon.h \ daemon/global_statistics.c \ daemon/global_statistics.h \ + daemon/analytics.c \ + daemon/analytics.h \ daemon/main.c \ daemon/main.h \ daemon/signals.c \ |