From 49f6950820f083956ddc2c9327eeae4e9ef0d5ed Mon Sep 17 00:00:00 2001 From: Andrew Moss <1043609+amoss@users.noreply.github.com> Date: Tue, 21 Jan 2020 16:08:59 +0100 Subject: Issue 7488 docker labels (#7770) Improve the metadata detection for containers. The system_info structure has been updated to hold separate copies of OS_NAME, OS_ID, OS_ID_LIKE, OS_VERSION, OS_VERSION_ID and OS_DETECTION for both the container environment and the host. This new information is communicated through the /api/v1/info endpoint. For the streaming interface a partial copy of the info is carried until the stream protocol is upgraded. The anonymous_statistics script has been updated to carry the new data to Google Analytics. Some minor improvements have been made to OS-X / FreeBSD detection, and the detection of virtualization. The docs have been updated to explain how to pass the host environment to the docker container running Netdata. --- database/rrd.h | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) (limited to 'database/rrd.h') diff --git a/database/rrd.h b/database/rrd.h index 40efd60e92..b873a5124d 100644 --- a/database/rrd.h +++ b/database/rrd.h @@ -618,12 +618,18 @@ typedef struct alarm_log { // RRD HOST struct rrdhost_system_info { - char *os_name; - char *os_id; - char *os_id_like; - char *os_version; - char *os_version_id; - char *os_detection; + char *host_os_name; + char *host_os_id; + char *host_os_id_like; + char *host_os_version; + char *host_os_version_id; + char *host_os_detection; + char *container_os_name; + char *container_os_id; + char *container_os_id_like; + char *container_os_version; + char *container_os_version_id; + char *container_os_detection; char *kernel_name; char *kernel_version; char *architecture; -- cgit v1.2.3