0
0
Fork 0
mirror of https://github.com/netdata/netdata.git synced 2025-04-25 13:33:48 +00:00
Commit graph

14 commits

Author SHA1 Message Date
Ikko Ashimine
5a42549d5f
Fix typo in analytics.c ()
existance -> existence
2021-07-12 11:55:45 +00:00
Emmanuel Vasilakis
35fe213c42
remove access check for install-type file () 2021-06-29 14:34:09 +03:00
Emmanuel Vasilakis
d002afbe56
Extra posthog attributes ()
* add some more analytics items to posthog

* add CI check

* use empty string if install_type can not be read

* better check of CI variable

* reduce scope

* get prebuilt distro

* check for legacy/ng aclk implementation

* use else

* add list delimiter to exporting

* Revert "check for legacy/ng aclk implementation"

This reverts commit 4f0adf8721.

* formatting

* use snprintfz

* use a function for getting the value

* fix buf size and formatting

* fix crash when exporting is not enabled

* remove netdata_is_in_ci
2021-06-28 09:47:46 +03:00
Emmanuel Vasilakis
3ef5ba029c
Send correct aclk implementation used by agent to posthog. () 2021-06-15 17:09:58 +03:00
Emmanuel Vasilakis
5de2432537
Only report the exit code without strerror () 2021-06-01 09:38:59 +03:00
Emmanuel Vasilakis
9f40c4b12c
Provide UTC offset in seconds and edit health config command ()
* add abbreviated timezone, utc offset in seconds, and edit health alarm command

rebased

* formating

* use str2i instead of atoi
2021-05-31 16:29:47 +03:00
Emmanuel Vasilakis
1d493f5f85
Check return status of execution of anonymous statistics script ()
* check return of execution of anonymous statistics script

* break check into two parts
2021-05-31 10:42:25 +03:00
Ilya Mashchenko
cde5d2841c
analytics: reduce alarms notifications dump logging () 2021-05-07 18:11:03 +03:00
Emmanuel Vasilakis
bebd56cd60
Add host_cloud_enabled attribute to analytics ()
* add host_cloud_enabled attribute to analytics

* change order

* use defines in appconfig_get_boolean
2021-05-06 15:20:20 +03:00
Emmanuel Vasilakis
037584392c
reduce info logging () 2021-05-05 11:14:00 +03:00
Stelios Fragkakis
d41a139143
Fix coverity issue (CID 370510) 2021-04-29 10:05:54 +03:00
Emmanuel Vasilakis
e9ccc75a45
Provide more agent analytics to posthog ()
* 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

* remove setenv

* calculate lengths during sets
2021-04-27 10:11:20 +03:00
Emmanuel Vasilakis
3d571ebb44
Revert "Provide more agent analytics to posthog ()" ()
This reverts commit a1ce482f3e.
2021-04-21 20:53:12 +03:00
Emmanuel Vasilakis
a1ce482f3e
Provide more agent analytics to posthog ()
* 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
2021-04-21 18:24:51 +03:00