diff options
author | Chris Akritidis <43294513+cakrit@users.noreply.github.com> | 2019-01-27 12:35:09 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-01-27 12:35:09 +0200 |
commit | 2a5074ad432f41b942bdee845975b4d8ec527361 (patch) | |
tree | 8122ef6b231b9dd46cefba55cef0fc5fa3613d76 /registry/registry.c | |
parent | d5e1197de6c8dcacfdaab1f99a83db450ecbe675 (diff) |
Anonymous statistics (#5113)
* Added shell and dashboard anonymous statistics
* Check for environment var NETDATA_REGISTRY_UNIQUE_ID
* Fix indentation
* Removed health-cmdapi-test
* docs/anonymous-statistics.md
Diffstat (limited to 'registry/registry.c')
-rw-r--r-- | registry/registry.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/registry/registry.c b/registry/registry.c index e449f1aead..67e179a3a9 100644 --- a/registry/registry.c +++ b/registry/registry.c @@ -132,9 +132,9 @@ int registry_request_hello_json(RRDHOST *host, struct web_client *w) { registry_json_header(host, w, "hello", REGISTRY_STATUS_OK); buffer_sprintf(w->response.data, - ",\n\t\"registry\": \"%s\",\n\t\"cloud_base_url\": \"%s\"", + ",\n\t\"registry\": \"%s\",\n\t\"cloud_base_url\": \"%s\",\n\t\"anonymous_statistics\": %s", registry.registry_to_announce, - registry.cloud_base_url); + registry.cloud_base_url, netdata_anonymous_statistics_enabled?"true":"false"); registry_json_footer(w); return 200; |