Move call to send_statistics later, to get more events from docker (#6096)
* Move call to send_statistics later, to get info from more docker containers * Test using localhost instead of ip
Chris Akritidis committed
May 23, 2019 at 13:05 UTC
a941d189a6d38c82662f25cd30184a7fd7797e49
2 files changed
+2
-2
.travis/run_install_with_dist_file.sh
+1
-1
@@ -39,7 +39,7 @@ fi
39
40
echo "Entering ${NETDATA_DIST_FOLDER} and starting docker compilation"
41
cd ${NETDATA_DIST_FOLDER}
42
-docker run -it -v "${PWD}:/code:rw" -w /code "netdata/os-test:centos7" /bin/bash -c "./netdata-installer.sh --dont-wait --install /tmp && echo \"Validating netdata instance is running\" && wget -O'-' 'http://127.0.0.1:19999/api/v1/info' | grep version"
42
+docker run -it -v "${PWD}:/code:rw" -w /code "netdata/os-test:centos7" /bin/bash -c "./netdata-installer.sh --dont-wait --install /tmp && echo \"Validating netdata instance is running\" && wget -O'-' 'http://localhost:19999/api/v1/info' | grep version"
43
44
echo "Installation completed with no errors! Removing temporary folders"
45
daemon/main.c
+1
-1
@@ -1136,7 +1136,6 @@ int main(int argc, char **argv) {
1136
1137
netdata_anonymous_statistics_enabled=-1;
1138
struct rrdhost_system_info *system_info = calloc(1, sizeof(struct rrdhost_system_info));
1139
- if (get_system_info(system_info) == 0) send_statistics("START","-", "-");
1139
1140
#ifdef NETDATA_INTERNAL_CHECKS
1141
if(debug_flags != 0) {
@@ -1196,6 +1195,7 @@ int main(int argc, char **argv) {
1195
1196
info("netdata initialization completed. Enjoy real-time performance monitoring!");
1197
netdata_ready = 1;
1198
+ if (get_system_info(system_info) == 0) send_statistics("START","-", "-");
1199
1200
// ------------------------------------------------------------------------
1201
// unblock signals