@cryptotaxi247 / netdata-1 / commits / e8915e265

Add SPDX-License-Identifier headers to most files.

This tags all the files that I can clearly identify as being part of Netdata and not a local copy of a third party package that we're redistributing.

Austin S. Hemmelgarn committed May 31, 2018 at 15:33 UTC e8915e26537615282003d6baf094d59712c9b4f1
341 files changed +345 -34
Dockerfile.alpine
+1
@@ -1,3 +1,4 @@
1 +# SPDX-License-Identifier: GPL-3.0+
2 FROM alpine:edge as builder
3
4 # Install prerequisites
Makefile.am
+1
@@ -1,5 +1,6 @@
1 #
2 # Copyright (C) 2015 Alon Bar-Lev <alon.barlev@gmail.com>
3 +# SPDX-License-Identifier: GPL-3.0+
4 #
5 AUTOMAKE_OPTIONS=foreign dist-bzip2 dist-xz 1.10
6 ACLOCAL_AMFLAGS = -I m4
charts.d/ap.chart.sh
+1 -1
@@ -1,9 +1,9 @@
1 # no need for shebang - this file is loaded from charts.d.plugin
2 +# SPDX-License-Identifier: GPL-3.0+
3
4 # netdata
5 # real-time performance and health monitoring, done right!
6 # (C) 2016 Costa Tsaousis <costa@tsaousis.gr>
6 -# GPL v3+
7 #
8
9 # _update_every is a special variable - it holds the number of seconds
charts.d/apache.chart.sh
+1 -1
@@ -1,9 +1,9 @@
1 # no need for shebang - this file is loaded from charts.d.plugin
2 +# SPDX-License-Identifier: GPL-3.0+
3
4 # netdata
5 # real-time performance and health monitoring, done right!
6 # (C) 2016 Costa Tsaousis <costa@tsaousis.gr>
6 -# GPL v3+
7 #
8
9 # the URL to download apache status info
charts.d/apcupsd.chart.sh
+1 -1
@@ -1,9 +1,9 @@
1 # no need for shebang - this file is loaded from charts.d.plugin
2 +# SPDX-License-Identifier: GPL-3.0+
3
4 # netdata
5 # real-time performance and health monitoring, done right!
6 # (C) 2016 Costa Tsaousis <costa@tsaousis.gr>
6 -# GPL v3+
7 #
8
9 apcupsd_ip=
charts.d/cpu_apps.chart.sh
+1 -1
@@ -1,9 +1,9 @@
1 # no need for shebang - this file is loaded from charts.d.plugin
2 +# SPDX-License-Identifier: GPL-3.0+
3
4 # netdata
5 # real-time performance and health monitoring, done right!
6 # (C) 2016 Costa Tsaousis <costa@tsaousis.gr>
6 -# GPL v3+
7 #
8 # THIS PLUGIN IS OBSOLETE
9 # USE apps.plugin INSTEAD
charts.d/cpufreq.chart.sh
+1 -1
@@ -1,9 +1,9 @@
1 # no need for shebang - this file is loaded from charts.d.plugin
2 +# SPDX-License-Identifier: GPL-3.0+
3
4 # netdata
5 # real-time performance and health monitoring, done right!
6 # (C) 2016 Costa Tsaousis <costa@tsaousis.gr>
6 -# GPL v3+
7 #
8
9 # if this chart is called X.chart.sh, then all functions and global variables
charts.d/example.chart.sh
+1 -1
@@ -1,9 +1,9 @@
1 # no need for shebang - this file is loaded from charts.d.plugin
2 +# SPDX-License-Identifier: GPL-3.0+
3
4 # netdata
5 # real-time performance and health monitoring, done right!
6 # (C) 2016 Costa Tsaousis <costa@tsaousis.gr>
6 -# GPL v3+
7 #
8
9 # if this chart is called X.chart.sh, then all functions and global variables
charts.d/exim.chart.sh
+1 -1
@@ -1,9 +1,9 @@
1 # no need for shebang - this file is loaded from charts.d.plugin
2 +# SPDX-License-Identifier: GPL-3.0+
3
4 # netdata
5 # real-time performance and health monitoring, done right!
6 # (C) 2016 Costa Tsaousis <costa@tsaousis.gr>
6 -# GPL v3+
7 #
8 # Contributed by @jsveiga with PR #480
9
charts.d/hddtemp.chart.sh
+1 -1
@@ -1,9 +1,9 @@
1 # no need for shebang - this file is loaded from charts.d.plugin
2 +# SPDX-License-Identifier: GPL-3.0+
3
4 # netdata
5 # real-time performance and health monitoring, done right!
6 # (C) 2016 Costa Tsaousis <costa@tsaousis.gr>
6 -# GPL v3+
7 #
8 # contributed by @paulfantom with PR #511
9
charts.d/libreswan.chart.sh
+1 -1
@@ -1,9 +1,9 @@
1 # no need for shebang - this file is loaded from charts.d.plugin
2 +# SPDX-License-Identifier: GPL-3.0+
3
4 # netdata
5 # real-time performance and health monitoring, done right!
6 # (C) 2018 Costa Tsaousis <costa@tsaousis.gr>
6 -# GPL v3+
7 #
8
9 # _update_every is a special variable - it holds the number of seconds
charts.d/load_average.chart.sh
+1 -1
@@ -1,9 +1,9 @@
1 # no need for shebang - this file is loaded from charts.d.plugin
2 +# SPDX-License-Identifier: GPL-3.0+
3
4 # netdata
5 # real-time performance and health monitoring, done right!
6 # (C) 2016 Costa Tsaousis <costa@tsaousis.gr>
6 -# GPL v3+
7 #
8
9 load_average_update_every=5
charts.d/mem_apps.chart.sh
+1 -1
@@ -1,9 +1,9 @@
1 # no need for shebang - this file is loaded from charts.d.plugin
2 +# SPDX-License-Identifier: GPL-3.0+
3
4 # netdata
5 # real-time performance and health monitoring, done right!
6 # (C) 2016 Costa Tsaousis <costa@tsaousis.gr>
6 -# GPL v3+
7 #
8
9 mem_apps_apps=
charts.d/mysql.chart.sh
+1 -1
@@ -1,9 +1,9 @@
1 # no need for shebang - this file is loaded from charts.d.plugin
2 +# SPDX-License-Identifier: GPL-3.0+
3
4 # netdata
5 # real-time performance and health monitoring, done right!
6 # (C) 2016 Costa Tsaousis <costa@tsaousis.gr>
6 -# GPL v3+
7 #
8
9 # http://dev.mysql.com/doc/refman/5.0/en/server-status-variables.html
charts.d/nginx.chart.sh
+1 -1
@@ -1,9 +1,9 @@
1 # no need for shebang - this file is loaded from charts.d.plugin
2 +# SPDX-License-Identifier: GPL-3.0+
3
4 # netdata
5 # real-time performance and health monitoring, done right!
6 # (C) 2016 Costa Tsaousis <costa@tsaousis.gr>
6 -# GPL v3+
7 #
8
9 # if this chart is called X.chart.sh, then all functions and global variables
charts.d/nut.chart.sh
+1 -1
@@ -1,9 +1,9 @@
1 # no need for shebang - this file is loaded from charts.d.plugin
2 +# SPDX-License-Identifier: GPL-3.0+
3
4 # netdata
5 # real-time performance and health monitoring, done right!
6 # (C) 2016-2017 Costa Tsaousis <costa@tsaousis.gr>
6 -# GPL v3+
7 #
8
9 # a space separated list of UPS names
charts.d/opensips.chart.sh
+1 -1
@@ -1,9 +1,9 @@
1 # no need for shebang - this file is loaded from charts.d.plugin
2 +# SPDX-License-Identifier: GPL-3.0+
3
4 # netdata
5 # real-time performance and health monitoring, done right!
6 # (C) 2016 Costa Tsaousis <costa@tsaousis.gr>
6 -# GPL v3+
7 #
8
9 opensips_opts="fifo get_statistics all"
charts.d/phpfpm.chart.sh
+1 -1
@@ -1,9 +1,9 @@
1 # no need for shebang - this file is loaded from charts.d.plugin
2 +# SPDX-License-Identifier: GPL-3.0+
3
4 # netdata
5 # real-time performance and health monitoring, done right!
6 # (C) 2016 Costa Tsaousis <costa@tsaousis.gr>
6 -# GPL v3+
7 #
8 # Contributed by @safeie with PR #276
9
charts.d/postfix.chart.sh
+1 -1
@@ -1,9 +1,9 @@
1 # no need for shebang - this file is loaded from charts.d.plugin
2 +# SPDX-License-Identifier: GPL-3.0+
3
4 # netdata
5 # real-time performance and health monitoring, done right!
6 # (C) 2016 Costa Tsaousis <costa@tsaousis.gr>
6 -# GPL v3+
7 #
8
9 # the postqueue command
charts.d/sensors.chart.sh
+1 -1
@@ -1,9 +1,9 @@
1 # no need for shebang - this file is loaded from charts.d.plugin
2 +# SPDX-License-Identifier: GPL-3.0+
3
4 # netdata
5 # real-time performance and health monitoring, done right!
6 # (C) 2016 Costa Tsaousis <costa@tsaousis.gr>
6 -# GPL v3+
7 #
8
9 # sensors docs
charts.d/squid.chart.sh
+1 -1
@@ -1,9 +1,9 @@
1 # no need for shebang - this file is loaded from charts.d.plugin
2 +# SPDX-License-Identifier: GPL-3.0+
3
4 # netdata
5 # real-time performance and health monitoring, done right!
6 # (C) 2016 Costa Tsaousis <costa@tsaousis.gr>
6 -# GPL v3+
7 #
8
9 squid_host=
charts.d/tomcat.chart.sh
+1 -1
@@ -1,9 +1,9 @@
1 # no need for shebang - this file is loaded from charts.d.plugin
2 +# SPDX-License-Identifier: GPL-3.0+
3
4 # netdata
5 # real-time performance and health monitoring, done right!
6 # (C) 2016 Costa Tsaousis <costa@tsaousis.gr>
6 -# GPL v3+
7 #
8 # Contributed by @jgeromero with PR #277
9
conf.d/Makefile.am
+1
@@ -1,5 +1,6 @@
1 #
2 # Copyright (C) 2015 Alon Bar-Lev <alon.barlev@gmail.com>
3 +# SPDX-License-Identifier: GPL-3.0+
4 #
5 MAINTAINERCLEANFILES= $(srcdir)/Makefile.in
6
contrib/Makefile.am
+1
@@ -1,3 +1,4 @@
1 +# SPDX-License-Identifier: GPL-3.0+
2 MAINTAINERCLEANFILES= $(srcdir)/Makefile.in
3
4 dist_noinst_DATA = \
contrib/nc-backend.sh
+1
@@ -1,4 +1,5 @@
1 #!/usr/bin/env bash
2 +# SPDX-License-Identifier: GPL-3.0+
3
4 MODE="${1}"
5 MY_PORT="${2}"
installer/functions.sh
+1
@@ -1,4 +1,5 @@
1 # no shebang necessary - this is a library to be sourced
2 +# SPDX-License-Identifier: GPL-3.0+
3
4 # make sure we have a UID
5 [ -z "${UID}" ] && UID="$(id -u)"
kickstart-static64.sh
+1
@@ -1,4 +1,5 @@
1 #!/usr/bin/env sh
2 +# SPDX-License-Identifier: GPL-3.0+
3
4 umask 022
5
kickstart.sh
+1
@@ -1,4 +1,5 @@
1 #!/usr/bin/env sh
2 +# SPDX-License-Identifier: GPL-3.0+
3 #
4 # Run me with:
5 #
makeself/Makefile.am
+1
@@ -1,3 +1,4 @@
1 +# SPDX-License-Identifier: GPL-3.0+
2 MAINTAINERCLEANFILES= $(srcdir)/Makefile.in
3
4 dist_noinst_DATA = \
makeself/build-x86_64-static.sh
+1
@@ -1,4 +1,5 @@
1 #!/usr/bin/env bash
2 +# SPDX-License-Identifier: GPL-3.0+
3
4 . $(dirname "$0")/../installer/functions.sh || exit 1
5
makeself/build.sh
+1
@@ -1,4 +1,5 @@
1 #!/usr/bin/env sh
2 +# SPDX-License-Identifier: GPL-3.0+
3
4 # -----------------------------------------------------------------------------
5 # parse command line arguments
makeself/functions.sh
+1
@@ -1,4 +1,5 @@
1 #!/usr/bin/env bash
2 +# SPDX-License-Identifier: GPL-3.0+
3
4 # -----------------------------------------------------------------------------
5
makeself/install-alpine-packages.sh
+1
@@ -1,4 +1,5 @@
1 #!/usr/bin/env sh
2 +# SPDX-License-Identifier: GPL-3.0+
3
4 # this script should be running in alpine linux
5 # install the required packages
makeself/install-or-update.sh
+1
@@ -1,4 +1,5 @@
1 #!/usr/bin/env bash
2 +# SPDX-License-Identifier: GPL-3.0+
3
4 . $(dirname "${0}")/functions.sh
5
makeself/jobs/10-prepare-destination.install.sh
+1
@@ -1,4 +1,5 @@
1 #!/usr/bin/env bash
2 +# SPDX-License-Identifier: GPL-3.0+
3
4 . $(dirname "${0}")/../functions.sh "${@}" || exit 1
5
makeself/jobs/50-bash-4.4.18.install.sh
+1
@@ -1,4 +1,5 @@
1 #!/usr/bin/env bash
2 +# SPDX-License-Identifier: GPL-3.0+
3
4 . $(dirname "${0}")/../functions.sh "${@}" || exit 1
5
makeself/jobs/50-curl-7.60.0.install.sh
+1
@@ -1,4 +1,5 @@
1 #!/usr/bin/env bash
2 +# SPDX-License-Identifier: GPL-3.0+
3
4 . $(dirname "${0}")/../functions.sh "${@}" || exit 1
5
makeself/jobs/50-fping-4.0.install.sh
+1
@@ -1,4 +1,5 @@
1 #!/usr/bin/env bash
2 +# SPDX-License-Identifier: GPL-3.0+
3
4 . $(dirname "${0}")/../functions.sh "${@}" || exit 1
5
makeself/jobs/70-netdata-git.install.sh
+1
@@ -1,4 +1,5 @@
1 #!/usr/bin/env bash
2 +# SPDX-License-Identifier: GPL-3.0+
3
4 . ${NETDATA_MAKESELF_PATH}/functions.sh "${@}" || exit 1
5
makeself/jobs/99-makeself.install.sh
+1
@@ -1,4 +1,5 @@
1 #!/usr/bin/env bash
2 +# SPDX-License-Identifier: GPL-3.0+
3
4 . $(dirname "${0}")/../functions.sh "${@}" || exit 1
5
makeself/makeself-header.sh
+1
@@ -1,3 +1,4 @@
1 +# SPDX-License-Identifier: GPL-3.0+
2 cat << EOF > "$archname"
3 #!/bin/sh
4 # This script was generated using Makeself $MS_VERSION
makeself/makeself.sh
+1
@@ -1,4 +1,5 @@
1 #!/bin/sh
2 +# SPDX-License-Identifier: GPL-3.0+
3 #
4 # Makeself version 2.3.x
5 # by Stephane Peter <megastep@megastep.org>
makeself/post-installer.sh
+1
@@ -1,4 +1,5 @@
1 #!/bin/sh
2 +# SPDX-License-Identifier: GPL-3.0+
3
4 # This script is started using the shell of the system
5 # and executes our 'install-or-update.sh' script
makeself/run-all-jobs.sh
+1
@@ -1,4 +1,5 @@
1 #!/usr/bin/env bash
2 +# SPDX-License-Identifier: GPL-3.0+
3
4 LC_ALL=C
5 umask 002
netdata-installer.sh
+1
@@ -1,4 +1,5 @@
1 #!/usr/bin/env bash
2 +# SPDX-License-Identifier: GPL-3.0+
3
4 export PATH="${PATH}:/sbin:/usr/sbin:/usr/local/bin:/usr/local/sbin"
5 uniquepath() {
netdata.spec.in
+1
@@ -1,3 +1,4 @@
1 +# SPDX-License-Identifier: GPL-3.0+
2 %global contentdir %{_datadir}/netdata
3
4 # This is temporary and should eventually be resolved. This bypasses
node.d/Makefile.am
+1
@@ -1,3 +1,4 @@
1 +# SPDX-License-Identifier: GPL-3.0+
2 MAINTAINERCLEANFILES= $(srcdir)/Makefile.in
3
4 dist_node_DATA = \
node.d/fronius.node.js
+1
@@ -1,4 +1,5 @@
1 "use strict";
2 +// SPDX-License-Identifier: GPL-3.0+
3
4 // This program will connect to one or more Fronius Symo Inverters.
5 // to get the Solar Power Generated (current, today).
node.d/named.node.js
+1
@@ -1,4 +1,5 @@
1 'use strict';
2 +// SPDX-License-Identifier: GPL-3.0+
3
4 // collect statistics from bind (named) v9.10+
5 //
node.d/node_modules/netdata.js
+1 -1
@@ -3,7 +3,7 @@
3 // netdata
4 // real-time performance and health monitoring, done right!
5 // (C) 2016 Costa Tsaousis <costa@tsaousis.gr>
6 -// GPL v3+
6 +// SPDX-License-Identifier: GPL-3.0+
7
8 var url = require('url');
9 var http = require('http');
node.d/sma_webbox.node.js
+1
@@ -1,4 +1,5 @@
1 'use strict';
2 +// SPDX-License-Identifier: GPL-3.0+
3
4 // This program will connect to one or more SMA Sunny Webboxes
5 // to get the Solar Power Generated (current, today, total).
node.d/snmp.node.js
+1
@@ -1,4 +1,5 @@
1 'use strict';
2 +// SPDX-License-Identifier: GPL-3.0+
3 // netdata snmp module
4 // This program will connect to one or more SNMP Agents
5 //
node.d/stiebeleltron.node.js
+1
@@ -1,4 +1,5 @@
1 'use strict';
2 +// SPDX-License-Identifier: GPL-3.0+
3
4 // This program will connect to one Stiebel Eltron ISG for heatpump heating
5 // to get the heat pump metrics.
packaging/check-files
+1
@@ -1,4 +1,5 @@
1 #!/bin/bash
2 +# SPDX-License-Identifier: GPL-3.0+
3
4 #
5 # check-files
packaging/git-build
+1
@@ -1,4 +1,5 @@
1 #!/bin/sh
2 +# SPDX-License-Identifier: GPL-3.0+
3
4 # When run from the top-level repository, performs a complete clean
5 # and maintainer-mode rebuild of the FireHOL package.
packaging/packaging.functions
+1
@@ -1,4 +1,5 @@
1 #!/bin/bash
2 +# SPDX-License-Identifier: GPL-3.0+
3
4 packaging_check_init() {
5 version_check=
packaging/release-msg
+1
@@ -1,4 +1,5 @@
1 #!/bin/bash
2 +# SPDX-License-Identifier: GPL-3.0+
3
4 #
5 # release-msg
packaging/tar-compare
+1
@@ -1,4 +1,5 @@
1 #!/bin/sh
2 +# SPDX-License-Identifier: GPL-3.0+
3
4 # When provided with a git repo, which has been used to produce a
5 # distribution tar.gz (with make dist) and the resultant tar-file,
packaging/update-tags
+1
@@ -1,4 +1,5 @@
1 #!/bin/bash
2 +# SPDX-License-Identifier: GPL-3.0+
3
4 #
5 # update-tags
plugins.d/Makefile.am
+1
@@ -1,5 +1,6 @@
1 #
2 # Copyright (C) 2015 Alon Bar-Lev <alon.barlev@gmail.com>
3 +# SPDX-License-Identifier: GPL-3.0+
4 #
5 MAINTAINERCLEANFILES= $(srcdir)/Makefile.in
6
plugins.d/alarm-email.sh
+1
@@ -1,4 +1,5 @@
1 #!/usr/bin/env bash
2 +# SPDX-License-Identifier: GPL-3.0+
3
4 # OBSOLETE - REPLACED WITH
5 # alarm-notify.sh
plugins.d/alarm-notify.sh
+1 -1
@@ -3,7 +3,7 @@
3 # netdata
4 # real-time performance and health monitoring, done right!
5 # (C) 2017 Costa Tsaousis <costa@tsaousis.gr>
6 -# GPL v3+
6 +# SPDX-License-Identifier: GPL-3.0+
7 #
8 # Script to send alarm notifications for netdata
9 #
plugins.d/alarm-test.sh
+1 -1
@@ -3,7 +3,7 @@
3 # netdata
4 # real-time performance and health monitoring, done right!
5 # (C) 2017 Costa Tsaousis <costa@tsaousis.gr>
6 -# GPL v3+
6 +# SPDX-License-Identifier: GPL-3.0+
7 #
8 # Script to test alarm notifications for netdata
9
plugins.d/cgroup-name.sh
+1 -1
@@ -3,7 +3,7 @@
3 # netdata
4 # real-time performance and health monitoring, done right!
5 # (C) 2016 Costa Tsaousis <costa@tsaousis.gr>
6 -# GPL v3+
6 +# SPDX-License-Identifier: GPL-3.0+
7 #
8 # Script to find a better name for cgroups
9 #
plugins.d/cgroup-network-helper.sh
+1 -1
@@ -4,7 +4,7 @@
4 # detect container and virtual machine interfaces
5 #
6 # (C) 2017 Costa Tsaousis
7 -# GPL v3+
7 +# SPDX-License-Identifier: GPL-3.0+
8 #
9 # This script is called as root (by cgroup-network), with either a pid, or a cgroup path.
10 # It tries to find all the network interfaces that belong to the same cgroup.
plugins.d/charts.d.dryrun-helper.sh
+1
@@ -1,4 +1,5 @@
1 #!/usr/bin/env bash
2 +# SPDX-License-Identifier: GPL-3.0+
3
4 # will stop the script for any error
5 set -e
plugins.d/charts.d.plugin
+1
@@ -1,4 +1,5 @@
1 #!/usr/bin/env bash
2 +# SPDX-License-Identifier: GPL-3.0+
3
4 # netdata
5 # real-time performance and health monitoring, done right!
plugins.d/fping.plugin
+1
@@ -1,4 +1,5 @@
1 #!/usr/bin/env bash
2 +# SPDX-License-Identifier: GPL-3.0+
3
4 # netdata
5 # real-time performance and health monitoring, done right!
plugins.d/loopsleepms.sh.inc
+1
@@ -1,4 +1,5 @@
1 # no need for shebang - this file is included from other scripts
2 +# SPDX-License-Identifier: GPL-3.0+
3
4 LOOPSLEEP_DATE="$(which date 2>/dev/null || command -v date 2>/dev/null)"
5 if [ -z "$LOOPSLEEP_DATE" ]
plugins.d/node.d.plugin
+1 -1
@@ -11,7 +11,7 @@
11 // netdata
12 // real-time performance and health monitoring, done right!
13 // (C) 2017 Costa Tsaousis <costa@tsaousis.gr>
14 -// GPL v3+
14 +// SPDX-License-Identifier: GPL-3.0+
15
16 // --------------------------------------------------------------------------------------------------------------------
17
plugins.d/python.d.plugin
+1
@@ -6,6 +6,7 @@ echo "ERROR python IS NOT AVAILABLE IN THIS SYSTEM")" "$0" "$@" # '''
6 # Description:
7 # Author: Pawel Krupa (paulfantom)
8 # Author: Ilya Mashchenko (l2isbad)
9 +# SPDX-License-Identifier: GPL-3.0+
10
11 import os
12 import sys
plugins.d/tc-qos-helper.sh
+1 -1
@@ -3,7 +3,7 @@
3 # netdata
4 # real-time performance and health monitoring, done right!
5 # (C) 2017 Costa Tsaousis <costa@tsaousis.gr>
6 -# GPL v3+
6 +# SPDX-License-Identifier: GPL-3.0+
7 #
8 # This script is a helper to allow netdata collect tc data.
9 # tc output parsing has been implemented in C, inside netdata
profile/Makefile
+1
@@ -1,3 +1,4 @@
1 +# SPDX-License-Identifier: GPL-3.0+
2
3 COMMON_CFLAGS=-I ../src/ -I ../
4 PROFILE_CFLAGS=-O1 -ggdb -Wall -Wextra
profile/benchmark-dictionary.c
+1 -1
@@ -1,4 +1,4 @@
1 -
1 +/* SPDX-License-Identifier: GPL-3.0+ */
2 /*
3 * 1. build netdata (as normally)
4 * 2. cd profile/
profile/benchmark-line-parsing.c
+1
@@ -1,3 +1,4 @@
1 +/* SPDX-License-Identifier: GPL-3.0+ */
2 #include <stdio.h>
3 #include <inttypes.h>
4 #include <string.h>
profile/benchmark-procfile-parser.c
+1
@@ -1,3 +1,4 @@
1 +/* SPDX-License-Identifier: GPL-3.0+ */
2 #include "config.h"
3 #include "common.h"
4 #include "clocks.h"
profile/benchmark-registry.c
+1
@@ -1,3 +1,4 @@
1 +/* SPDX-License-Identifier: GPL-3.0+ */
2
3 /*
4 * compile with
profile/benchmark-strcmp.c
+1
@@ -1,3 +1,4 @@
1 +/* SPDX-License-Identifier: GPL-3.0+ */
2 #include <stdio.h>
3 #include <inttypes.h>
4 #include <string.h>
profile/statsd-stress.c
+1
@@ -1,3 +1,4 @@
1 +/* SPDX-License-Identifier: GPL-3.0+ */
2 #include <stdlib.h>
3 #include <arpa/inet.h>
4 #include <netinet/in.h>
profile/test-eval.c
+1
@@ -1,3 +1,4 @@
1 +/* SPDX-License-Identifier: GPL-3.0+ */
2
3 /*
4 * 1. build netdata (as normally)
python.d/Makefile.am
+1
@@ -1,3 +1,4 @@
1 +# SPDX-License-Identifier: GPL-3.0+
2 MAINTAINERCLEANFILES= $(srcdir)/Makefile.in
3 CLEANFILES = \
4 python-modules-installer.sh \
python.d/apache.chart.py
+1
@@ -1,6 +1,7 @@
1 # -*- coding: utf-8 -*-
2 # Description: apache netdata python.d module
3 # Author: Pawel Krupa (paulfantom)
4 +# SPDX-License-Identifier: GPL-3.0+
5
6 from bases.FrameworkServices.UrlService import UrlService
7
python.d/beanstalk.chart.py
+1
@@ -1,6 +1,7 @@
1 # -*- coding: utf-8 -*-
2 # Description: beanstalk netdata python.d module
3 # Author: l2isbad
4 +# SPDX-License-Identifier: GPL-3.0+
5
6 try:
7 import beanstalkc
python.d/bind_rndc.chart.py
+1
@@ -1,6 +1,7 @@
1 # -*- coding: utf-8 -*-
2 # Description: bind rndc netdata python.d module
3 # Author: l2isbad
4 +# SPDX-License-Identifier: GPL-3.0+
5
6 import os
7
python.d/ceph.chart.py
+1
@@ -1,6 +1,7 @@
1 # -*- coding: utf-8 -*-
2 # Description: ceph netdata python.d module
3 # Author: Luis Eduardo (lets00)
4 +# SPDX-License-Identifier: GPL-3.0+
5
6 try:
7 import rados
python.d/chrony.chart.py
+1
@@ -1,6 +1,7 @@
1 # -*- coding: utf-8 -*-
2 # Description: chrony netdata python.d module
3 # Author: Dominik Schloesser (domschl)
4 +# SPDX-License-Identifier: GPL-3.0+
5
6 from bases.FrameworkServices.ExecutableService import ExecutableService
7
python.d/couchdb.chart.py
+1
@@ -2,6 +2,7 @@
2 # Description: couchdb netdata python.d module
3 # Author: wohali <wohali@apache.org>
4 # Thanks to l2isbad for good examples :)
5 +# SPDX-License-Identifier: GPL-3.0+
6
7 from collections import namedtuple, defaultdict
8 from json import loads
python.d/cpufreq.chart.py
+1
@@ -1,6 +1,7 @@
1 # -*- coding: utf-8 -*-
2 # Description: cpufreq netdata python.d module
3 # Author: Pawel Krupa (paulfantom) and Steven Noonan (tycho)
4 +# SPDX-License-Identifier: GPL-3.0+
5
6 import glob
7 import os
python.d/cpuidle.chart.py
+1
@@ -1,6 +1,7 @@
1 # -*- coding: utf-8 -*-
2 # Description: cpuidle netdata python.d module
3 # Author: Steven Noonan (tycho)
4 +# SPDX-License-Identifier: GPL-3.0+
5
6 import glob
7 import os
python.d/dns_query_time.chart.py
+1
@@ -1,6 +1,7 @@
1 # -*- coding: utf-8 -*-
2 # Description: dns_query_time netdata python.d module
3 # Author: l2isbad
4 +# SPDX-License-Identifier: GPL-3.0+
5
6 from random import choice
7 from threading import Thread
python.d/dnsdist.chart.py
+1
@@ -1,4 +1,5 @@
1 # -*- coding: utf-8 -*-
2 +# SPDX-License-Identifier: GPL-3.0+
3 from json import loads
4 from bases.FrameworkServices.UrlService import UrlService
5
python.d/dovecot.chart.py
+1
@@ -1,6 +1,7 @@
1 # -*- coding: utf-8 -*-
2 # Description: dovecot netdata python.d module
3 # Author: Pawel Krupa (paulfantom)
4 +# SPDX-License-Identifier: GPL-3.0+
5
6 from bases.FrameworkServices.SocketService import SocketService
7
python.d/elasticsearch.chart.py
+1
@@ -1,6 +1,7 @@
1 # -*- coding: utf-8 -*-
2 # Description: elastic search node stats netdata python.d module
3 # Author: l2isbad
4 +# SPDX-License-Identifier: GPL-3.0+
5
6 from collections import namedtuple
7 from json import loads
python.d/example.chart.py
+1
@@ -1,6 +1,7 @@
1 # -*- coding: utf-8 -*-
2 # Description: example netdata python.d module
3 # Author: Pawel Krupa (paulfantom)
4 +# SPDX-License-Identifier: GPL-3.0+
5
6 from random import SystemRandom
7
python.d/exim.chart.py
+1
@@ -1,6 +1,7 @@
1 # -*- coding: utf-8 -*-
2 # Description: exim netdata python.d module
3 # Author: Pawel Krupa (paulfantom)
4 +# SPDX-License-Identifier: GPL-3.0+
5
6 from bases.FrameworkServices.ExecutableService import ExecutableService
7
python.d/fail2ban.chart.py
+1
@@ -1,6 +1,7 @@
1 # -*- coding: utf-8 -*-
2 # Description: fail2ban log netdata python.d module
3 # Author: l2isbad
4 +# SPDX-License-Identifier: GPL-3.0+
5
6 import bisect
7
python.d/freeradius.chart.py
+1
@@ -1,6 +1,7 @@
1 # -*- coding: utf-8 -*-
2 # Description: freeradius netdata python.d module
3 # Author: l2isbad
4 +# SPDX-License-Identifier: GPL-3.0+
5
6 from re import findall
7 from subprocess import Popen, PIPE
python.d/go_expvar.chart.py
+1
@@ -1,6 +1,7 @@
1 # -*- coding: utf-8 -*-
2 # Description: go_expvar netdata python.d module
3 # Author: Jan Kral (kralewitz)
4 +# SPDX-License-Identifier: GPL-3.0+
5
6 from __future__ import division
7 import json
python.d/haproxy.chart.py
+1
@@ -1,6 +1,7 @@
1 # -*- coding: utf-8 -*-
2 # Description: haproxy netdata python.d module
3 # Author: l2isbad, ktarasz
4 +# SPDX-License-Identifier: GPL-3.0+
5
6 from collections import defaultdict
7 from re import compile as re_compile
python.d/hddtemp.chart.py
+1
@@ -1,6 +1,7 @@
1 # -*- coding: utf-8 -*-
2 # Description: hddtemp netdata python.d module
3 # Author: Pawel Krupa (paulfantom)
4 +# SPDX-License-Identifier: GPL-3.0+
5
6
7 import os
python.d/httpcheck.chart.py
+1
@@ -1,6 +1,7 @@
1 # -*- coding: utf-8 -*-
2 # Description: http check netdata python.d module
3 # Original Author: ccremer (github.com/ccremer)
4 +# SPDX-License-Identifier: GPL-3.0+
5
6 import urllib3
7 import re
python.d/icecast.chart.py
+1
@@ -1,6 +1,7 @@
1 # -*- coding: utf-8 -*-
2 # Description: icecast netdata python.d module
3 # Author: Ilya Mashchenko (l2isbad)
4 +# SPDX-License-Identifier: GPL-3.0+
5
6 import json
7
python.d/ipfs.chart.py
+1
@@ -1,6 +1,7 @@
1 # -*- coding: utf-8 -*-
2 # Description: IPFS netdata python.d module
3 # Authors: Pawel Krupa (paulfantom), davidak
4 +# SPDX-License-Identifier: GPL-3.0+
5
6 import json
7
python.d/isc_dhcpd.chart.py
+1
@@ -1,6 +1,7 @@
1 # -*- coding: utf-8 -*-
2 # Description: isc dhcpd lease netdata python.d module
3 # Author: l2isbad
4 +# SPDX-License-Identifier: GPL-3.0+
5
6 import os
7 import re
python.d/mdstat.chart.py
+1
@@ -1,6 +1,7 @@
1 # -*- coding: utf-8 -*-
2 # Description: mdstat netdata python.d module
3 # Author: l2isbad
4 +# SPDX-License-Identifier: GPL-3.0+
5
6 import re
7
python.d/memcached.chart.py
+1
@@ -1,6 +1,7 @@
1 # -*- coding: utf-8 -*-
2 # Description: memcached netdata python.d module
3 # Author: Pawel Krupa (paulfantom)
4 +# SPDX-License-Identifier: GPL-3.0+
5
6 from bases.FrameworkServices.SocketService import SocketService
7
python.d/mongodb.chart.py
+1
@@ -1,6 +1,7 @@
1 # -*- coding: utf-8 -*-
2 # Description: mongodb netdata python.d module
3 # Author: l2isbad
4 +# SPDX-License-Identifier: GPL-3.0+
5
6 from copy import deepcopy
7 from datetime import datetime
python.d/mysql.chart.py
+1
@@ -1,6 +1,7 @@
1 # -*- coding: utf-8 -*-
2 # Description: MySQL netdata python.d module
3 # Author: Pawel Krupa (paulfantom)
4 +# SPDX-License-Identifier: GPL-3.0+
5
6 from bases.FrameworkServices.MySQLService import MySQLService
7
python.d/nginx.chart.py
+1
@@ -1,6 +1,7 @@
1 # -*- coding: utf-8 -*-
2 # Description: nginx netdata python.d module
3 # Author: Pawel Krupa (paulfantom)
4 +# SPDX-License-Identifier: GPL-3.0+
5
6 from bases.FrameworkServices.UrlService import UrlService
7
python.d/nginx_plus.chart.py
+1
@@ -1,6 +1,7 @@
1 # -*- coding: utf-8 -*-
2 # Description: nginx_plus netdata python.d module
3 # Author: Ilya Mashchenko (l2isbad)
4 +# SPDX-License-Identifier: GPL-3.0+
5
6 import re
7
python.d/nsd.chart.py
+1
@@ -1,6 +1,7 @@
1 # -*- coding: utf-8 -*-
2 # Description: NSD `nsd-control stats_noreset` netdata python.d module
3 # Author: <383c57 at gmail.com>
4 +# SPDX-License-Identifier: GPL-3.0+
5
6 import re
7
python.d/ntpd.chart.py
+1
@@ -2,6 +2,7 @@
2 # Description: ntpd netdata python.d module
3 # Author: Sven Mäder (rda0)
4 # Author: Ilya Mashchenko (l2isbad)
5 +# SPDX-License-Identifier: GPL-3.0+
6
7 import struct
8 import re
python.d/ovpn_status_log.chart.py
+1
@@ -1,6 +1,7 @@
1 # -*- coding: utf-8 -*-
2 # Description: openvpn status log netdata python.d module
3 # Author: l2isbad
4 +# SPDX-License-Identifier: GPL-3.0+
5
6 from re import compile as r_compile
7
python.d/phpfpm.chart.py
+1
@@ -1,6 +1,7 @@
1 # -*- coding: utf-8 -*-
2 # Description: PHP-FPM netdata python.d module
3 # Author: Pawel Krupa (paulfantom)
4 +# SPDX-License-Identifier: GPL-3.0+
5
6 import json
7 import re
python.d/portcheck.chart.py
+1
@@ -1,6 +1,7 @@
1 # -*- coding: utf-8 -*-
2 # Description: simple port check netdata python.d module
3 # Original Author: ccremer (github.com/ccremer)
4 +# SPDX-License-Identifier: GPL-3.0+
5
6 import socket
7
python.d/postfix.chart.py
+1
@@ -1,6 +1,7 @@
1 # -*- coding: utf-8 -*-
2 # Description: postfix netdata python.d module
3 # Author: Pawel Krupa (paulfantom)
4 +# SPDX-License-Identifier: GPL-3.0+
5
6 from bases.FrameworkServices.ExecutableService import ExecutableService
7
python.d/postgres.chart.py
+1
@@ -1,6 +1,7 @@
1 # -*- coding: utf-8 -*-
2 # Description: example netdata python.d module
3 # Authors: facetoe, dangtranhoang
4 +# SPDX-License-Identifier: GPL-3.0+
5
6 from copy import deepcopy
7
python.d/powerdns.chart.py
+1
@@ -1,6 +1,7 @@
1 # -*- coding: utf-8 -*-
2 # Description: powerdns netdata python.d module
3 # Author: l2isbad
4 +# SPDX-License-Identifier: GPL-3.0+
5
6 from json import loads
7
python.d/puppet.chart.py
+1
@@ -1,6 +1,7 @@
1 # -*- coding: utf-8 -*-
2 # Description: puppet netdata python.d module
3 # Author: Andrey Galkin <andrey@futoin.org> (andvgal)
4 +# SPDX-License-Identifier: GPL-3.0+
5 #---
6 # This module should work both with OpenSource and PE versions
7 # of PuppetServer and PuppetDB.
python.d/python-modules-installer.sh.in
+1
@@ -1,4 +1,5 @@
1 #!/usr/bin/env bash
2 +# SPDX-License-Identifier: GPL-3.0+
3
4 umask 022
5
python.d/python_modules/base.py
+1
@@ -1,5 +1,6 @@
1 # -*- coding: utf-8 -*-
2 # Description: backward compatibility with old version
3 +# SPDX-License-Identifier: GPL-3.0+
4
5 from bases.FrameworkServices.SimpleService import SimpleService
6 from bases.FrameworkServices.UrlService import UrlService
python.d/python_modules/bases/FrameworkServices/ExecutableService.py
+1
@@ -2,6 +2,7 @@
2 # Description:
3 # Author: Pawel Krupa (paulfantom)
4 # Author: Ilya Mashchenko (l2isbad)
5 +# SPDX-License-Identifier: GPL-3.0+
6
7 import os
8
python.d/python_modules/bases/FrameworkServices/LogService.py
+1
@@ -1,6 +1,7 @@
1 # -*- coding: utf-8 -*-
2 # Description:
3 # Author: Pawel Krupa (paulfantom)
4 +# SPDX-License-Identifier: GPL-3.0+
5
6 from glob import glob
7 import os
python.d/python_modules/bases/FrameworkServices/MySQLService.py
+1
@@ -1,6 +1,7 @@
1 # -*- coding: utf-8 -*-
2 # Description:
3 # Author: Ilya Mashchenko (l2isbad)
4 +# SPDX-License-Identifier: GPL-3.0+
5
6 from sys import exc_info
7
python.d/python_modules/bases/FrameworkServices/SimpleService.py
+1
@@ -2,6 +2,7 @@
2 # Description:
3 # Author: Pawel Krupa (paulfantom)
4 # Author: Ilya Mashchenko (l2isbad)
5 +# SPDX-License-Identifier: GPL-3.0+
6
7 from threading import Thread
8
python.d/python_modules/bases/FrameworkServices/SocketService.py
+1
@@ -1,6 +1,7 @@
1 # -*- coding: utf-8 -*-
2 # Description:
3 # Author: Pawel Krupa (paulfantom)
4 +# SPDX-License-Identifier: GPL-3.0+
5
6 import socket
7
python.d/python_modules/bases/FrameworkServices/UrlService.py
+1
@@ -2,6 +2,7 @@
2 # Description:
3 # Author: Pawel Krupa (paulfantom)
4 # Author: Ilya Mashchenko (l2isbad)
5 +# SPDX-License-Identifier: GPL-3.0+
6
7 import urllib3
8
python.d/python_modules/bases/charts.py
+1
@@ -1,6 +1,7 @@
1 # -*- coding: utf-8 -*-
2 # Description:
3 # Author: Ilya Mashchenko (l2isbad)
4 +# SPDX-License-Identifier: GPL-3.0+
5
6 from bases.collection import safe_print
7
python.d/python_modules/bases/collection.py
+1
@@ -1,6 +1,7 @@
1 # -*- coding: utf-8 -*-
2 # Description:
3 # Author: Ilya Mashchenko (l2isbad)
4 +# SPDX-License-Identifier: GPL-3.0+
5
6 import os
7
python.d/python_modules/bases/loaders.py
+1
@@ -1,6 +1,7 @@
1 # -*- coding: utf-8 -*-
2 # Description:
3 # Author: Ilya Mashchenko (l2isbad)
4 +# SPDX-License-Identifier: GPL-3.0+
5
6 import types
7 from sys import version_info
python.d/python_modules/bases/loggers.py
+1
@@ -1,6 +1,7 @@
1 # -*- coding: utf-8 -*-
2 # Description:
3 # Author: Ilya Mashchenko (l2isbad)
4 +# SPDX-License-Identifier: GPL-3.0+
5
6 import logging
7 import traceback
python.d/rabbitmq.chart.py
+1
@@ -1,6 +1,7 @@
1 # -*- coding: utf-8 -*-
2 # Description: rabbitmq netdata python.d module
3 # Author: l2isbad
4 +# SPDX-License-Identifier: GPL-3.0+
5
6 from collections import namedtuple
7 from json import loads
python.d/redis.chart.py
+1
@@ -1,6 +1,7 @@
1 # -*- coding: utf-8 -*-
2 # Description: redis netdata python.d module
3 # Author: Pawel Krupa (paulfantom)
4 +# SPDX-License-Identifier: GPL-3.0+
5
6 from bases.FrameworkServices.SocketService import SocketService
7
python.d/retroshare.chart.py
+1
@@ -1,6 +1,7 @@
1 # -*- coding: utf-8 -*-
2 # Description: RetroShare netdata python.d module
3 # Authors: sehraf
4 +# SPDX-License-Identifier: GPL-3.0+
5
6 import json
7
python.d/samba.chart.py
+1
@@ -1,6 +1,7 @@
1 # -*- coding: utf-8 -*-
2 # Description: samba netdata python.d module
3 # Author: Christopher Cox <chris_cox@endlessnow.com>
4 +# SPDX-License-Identifier: GPL-3.0+
5 #
6 # The netdata user needs to be able to be able to sudo the smbstatus program
7 # without password:
python.d/sensors.chart.py
+1
@@ -1,6 +1,7 @@
1 # -*- coding: utf-8 -*-
2 # Description: sensors netdata python.d plugin
3 # Author: Pawel Krupa (paulfantom)
4 +# SPDX-License-Identifier: GPL-3.0+
5
6 from bases.FrameworkServices.SimpleService import SimpleService
7 from third_party import lm_sensors as sensors
python.d/smartd_log.chart.py
+1
@@ -1,6 +1,7 @@
1 # -*- coding: utf-8 -*-
2 # Description: smart netdata python.d module
3 # Author: l2isbad, vorph1
4 +# SPDX-License-Identifier: GPL-3.0+
5
6 import os
7 import re
python.d/spigotmc.chart.py
+1
@@ -1,6 +1,7 @@
1 # -*- coding: utf-8 -*-
2 # Description: spigotmc netdata python.d module
3 # Author: Austin S. Hemmelgarn (Ferroin)
4 +# SPDX-License-Identifier: GPL-3.0+
5
6 import socket
7 import platform
python.d/springboot.chart.py
+1
@@ -1,6 +1,7 @@
1 # -*- coding: utf-8 -*-
2 # Description: tomcat netdata python.d module
3 # Author: Wing924
4 +# SPDX-License-Identifier: GPL-3.0+
5
6 import json
7 from bases.FrameworkServices.UrlService import UrlService
python.d/squid.chart.py
+1
@@ -1,6 +1,7 @@
1 # -*- coding: utf-8 -*-
2 # Description: squid netdata python.d module
3 # Author: Pawel Krupa (paulfantom)
4 +# SPDX-License-Identifier: GPL-3.0+
5
6 from bases.FrameworkServices.SocketService import SocketService
7
python.d/tomcat.chart.py
+1
@@ -1,6 +1,7 @@
1 # -*- coding: utf-8 -*-
2 # Description: tomcat netdata python.d module
3 # Author: Pawel Krupa (paulfantom)
4 +# SPDX-License-Identifier: GPL-3.0+
5
6 import xml.etree.ElementTree as ET
7
python.d/traefik.chart.py
+1
@@ -1,6 +1,7 @@
1 # -*- coding: utf-8 -*-
2 # Description: traefik netdata python.d module
3 # Author: Alexandre Menezes (@ale_menezes)
4 +# SPDX-License-Identifier: GPL-3.0+
5
6 from json import loads
7 from collections import defaultdict
python.d/unbound.chart.py
+1
@@ -1,6 +1,7 @@
1 # -*- coding: utf-8 -*-
2 # Description: unbound netdata python.d module
3 # Author: Austin S. Hemmelgarn (Ferroin)
4 +# SPDX-License-Identifier: GPL-3.0+
5
6 import os
7
python.d/varnish.chart.py
+1
@@ -1,6 +1,7 @@
1 # -*- coding: utf-8 -*-
2 # Description: varnish netdata python.d module
3 # Author: l2isbad
4 +# SPDX-License-Identifier: GPL-3.0+
5
6 import re
7
python.d/web_log.chart.py
+1
@@ -1,6 +1,7 @@
1 # -*- coding: utf-8 -*-
2 # Description: web log netdata python.d module
3 # Author: l2isbad
4 +# SPDX-License-Identifier: GPL-3.0+
5
6 import bisect
7 import re
src/adaptive_resortable_list.c
+1
@@ -1,3 +1,4 @@
1 +// SPDX-License-Identifier: GPL-3.0+
2 #include "adaptive_resortable_list.h"
3
4 // the default processor() of the ARL
src/adaptive_resortable_list.h
+1
@@ -1,3 +1,4 @@
1 +// SPDX-License-Identifier: GPL-3.0+
2 #ifndef NETDATA_ADAPTIVE_RESORTABLE_LIST_H
3 #define NETDATA_ADAPTIVE_RESORTABLE_LIST_H
4
src/appconfig.c
+1
@@ -1,3 +1,4 @@
1 +// SPDX-License-Identifier: GPL-3.0+
2 #include "common.h"
3
4 #define CONFIG_FILE_LINE_MAX ((CONFIG_MAX_NAME + CONFIG_MAX_VALUE + 1024) * 2)
src/appconfig.h
+1
@@ -1,3 +1,4 @@
1 +// SPDX-License-Identifier: GPL-3.0+
2 #ifndef NETDATA_CONFIG_H
3 #define NETDATA_CONFIG_H 1
4
src/apps_plugin.c
+1
@@ -1,3 +1,4 @@
1 +// SPDX-License-Identifier: GPL-3.0+
2
3 /*
4 * netdata apps.plugin
src/avl.c
+1
@@ -1,3 +1,4 @@
1 +// SPDX-License-Identifier: GPL-3.0+
2 #include "common.h"
3
4 /* ------------------------------------------------------------------------- */
src/avl.h
+1
@@ -1,3 +1,4 @@
1 +// SPDX-License-Identifier: GPL-3.0+
2
3 #ifndef _AVL_H
4 #define _AVL_H 1
src/backend_prometheus.c
+1
@@ -1,3 +1,4 @@
1 +// SPDX-License-Identifier: GPL-3.0+
2 #include "common.h"
3
4 // ----------------------------------------------------------------------------
src/backend_prometheus.h
+1
@@ -1,3 +1,4 @@
1 +// SPDX-License-Identifier: GPL-3.0+
2 //
3 // Created by costa on 09/07/17.
4 //
src/backends.c
+1
@@ -1,3 +1,4 @@
1 +// SPDX-License-Identifier: GPL-3.0+
2 #include "common.h"
3
4 // ----------------------------------------------------------------------------
src/backends.h
+1
@@ -1,3 +1,4 @@
1 +// SPDX-License-Identifier: GPL-3.0+
2 #ifndef NETDATA_BACKENDS_H
3 #define NETDATA_BACKENDS_H 1
4
src/cgroup-network.c
+1
@@ -1,3 +1,4 @@
1 +// SPDX-License-Identifier: GPL-3.0+
2 #include "common.h"
3 #include <libgen.h>
4
src/clocks.c
+1
@@ -1,3 +1,4 @@
1 +// SPDX-License-Identifier: GPL-3.0+
2 #include "common.h"
3
4 #ifndef HAVE_CLOCK_GETTIME
src/clocks.h
+1
@@ -1,3 +1,4 @@
1 +// SPDX-License-Identifier: GPL-3.0+
2 #ifndef NETDATA_CLOCKS_H
3 #define NETDATA_CLOCKS_H 1
4
src/common.c
+1
@@ -1,3 +1,4 @@
1 +// SPDX-License-Identifier: GPL-3.0+
2 #include "common.h"
3
4 #ifdef __APPLE__
src/common.h
+1
@@ -1,3 +1,4 @@
1 +// SPDX-License-Identifier: GPL-3.0+
2 #ifndef NETDATA_COMMON_H
3 #define NETDATA_COMMON_H 1
4
src/daemon.c
+1
@@ -1,3 +1,4 @@
1 +// SPDX-License-Identifier: GPL-3.0+
2 #include "common.h"
3 #include <sched.h>
4
src/daemon.h
+1
@@ -1,3 +1,4 @@
1 +// SPDX-License-Identifier: GPL-3.0+
2 #ifndef NETDATA_DAEMON_H
3 #define NETDATA_DAEMON_H 1
4
src/dictionary.c
+1
@@ -1,3 +1,4 @@
1 +// SPDX-License-Identifier: GPL-3.0+
2 #include "common.h"
3
4 // ----------------------------------------------------------------------------
src/dictionary.h
+1
@@ -1,3 +1,4 @@
1 +// SPDX-License-Identifier: GPL-3.0+
2 #ifndef NETDATA_DICTIONARY_H
3 #define NETDATA_DICTIONARY_H 1
4
src/eval.c
+1
@@ -1,3 +1,4 @@
1 +// SPDX-License-Identifier: GPL-3.0+
2 #include "common.h"
3
4 // ----------------------------------------------------------------------------
src/eval.h
+1
@@ -1,3 +1,4 @@
1 +// SPDX-License-Identifier: GPL-3.0+
2 #ifndef NETDATA_EVAL_H
3 #define NETDATA_EVAL_H
4
src/freebsd_devstat.c
+1
@@ -1,3 +1,4 @@
1 +// SPDX-License-Identifier: GPL-3.0+
2 #include "common.h"
3
4 #include <sys/devicestat.h>
src/freebsd_getifaddrs.c
+1
@@ -1,3 +1,4 @@
1 +// SPDX-License-Identifier: GPL-3.0+
2 #include "common.h"
3
4 #include <ifaddrs.h>
src/freebsd_getmntinfo.c
+1
@@ -1,3 +1,4 @@
1 +// SPDX-License-Identifier: GPL-3.0+
2 #include "common.h"
3
4 #include <sys/mount.h>
src/freebsd_ipfw.c
+1
@@ -1,3 +1,4 @@
1 +// SPDX-License-Identifier: GPL-3.0+
2 #include "common.h"
3
4 #include <netinet/ip_fw.h>
src/freebsd_kstat_zfs.c
+1
@@ -1,3 +1,4 @@
1 +// SPDX-License-Identifier: GPL-3.0+
2 #include "common.h"
3 #include "zfs_common.h"
4
src/freebsd_sysctl.c
+1
@@ -1,3 +1,4 @@
1 +// SPDX-License-Identifier: GPL-3.0+
2 #include "common.h"
3
4 #include <sys/vmmeter.h>
src/freeipmi_plugin.c
+1
@@ -1,3 +1,4 @@
1 +// SPDX-License-Identifier: GPL-3.0+
2 /*
3 * netdata freeipmi.plugin
4 * Copyright (C) 2017 Costa Tsaousis
src/global_statistics.c
+1
@@ -1,3 +1,4 @@
1 +// SPDX-License-Identifier: GPL-3.0+
2 #include "common.h"
3
4 volatile struct global_statistics global_statistics = {
src/global_statistics.h
+1
@@ -1,3 +1,4 @@
1 +// SPDX-License-Identifier: GPL-3.0+
2 #ifndef NETDATA_GLOBAL_STATISTICS_H
3 #define NETDATA_GLOBAL_STATISTICS_H 1
4
src/health.c
+1
@@ -1,3 +1,4 @@
1 +// SPDX-License-Identifier: GPL-3.0+
2 #define NETDATA_HEALTH_INTERNALS
3 #include "common.h"
4
src/health.h
+1
@@ -1,3 +1,4 @@
1 +// SPDX-License-Identifier: GPL-3.0+
2 #ifndef NETDATA_HEALTH_H
3 #define NETDATA_HEALTH_H
4
src/health_config.c
+1
@@ -1,3 +1,4 @@
1 +// SPDX-License-Identifier: GPL-3.0+
2 #define NETDATA_HEALTH_INTERNALS
3 #include "common.h"
4
src/health_json.c
+1
@@ -1,3 +1,4 @@
1 +// SPDX-License-Identifier: GPL-3.0+
2 #define NETDATA_HEALTH_INTERNALS
3 #include "common.h"
4
src/health_log.c
+1
@@ -1,3 +1,4 @@
1 +// SPDX-License-Identifier: GPL-3.0+
2 #define NETDATA_HEALTH_INTERNALS
3 #include "common.h"
4
src/inlined.h
+1
@@ -1,3 +1,4 @@
1 +// SPDX-License-Identifier: GPL-3.0+
2 #ifndef NETDATA_INLINED_H
3 #define NETDATA_INLINED_H
4
src/ipc.c
+1
@@ -1,3 +1,4 @@
1 +// SPDX-License-Identifier: GPL-3.0+
2 #include "common.h"
3
4 #include <sys/sem.h>
src/ipc.h
+1
@@ -1,3 +1,4 @@
1 +// SPDX-License-Identifier: GPL-3.0+
2 #ifndef NETDATA_PLUGIN_IPC_H
3 #define NETDATA_PLUGIN_IPC_H 1
4
src/locks.c
+1
@@ -1,3 +1,4 @@
1 +// SPDX-License-Identifier: GPL-3.0+
2 #include "common.h"
3
4 // ----------------------------------------------------------------------------
src/locks.h
+1
@@ -1,3 +1,4 @@
1 +// SPDX-License-Identifier: GPL-3.0+
2 #ifndef NETDATA_LOCKS_H
3 #define NETDATA_LOCKS_H
4
src/log.c
+1
@@ -1,3 +1,4 @@
1 +// SPDX-License-Identifier: GPL-3.0+
2 #include "common.h"
3
4 int web_server_is_multithreaded = 1;
src/log.h
+1
@@ -1,3 +1,4 @@
1 +// SPDX-License-Identifier: GPL-3.0+
2 #ifndef NETDATA_LOG_H
3 #define NETDATA_LOG_H 1
4
src/macos_fw.c
+1
@@ -1,3 +1,4 @@
1 +// SPDX-License-Identifier: GPL-3.0+
2 #include "common.h"
3 #include <CoreFoundation/CoreFoundation.h>
4 #include <IOKit/IOKitLib.h>
src/macos_mach_smi.c
+1
@@ -1,3 +1,4 @@
1 +// SPDX-License-Identifier: GPL-3.0+
2 #include "common.h"
3 #include <mach/mach.h>
4
src/macos_sysctl.c
+1
@@ -1,3 +1,4 @@
1 +// SPDX-License-Identifier: GPL-3.0+
2 #include "common.h"
3 #include <Availability.h>
4 #include <sys/sysctl.h>
src/main.c
+1
@@ -1,3 +1,4 @@
1 +// SPDX-License-Identifier: GPL-3.0+
2 #include "common.h"
3
4 extern void *cgroups_main(void *ptr);
src/main.h
+1
@@ -1,3 +1,4 @@
1 +// SPDX-License-Identifier: GPL-3.0+
2 #ifndef NETDATA_MAIN_H
3 #define NETDATA_MAIN_H 1
4
src/plugin_checks.c
+1
@@ -1,3 +1,4 @@
1 +// SPDX-License-Identifier: GPL-3.0+
2 #include "common.h"
3
4 #ifdef NETDATA_INTERNAL_CHECKS
src/plugin_checks.h
+1
@@ -1,3 +1,4 @@
1 +// SPDX-License-Identifier: GPL-3.0+
2 #ifndef NETDATA_PLUGIN_CHECKS_H
3 #define NETDATA_PLUGIN_CHECKS_H 1
4
src/plugin_freebsd.c
+1
@@ -1,3 +1,4 @@
1 +// SPDX-License-Identifier: GPL-3.0+
2 #include "common.h"
3
4 static struct freebsd_module {
src/plugin_freebsd.h
+1
@@ -1,3 +1,4 @@
1 +// SPDX-License-Identifier: GPL-3.0+
2 #ifndef NETDATA_PLUGIN_FREEBSD_H
3 #define NETDATA_PLUGIN_FREEBSD_H 1
4
src/plugin_idlejitter.c
+1
@@ -1,3 +1,4 @@
1 +// SPDX-License-Identifier: GPL-3.0+
2 #include "common.h"
3
4 #define CPU_IDLEJITTER_SLEEP_TIME_MS 20
src/plugin_idlejitter.h
+1
@@ -1,3 +1,4 @@
1 +// SPDX-License-Identifier: GPL-3.0+
2 #ifndef NETDATA_PLUGIN_IDLEJITTER_H
3 #define NETDATA_PLUGIN_IDLEJITTER_H 1
4
src/plugin_macos.c
+1
@@ -1,3 +1,4 @@
1 +// SPDX-License-Identifier: GPL-3.0+
2 #include "common.h"
3
4 static void macos_main_cleanup(void *ptr) {
src/plugin_macos.h
+1
@@ -1,3 +1,4 @@
1 +// SPDX-License-Identifier: GPL-3.0+
2 #ifndef NETDATA_PLUGIN_MACOS_H
3 #define NETDATA_PLUGIN_MACOS_H 1
4
src/plugin_nfacct.c
+1
@@ -1,3 +1,4 @@
1 +// SPDX-License-Identifier: GPL-3.0+
2 #include "common.h"
3
4 #ifdef INTERNAL_PLUGIN_NFACCT
src/plugin_nfacct.h
+1
@@ -1,3 +1,4 @@
1 +// SPDX-License-Identifier: GPL-3.0+
2 #ifndef NETDATA_NFACCT_H
3 #define NETDATA_NFACCT_H 1
4
src/plugin_proc.c
+1
@@ -1,3 +1,4 @@
1 +// SPDX-License-Identifier: GPL-3.0+
2 #include "common.h"
3
4 static struct proc_module {
src/plugin_proc.h
+1
@@ -1,3 +1,4 @@
1 +// SPDX-License-Identifier: GPL-3.0+
2 #ifndef NETDATA_PLUGIN_PROC_H
3 #define NETDATA_PLUGIN_PROC_H 1
4
src/plugin_proc_diskspace.c
+1
@@ -1,3 +1,4 @@
1 +// SPDX-License-Identifier: GPL-3.0+
2 #include "common.h"
3
4 #define DELAULT_EXCLUDED_PATHS "/proc/* /sys/* /var/run/user/* /run/user/* /snap/* /var/lib/docker/*"
src/plugin_proc_diskspace.h
+1
@@ -1,3 +1,4 @@
1 +// SPDX-License-Identifier: GPL-3.0+
2 #ifndef NETDATA_PLUGIN_PROC_DISKSPACE_H
3 #define NETDATA_PLUGIN_PROC_DISKSPACE_H
4
src/plugin_tc.c
+1
@@ -1,3 +1,4 @@
1 +// SPDX-License-Identifier: GPL-3.0+
2 #include "common.h"
3
4 #define RRD_TYPE_TC "tc"
src/plugin_tc.h
+1
@@ -1,3 +1,4 @@
1 +// SPDX-License-Identifier: GPL-3.0+
2 #ifndef NETDATA_PLUGIN_TC_H
3 #define NETDATA_PLUGIN_TC_H 1
4
src/plugins_d.c
+1
@@ -1,3 +1,4 @@
1 +// SPDX-License-Identifier: GPL-3.0+
2 #include "common.h"
3
4 char *plugin_directories[PLUGINSD_MAX_DIRECTORIES] = { NULL };
src/plugins_d.h
+1
@@ -1,3 +1,4 @@
1 +// SPDX-License-Identifier: GPL-3.0+
2 #ifndef NETDATA_PLUGINS_D_H
3 #define NETDATA_PLUGINS_D_H 1
4
src/popen.c
+1
@@ -1,3 +1,4 @@
1 +// SPDX-License-Identifier: GPL-3.0+
2 #include "common.h"
3
4 /*
src/popen.h
+1
@@ -1,3 +1,4 @@
1 +// SPDX-License-Identifier: GPL-3.0+
2 #ifndef NETDATA_POPEN_H
3 #define NETDATA_POPEN_H 1
4
src/proc_diskstats.c
+1
@@ -1,3 +1,4 @@
1 +// SPDX-License-Identifier: GPL-3.0+
2 #include "common.h"
3
4 #define RRD_TYPE_DISK "disk"
src/proc_interrupts.c
+1
@@ -1,3 +1,4 @@
1 +// SPDX-License-Identifier: GPL-3.0+
2 #include "common.h"
3
4 #define MAX_INTERRUPT_NAME 50
src/proc_loadavg.c
+1
@@ -1,3 +1,4 @@
1 +// SPDX-License-Identifier: GPL-3.0+
2 #include "common.h"
3
4 // linux calculates this once every 5 seconds
src/proc_meminfo.c
+1
@@ -1,3 +1,4 @@
1 +// SPDX-License-Identifier: GPL-3.0+
2 #include "common.h"
3
4 int do_proc_meminfo(int update_every, usec_t dt) {
src/proc_net_dev.c
+1
@@ -1,3 +1,4 @@
1 +// SPDX-License-Identifier: GPL-3.0+
2 #include "common.h"
3
4 // ----------------------------------------------------------------------------
src/proc_net_ip_vs_stats.c
+1
@@ -1,3 +1,4 @@
1 +// SPDX-License-Identifier: GPL-3.0+
2 #include "common.h"
3
4 #define RRD_TYPE_NET_IPVS "ipvs"
src/proc_net_netstat.c
+1
@@ -1,3 +1,4 @@
1 +// SPDX-License-Identifier: GPL-3.0+
2 #include "common.h"
3
4 unsigned long long tcpext_TCPSynRetrans;
src/proc_net_rpc_nfs.c
+1
@@ -1,3 +1,4 @@
1 +// SPDX-License-Identifier: GPL-3.0+
2 #include "common.h"
3
4 struct nfs_procs {
src/proc_net_rpc_nfsd.c
+1
@@ -1,3 +1,4 @@
1 +// SPDX-License-Identifier: GPL-3.0+
2 #include "common.h"
3
4 struct nfsd_procs {
src/proc_net_sctp_snmp.c
+1
@@ -1,3 +1,4 @@
1 +// SPDX-License-Identifier: GPL-3.0+
2 #include "common.h"
3
4 int do_proc_net_sctp_snmp(int update_every, usec_t dt) {
src/proc_net_snmp.c
+1
@@ -1,3 +1,4 @@
1 +// SPDX-License-Identifier: GPL-3.0+
2 #include "common.h"
3
4 #define RRD_TYPE_NET_SNMP "ipv4"
src/proc_net_snmp6.c
+1
@@ -1,3 +1,4 @@
1 +// SPDX-License-Identifier: GPL-3.0+
2 #include "common.h"
3
4 #define RRD_TYPE_NET_SNMP6 "ipv6"
src/proc_net_sockstat.c
+1
@@ -1,3 +1,4 @@
1 +// SPDX-License-Identifier: GPL-3.0+
2 #include "common.h"
3
4 static struct proc_net_sockstat {
src/proc_net_sockstat6.c
+1
@@ -1,3 +1,4 @@
1 +// SPDX-License-Identifier: GPL-3.0+
2 #include "common.h"
3
4 static struct proc_net_sockstat6 {
src/proc_net_softnet_stat.c
+1
@@ -1,3 +1,4 @@
1 +// SPDX-License-Identifier: GPL-3.0+
2 #include "common.h"
3
4 static inline char *softnet_column_name(size_t column) {
src/proc_net_stat_conntrack.c
+1
@@ -1,3 +1,4 @@
1 +// SPDX-License-Identifier: GPL-3.0+
2 #include "common.h"
3
4 #define RRD_TYPE_NET_STAT_NETFILTER "netfilter"
src/proc_net_stat_synproxy.c
+1
@@ -1,3 +1,4 @@
1 +// SPDX-License-Identifier: GPL-3.0+
2 #include "common.h"
3
4 #define RRD_TYPE_NET_STAT_NETFILTER "netfilter"
src/proc_self_mountinfo.c
+1
@@ -1,3 +1,4 @@
1 +// SPDX-License-Identifier: GPL-3.0+
2 #include "common.h"
3
4 // ----------------------------------------------------------------------------
src/proc_self_mountinfo.h
+1
@@ -1,3 +1,4 @@
1 +// SPDX-License-Identifier: GPL-3.0+
2 #ifndef NETDATA_PROC_SELF_MOUNTINFO_H
3 #define NETDATA_PROC_SELF_MOUNTINFO_H 1
4
src/proc_softirqs.c
+1
@@ -1,3 +1,4 @@
1 +// SPDX-License-Identifier: GPL-3.0+
2 #include "common.h"
3
4 #define MAX_INTERRUPT_NAME 50
src/proc_spl_kstat_zfs.c
+1
@@ -1,3 +1,4 @@
1 +// SPDX-License-Identifier: GPL-3.0+
2 #include "common.h"
3 #include "zfs_common.h"
4
src/proc_stat.c
+1
@@ -1,3 +1,4 @@
1 +// SPDX-License-Identifier: GPL-3.0+
2 #include "common.h"
3
4 struct per_core_single_number_file {
src/proc_sys_kernel_random_entropy_avail.c
+1
@@ -1,3 +1,4 @@
1 +// SPDX-License-Identifier: GPL-3.0+
2 #include "common.h"
3
4 int do_proc_sys_kernel_random_entropy_avail(int update_every, usec_t dt) {
src/proc_uptime.c
+1
@@ -1,3 +1,4 @@
1 +// SPDX-License-Identifier: GPL-3.0+
2 #include "common.h"
3
4 static inline collected_number uptime_from_boottime(void) {
src/proc_vmstat.c
+1
@@ -1,3 +1,4 @@
1 +// SPDX-License-Identifier: GPL-3.0+
2 #include "common.h"
3
4 int do_proc_vmstat(int update_every, usec_t dt) {
src/procfile.c
+1
@@ -1,3 +1,4 @@
1 +// SPDX-License-Identifier: GPL-3.0+
2 #include "common.h"
3 #include "procfile.h"
4
src/procfile.h
+1
@@ -1,3 +1,4 @@
1 +// SPDX-License-Identifier: GPL-3.0+
2 /*
3 * procfile is a library for reading kernel files from /proc
4 *
src/registry.c
+1
@@ -1,3 +1,4 @@
1 +// SPDX-License-Identifier: GPL-3.0+
2 #include "common.h"
3
4 #include "registry_internals.h"
src/registry.h
+1
@@ -1,3 +1,4 @@
1 +// SPDX-License-Identifier: GPL-3.0+
2 /*
3 * netdata registry
4 *
src/registry_db.c
+1
@@ -1,3 +1,4 @@
1 +// SPDX-License-Identifier: GPL-3.0+
2 #include "registry_internals.h"
3
4 int registry_db_should_be_saved(void) {
src/registry_init.c
+1
@@ -1,3 +1,4 @@
1 +// SPDX-License-Identifier: GPL-3.0+
2 #include "registry_internals.h"
3
4 int registry_init(void) {
src/registry_internals.c
+1
@@ -1,3 +1,4 @@
1 +// SPDX-License-Identifier: GPL-3.0+
2 #include "registry_internals.h"
3
4 struct registry registry;
src/registry_internals.h
+1
@@ -1,3 +1,4 @@
1 +// SPDX-License-Identifier: GPL-3.0+
2 #include "common.h"
3
4 #ifndef NETDATA_REGISTRY_INTERNALS_H_H
src/registry_log.c
+1
@@ -1,3 +1,4 @@
1 +// SPDX-License-Identifier: GPL-3.0+
2 #include "registry_internals.h"
3
4 void registry_log(char action, REGISTRY_PERSON *p, REGISTRY_MACHINE *m, REGISTRY_URL *u, char *name) {
src/registry_machine.c
+1
@@ -1,3 +1,4 @@
1 +// SPDX-License-Identifier: GPL-3.0+
2 #include "registry_internals.h"
3
4 // ----------------------------------------------------------------------------
src/registry_machine.h
+1
@@ -1,3 +1,4 @@
1 +// SPDX-License-Identifier: GPL-3.0+
2 #ifndef NETDATA_REGISTRY_MACHINE_H
3 #define NETDATA_REGISTRY_MACHINE_H
4
src/registry_person.c
+1
@@ -1,3 +1,4 @@
1 +// SPDX-License-Identifier: GPL-3.0+
2 #include "registry_internals.h"
3
4 // ----------------------------------------------------------------------------
src/registry_person.h
+1
@@ -1,3 +1,4 @@
1 +// SPDX-License-Identifier: GPL-3.0+
2 #ifndef NETDATA_REGISTRY_PERSON_H
3 #define NETDATA_REGISTRY_PERSON_H
4
src/registry_url.c
+1
@@ -1,3 +1,4 @@
1 +// SPDX-License-Identifier: GPL-3.0+
2 #include "registry_internals.h"
3
4 // ----------------------------------------------------------------------------
src/registry_url.h
+1
@@ -1,3 +1,4 @@
1 +// SPDX-License-Identifier: GPL-3.0+
2 #ifndef NETDATA_REGISTRY_URL_H
3 #define NETDATA_REGISTRY_URL_H
4
src/rrd.c
+1
@@ -1,3 +1,4 @@
1 +// SPDX-License-Identifier: GPL-3.0+
2 #define NETDATA_RRD_INTERNALS 1
3 #include "common.h"
4
src/rrd.h
+1
@@ -1,3 +1,4 @@
1 +// SPDX-License-Identifier: GPL-3.0+
2 #ifndef NETDATA_RRD_H
3 #define NETDATA_RRD_H 1
4
src/rrd2json.c
+1
@@ -1,3 +1,4 @@
1 +// SPDX-License-Identifier: GPL-3.0+
2 #include "common.h"
3
4 void rrd_stats_api_v1_chart_with_data(RRDSET *st, BUFFER *wb, size_t *dimensions_count, size_t *memory_used)
src/rrd2json.h
+1
@@ -1,3 +1,4 @@
1 +// SPDX-License-Identifier: GPL-3.0+
2 #ifndef NETDATA_RRD2JSON_H
3 #define NETDATA_RRD2JSON_H 1
4
src/rrd2json_api_old.c
+1
@@ -1,3 +1,4 @@
1 +// SPDX-License-Identifier: GPL-3.0+
2 #include "common.h"
3
4 unsigned long rrdset_info2json_api_old(RRDSET *st, char *options, BUFFER *wb) {
src/rrd2json_api_old.h
+1
@@ -1,3 +1,4 @@
1 +// SPDX-License-Identifier: GPL-3.0+
2 #ifndef NETDATA_RRD2JSON_API_OLD_H
3 #define NETDATA_RRD2JSON_API_OLD_H
4
src/rrdcalc.c
+1
@@ -1,3 +1,4 @@
1 +// SPDX-License-Identifier: GPL-3.0+
2 #define NETDATA_HEALTH_INTERNALS
3 #include "common.h"
4
src/rrdcalctemplate.c
+1
@@ -1,3 +1,4 @@
1 +// SPDX-License-Identifier: GPL-3.0+
2 #define NETDATA_HEALTH_INTERNALS
3 #include "common.h"
4
src/rrddim.c
+1
@@ -1,3 +1,4 @@
1 +// SPDX-License-Identifier: GPL-3.0+
2 #define NETDATA_RRD_INTERNALS 1
3 #include "common.h"
4
src/rrddimvar.c
+1
@@ -1,3 +1,4 @@
1 +// SPDX-License-Identifier: GPL-3.0+
2 #define NETDATA_HEALTH_INTERNALS
3 #include "common.h"
4
src/rrdfamily.c
+1
@@ -1,3 +1,4 @@
1 +// SPDX-License-Identifier: GPL-3.0+
2 #define NETDATA_RRD_INTERNALS 1
3 #include "common.h"
4
src/rrdhost.c
+1
@@ -1,3 +1,4 @@
1 +// SPDX-License-Identifier: GPL-3.0+
2 #define NETDATA_RRD_INTERNALS 1
3 #include "common.h"
4
src/rrdpush.c
+1
@@ -1,3 +1,4 @@
1 +// SPDX-License-Identifier: GPL-3.0+
2 #include "common.h"
3
4 /*
src/rrdpush.h
+1
@@ -1,3 +1,4 @@
1 +// SPDX-License-Identifier: GPL-3.0+
2 #ifndef NETDATA_RRDPUSH_H
3 #define NETDATA_RRDPUSH_H
4
src/rrdset.c
+1
@@ -1,3 +1,4 @@
1 +// SPDX-License-Identifier: GPL-3.0+
2 #define NETDATA_RRD_INTERNALS 1
3 #include "common.h"
4
src/rrdsetvar.c
+1
@@ -1,3 +1,4 @@
1 +// SPDX-License-Identifier: GPL-3.0+
2 #define NETDATA_HEALTH_INTERNALS
3 #include "common.h"
4
src/rrdvar.c
+1
@@ -1,3 +1,4 @@
1 +// SPDX-License-Identifier: GPL-3.0+
2 #define NETDATA_HEALTH_INTERNALS
3 #include "common.h"
4
src/signals.c
+1
@@ -1,3 +1,4 @@
1 +// SPDX-License-Identifier: GPL-3.0+
2 #include "common.h"
3
4 typedef enum signal_action {
src/signals.h
+1
@@ -1,3 +1,4 @@
1 +// SPDX-License-Identifier: GPL-3.0+
2 #ifndef NETDATA_SIGNALS_H
3 #define NETDATA_SIGNALS_H
4
src/simple_pattern.c
+1
@@ -1,3 +1,4 @@
1 +// SPDX-License-Identifier: GPL-3.0+
2 #include "common.h"
3
4 struct simple_pattern {
src/simple_pattern.h
+1
@@ -1,3 +1,4 @@
1 +// SPDX-License-Identifier: GPL-3.0+
2 #ifndef NETDATA_SIMPLE_PATTERN_H
3 #define NETDATA_SIMPLE_PATTERN_H
4
src/socket.c
+1
@@ -1,3 +1,4 @@
1 +// SPDX-License-Identifier: GPL-3.0+
2 #include "common.h"
3
4 // --------------------------------------------------------------------------------------------------------------------
src/socket.h
+1
@@ -1,3 +1,4 @@
1 +// SPDX-License-Identifier: GPL-3.0+
2 #ifndef NETDATA_SOCKET_H
3 #define NETDATA_SOCKET_H
4
src/statistical.c
+1
@@ -1,3 +1,4 @@
1 +// SPDX-License-Identifier: GPL-3.0+
2 #include "common.h"
3
4 // --------------------------------------------------------------------------------------------------------------------
src/statistical.h
+1
@@ -1,3 +1,4 @@
1 +// SPDX-License-Identifier: GPL-3.0+
2 #ifndef NETDATA_STATISTICAL_H
3 #define NETDATA_STATISTICAL_H
4
src/statsd.c
+1
@@ -1,3 +1,4 @@
1 +// SPDX-License-Identifier: GPL-3.0+
2 #include "common.h"
3
4 #define STATSD_CHART_PREFIX "statsd"
src/statsd.h
+1
@@ -1,3 +1,4 @@
1 +// SPDX-License-Identifier: GPL-3.0+
2 #ifndef NETDATA_STATSD_H
3 #define NETDATA_STATSD_H
4
src/storage_number.c
+1
@@ -1,3 +1,4 @@
1 +// SPDX-License-Identifier: GPL-3.0+
2 #include "common.h"
3
4 storage_number pack_storage_number(calculated_number value, uint32_t flags)
src/storage_number.h
+1
@@ -1,3 +1,4 @@
1 +// SPDX-License-Identifier: GPL-3.0+
2 #ifndef NETDATA_STORAGE_NUMBER_H
3 #define NETDATA_STORAGE_NUMBER_H
4
src/sys_devices_system_edac_mc.c
+1
@@ -1,3 +1,4 @@
1 +// SPDX-License-Identifier: GPL-3.0+
2 #include "common.h"
3
4 struct mc {
src/sys_devices_system_node.c
+1
@@ -1,3 +1,4 @@
1 +// SPDX-License-Identifier: GPL-3.0+
2 #include "common.h"
3
4 struct node {
src/sys_fs_btrfs.c
+1
@@ -1,3 +1,4 @@
1 +// SPDX-License-Identifier: GPL-3.0+
2 #include "common.h"
3
4 typedef struct btrfs_disk {
src/sys_fs_cgroup.c
+1
@@ -1,3 +1,4 @@
1 +// SPDX-License-Identifier: GPL-3.0+
2 #include "common.h"
3
4 // ----------------------------------------------------------------------------
src/sys_kernel_mm_ksm.c
+1
@@ -1,3 +1,4 @@
1 +// SPDX-License-Identifier: GPL-3.0+
2 #include "common.h"
3
4 typedef struct ksm_name_value {
src/threads.c
+1
@@ -1,3 +1,4 @@
1 +// SPDX-License-Identifier: GPL-3.0+
2 #include "common.h"
3
4 static size_t default_stacksize = 0, wanted_stacksize = 0;
src/threads.h
+1
@@ -1,3 +1,4 @@
1 +// SPDX-License-Identifier: GPL-3.0+
2 #ifndef NETDATA_THREADS_H
3 #define NETDATA_THREADS_H
4
src/unit_test.c
+1
@@ -1,3 +1,4 @@
1 +// SPDX-License-Identifier: GPL-3.0+
2 #include "common.h"
3
4 static int check_number_printing(void) {
src/unit_test.h
+1
@@ -1,3 +1,4 @@
1 +// SPDX-License-Identifier: GPL-3.0+
2 #ifndef NETDATA_UNIT_TEST_H
3 #define NETDATA_UNIT_TEST_H 1
4
src/url.c
+1
@@ -1,3 +1,4 @@
1 +// SPDX-License-Identifier: GPL-3.0+
2 #include "common.h"
3
4 // ----------------------------------------------------------------------------
src/url.h
+1
@@ -1,3 +1,4 @@
1 +// SPDX-License-Identifier: GPL-3.0+
2 #ifndef NETDATA_URL_H
3 #define NETDATA_URL_H 1
4
src/web_api_old.c
+1
@@ -1,3 +1,4 @@
1 +// SPDX-License-Identifier: GPL-3.0+
2 #include "common.h"
3
4 int web_client_api_old_data_request(RRDHOST *host, struct web_client *w, char *url, int datasource_type) {
src/web_api_old.h
+1
@@ -1,3 +1,4 @@
1 +// SPDX-License-Identifier: GPL-3.0+
2 #ifndef NETDATA_WEB_API_OLD_H
3 #define NETDATA_WEB_API_OLD_H
4
src/web_api_v1.c
+1
@@ -1,3 +1,4 @@
1 +// SPDX-License-Identifier: GPL-3.0+
2 #include "common.h"
3
4 static struct {
src/web_api_v1.h
+1
@@ -1,3 +1,4 @@
1 +// SPDX-License-Identifier: GPL-3.0+
2 #ifndef NETDATA_WEB_API_V1_H
3 #define NETDATA_WEB_API_V1_H
4
src/web_buffer.c
+1
@@ -1,3 +1,4 @@
1 +// SPDX-License-Identifier: GPL-3.0+
2 #include "common.h"
3
4 #define BUFFER_OVERFLOW_EOF "EOF"
src/web_buffer.h
+1
@@ -1,3 +1,4 @@
1 +// SPDX-License-Identifier: GPL-3.0+
2 #ifndef NETDATA_WEB_BUFFER_H
3 #define NETDATA_WEB_BUFFER_H 1
4
src/web_buffer_svg.c
+1
@@ -1,3 +1,4 @@
1 +// SPDX-License-Identifier: GPL-3.0+
2 #include "common.h"
3
4 #define BADGE_HORIZONTAL_PADDING 4
src/web_buffer_svg.h
+1
@@ -1,3 +1,4 @@
1 +// SPDX-License-Identifier: GPL-3.0+
2 #ifndef NETDATA_WEB_BUFFER_SVG_H
3 #define NETDATA_WEB_BUFFER_SVG_H 1
4
src/web_client.c
+1
@@ -1,3 +1,4 @@
1 +// SPDX-License-Identifier: GPL-3.0+
2 #include "common.h"
3
4 // this is an async I/O implementation of the web server request parser
src/web_client.h
+1
@@ -1,3 +1,4 @@
1 +// SPDX-License-Identifier: GPL-3.0+
2 #ifndef NETDATA_WEB_CLIENT_H
3 #define NETDATA_WEB_CLIENT_H 1
4
src/web_server.c
+1
@@ -1,3 +1,4 @@
1 +// SPDX-License-Identifier: GPL-3.0+
2 #include "common.h"
3
4 // this file includes 3 web servers:
src/web_server.h
+1
@@ -1,3 +1,4 @@
1 +// SPDX-License-Identifier: GPL-3.0+
2 #ifndef NETDATA_WEB_SERVER_H
3 #define NETDATA_WEB_SERVER_H 1
4
src/zfs_common.c
+1
@@ -1,3 +1,4 @@
1 +// SPDX-License-Identifier: GPL-3.0+
2 #include "common.h"
3 #include "zfs_common.h"
4
src/zfs_common.h
+1
@@ -1,3 +1,4 @@
1 +// SPDX-License-Identifier: GPL-3.0+
2 #ifndef NETDATA_ZFS_COMMON_H
3 #define NETDATA_ZFS_COMMON_H
4
system/Makefile.am
+1
@@ -1,5 +1,6 @@
1 #
2 # Copyright (C) 2015 Alon Bar-Lev <alon.barlev@gmail.com>
3 +# SPDX-License-Identifier: GPL-3.0+
4 #
5 MAINTAINERCLEANFILES= $(srcdir)/Makefile.in
6 CLEANFILES = \
system/netdata-freebsd.in
+1
@@ -1,4 +1,5 @@
1 #!/bin/sh
2 +# SPDX-License-Identifier: GPL-3.0+
3
4 . /etc/rc.subr
5
system/netdata-init-d.in
+1
@@ -1,4 +1,5 @@
1 #!/bin/sh
2 +# SPDX-License-Identifier: GPL-3.0+
3 #
4 # netdata Real-time performance monitoring, done right
5 # chkconfig: 345 99 01
system/netdata-lsb.in
+1
@@ -1,4 +1,5 @@
1 #!/bin/bash
2 +# SPDX-License-Identifier: GPL-3.0+
3 #
4 ### BEGIN INIT INFO
5 # Provides: netdata
system/netdata-openrc.in
+1
@@ -1,4 +1,5 @@
1 #!/sbin/openrc-run
2 +# SPDX-License-Identifier: GPL-3.0+
3
4 # The user netdata is configured to run as.
5 # If you edit its configuration file to set a different
system/netdata.plist.in
+1
@@ -1,5 +1,6 @@
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3 +<!-- SPDX-License-Identifier: GPL-3.0+ -->
4 <plist version="1.0">
5 <dict>
6 <key>Label</key>
system/netdata.service.in
+1
@@ -1,3 +1,4 @@
1 +# SPDX-License-Identifier: GPL-3.0+
2 [Unit]
3 Description=Real time performance monitoring
4 After=network.target httpd.service squid.service nfs-server.service mysqld.service mysql.service named.service postfix.service chronyd.service
tests/Makefile.am
+1
@@ -1,3 +1,4 @@
1 +# SPDX-License-Identifier: GPL-3.0+
2 MAINTAINERCLEANFILES= $(srcdir)/Makefile.in
3
4 dist_noinst_DATA = \
tests/node.d/fronius.chart.spec.js
+2 -1
@@ -1,4 +1,5 @@
1 "use strict";
2 +// SPDX-License-Identifier: GPL-3.0+
3
4 var netdata = require("../../node.d/node_modules/netdata");
5 // remember: subject will be a singleton!
@@ -158,4 +159,4 @@ describe("fronius chart creation", function () {
159
160 expect(first).toBe(second);
161 });
161 -});
\ No newline at end of file
162 +});
tests/node.d/fronius.parse.spec.js
+2 -1
@@ -1,4 +1,5 @@
1 "use strict";
2 +// SPDX-License-Identifier: GPL-3.0+
3
4 var netdata = require("../../node.d/node_modules/netdata");
5 // remember: subject will be a singleton!
@@ -329,4 +330,4 @@ describe("fronius parsing for inverters", function () {
330 expect(result.value).toBe(1000);
331 });
332
332 -});
\ No newline at end of file
333 +});
tests/node.d/fronius.process.spec.js
+2 -1
@@ -1,4 +1,5 @@
1 "use strict";
2 +// SPDX-License-Identifier: GPL-3.0+
3
4 var netdata = require("../../node.d/node_modules/netdata");
5 // remember: subject will be a singleton!
@@ -71,4 +72,4 @@ describe("fronius main processing", function () {
72 });
73
74
74 -});
\ No newline at end of file
75 +});
tests/node.d/fronius.validation.spec.js
+2 -1
@@ -1,4 +1,5 @@
1 "use strict";
2 +// SPDX-License-Identifier: GPL-3.0+
3
4 var netdata = require("../../node.d/node_modules/netdata");
5 // remember: subject will be a singleton!
@@ -151,4 +152,4 @@ describe("fronius configuration validation", function () {
152 expect(subject.serviceExecute).toHaveBeenCalledWith(name2, "solar2.local/", 3);
153 });
154
154 -});
\ No newline at end of file
155 +});
tests/stress.sh
+1
@@ -1,4 +1,5 @@
1 #!/bin/bash
2 +# SPDX-License-Identifier: GPL-3.0+
3
4 # set the host to connect to
5 if [ ! -z "$1" ]
tests/web/easypiechart.chart.spec.js
+1 -1
@@ -36,4 +36,4 @@ describe("creation of easy pie charts", function () {
36 };
37 }
38
39 -});
\ No newline at end of file
39 +});
tests/web/easypiechart.percentage.spec.js
+1 -1
@@ -139,4 +139,4 @@ function createState(min, max) {
139 easyPieChartMax: max
140 }
141 };
142 -}
\ No newline at end of file
142 +}
web/Makefile.am
+1
@@ -1,5 +1,6 @@
1 #
2 # Copyright (C) 2015 Alon Bar-Lev <alon.barlev@gmail.com>
3 +# SPDX-License-Identifier: GPL-3.0+
4 #
5 MAINTAINERCLEANFILES= $(srcdir)/Makefile.in
6
web/dashboard.css
+1
@@ -1,3 +1,4 @@
1 +/* SPDX-License-Identfier: GPL-3.0+ */
2 html,
3 body {
4 /*font-family: Calibri,"Segoe UI","Helvetica Neue",Helvetica,Arial,sans-serif;*/
web/dashboard.html
+1
@@ -1,4 +1,5 @@
1 <!DOCTYPE html>
2 +<!-- SPDX-License-Identifier: GPL-3.0+ -->
3 <html lang="en">
4 <head>
5 <title>NetData Dashboard</title>
web/dashboard.js
+1
@@ -1,3 +1,4 @@
1 +// SPDX-License-Identifier: GPL-3.0+
2 // ----------------------------------------------------------------------------
3 // You can set the following variables before loading this script:
4
web/dashboard.slate.css
+1
@@ -1,3 +1,4 @@
1 +/* SPDX-License-Identifier: GPL-3.0+ */
2 html,
3 body {
4 /*font-family: Calibri,"Segoe UI","Helvetica Neue",Helvetica,Arial,sans-serif;*/
web/dashboard_info.js
+1
@@ -1,3 +1,4 @@
1 +// SPDX-License-Identifier: GPL-3.0+
2
3 var netdataDashboard = window.netdataDashboard || {};
4
web/dashboard_info_custom_example.js
+1
@@ -1,3 +1,4 @@
1 +// SPDX-License-Identifier: GPL-3.0+
2 /*
3 * Custom netdata information file
4 * -------------------------------
web/demo.html
+1
@@ -1,4 +1,5 @@
1 <!DOCTYPE html>
2 +<!-- SPDX-License-Identifier: GPL-3.0+ -->
3 <html lang="en">
4 <head>
5 <title>NetData Dashboard</title>
web/demo2.html
+1
@@ -1,4 +1,5 @@
1 <!DOCTYPE html>
2 +<!-- SPDX-License-Identifier: GPL-3.0+ -->
3 <html lang="en">
4 <head>
5 <title>NetData Dashboard</title>
web/demosites.html
+1
@@ -1,4 +1,5 @@
1 <!doctype html>
2 +<!-- SPDX-License-Identifier: GPL-3.0+ -->
3 <html lang=en-us>
4 <head>
5 <meta charset=utf-8>
web/demosites2.html
+1
@@ -1,4 +1,5 @@
1 <!DOCTYPE html>
2 +<!-- SPDX-License-Identifier: GPL-3.0+ -->
3 <html lang="en">
4 <head>
5 <title>NetData - Real-time performance monitoring, done right!</title>
web/goto-host-from-alarm.html
+1
@@ -1,4 +1,5 @@
1 <!DOCTYPE html>
2 +<!-- SPDX-License-Identifier: GPL-3.0+ -->
3 <html lang="en">
4 <head>
5 <title>Goto a host you know...</title>
web/index.html
+1
@@ -1,4 +1,5 @@
1 <!DOCTYPE html>
2 +<!-- SPDX-License-Identifier: GPL-3.0+ -->
3 <html lang="en">
4 <head>
5 <title>netdata dashboard</title>
web/infographic.html
+1
@@ -1,4 +1,5 @@
1 <!doctype html>
2 +<!-- SPDX-License-Identifier: GPL-3.0+ -->
3 <html lang=en-us>
4 <head>
5 <meta charset=utf-8>
web/netdata-swagger.yaml
+1
@@ -1,3 +1,4 @@
1 +# SPDX-License-Identifier: GPL-3.0+
2 swagger: '2.0'
3 info:
4 title: NetData API
web/refresh-badges.js
+1
@@ -1,3 +1,4 @@
1 +// SPDX-License-Identifier: GPL-3.0+
2 // ----------------------------------------------------------------------------
3 // This script periodically updates all the netdata badges you have added to a
4 // page as images. You don't need this script if you add the badges with
web/registry.html
+1
@@ -1,4 +1,5 @@
1 <!DOCTYPE html>
2 +<!-- SPDX-License-Identifier: GPL-3.0+ -->
3 <html lang="en">
4 <head>
5 <title>NetData Registry Dashboard</title>
web/sitemap.xml
+1
@@ -1,4 +1,5 @@
1 <?xml version="1.0" encoding="UTF-8"?>
2 +<!-- SPDX-License-Identifier: GPL-3.0+ -->
3 <urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
4 <url>
5 <loc>https://my-netdata.io/</loc>
web/tv.html
+1
@@ -1,4 +1,5 @@
1 <!DOCTYPE html>
2 +<!-- SPDX-License-Identifier: GPL-3.0+ -->
3 <html lang="en">
4 <head>
5 <title>NetData TV Dashboard</title>