summaryrefslogtreecommitdiffstats
path: root/streaming
diff options
context:
space:
mode:
authorIlya Mashchenko <ilya@netdata.cloud>2022-04-06 13:42:41 +0300
committerGitHub <noreply@github.com>2022-04-06 13:42:41 +0300
commitc98fcf5754f5cce226f8401b6a1e007703af9b20 (patch)
treec6e6b7fa5c09f0f5015789ae87e25e0e87e08c4c /streaming
parent989121a5a4428e9088d4119b27c1172c9a14a4da (diff)
feat: add support for cloud providers info to /api/v1/info (#12613)
Diffstat (limited to 'streaming')
-rw-r--r--streaming/sender.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/streaming/sender.c b/streaming/sender.c
index 6d81e88c88..72259c3ab3 100644
--- a/streaming/sender.c
+++ b/streaming/sender.c
@@ -301,6 +301,9 @@ if(!s->rrdpush_compression)
"&ml_enabled=%d"
"&tags=%s"
"&ver=%d"
+ "&NETDATA_INSTANCE_CLOUD_TYPE=%s"
+ "&NETDATA_INSTANCE_CLOUD_INSTANCE_TYPE=%s"
+ "&NETDATA_INSTANCE_CLOUD_INSTANCE_REGION=%s"
"&NETDATA_SYSTEM_OS_NAME=%s"
"&NETDATA_SYSTEM_OS_ID=%s"
"&NETDATA_SYSTEM_OS_ID_LIKE=%s"
@@ -343,6 +346,9 @@ if(!s->rrdpush_compression)
, host->system_info->ml_enabled
, (host->tags) ? host->tags : ""
, s->version
+ , (host->system_info->cloud_provider_type) ? host->system_info->cloud_provider_type : ""
+ , (host->system_info->cloud_instance_type) ? host->system_info->cloud_instance_type : ""
+ , (host->system_info->cloud_instance_region) ? host->system_info->cloud_instance_region : ""
, se.os_name
, se.os_id
, (host->system_info->host_os_id_like) ? host->system_info->host_os_id_like : ""