Ignore netdata folder

This commit is contained in:
Dejan R. 2025-11-25 06:34:49 +00:00
parent 9d4b4fa5e5
commit b8c07c05bb
32 changed files with 0 additions and 547 deletions

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

BIN
netdata/cache/ml.db vendored

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View file

@ -1 +0,0 @@
621eb0a06145

View file

@ -1,15 +0,0 @@
# Created by installer
PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
CFLAGS="-O2 -funroll-loops -pipe"
LDFLAGS="-Wl,--gc-sections"
MAKEOPTS="-j4"
NETDATA_TMPDIR="/tmp"
NETDATA_PREFIX="/"
NETDATA_CMAKE_OPTIONS="-S ./ -B ./build/ -G Ninja -DCMAKE_INSTALL_PREFIX=/ -DNETDATA_USER=netdata -DENABLE_PLUGIN_GO=On -DENABLE_PLUGIN_PYTHON=On -DENABLE_PLUGIN_CHARTS=On -DENABLE_BUNDLED_PROTOBUF=Off -DENABLE_PLUGIN_SYSTEMD_JOURNAL=On -DENABLE_NETDATA_JOURNAL_FILE_READER=On -DENABLE_PLUGIN_SYSTEMD_UNITS=On -DENABLE_PLUGIN_CUPS=Off -DENABLE_PLUGIN_DEBUGFS=On -DENABLE_PLUGIN_PERF=On -DENABLE_PLUGIN_SLABINFO=On -DENABLE_PLUGIN_CGROUP_NETWORK=On -DENABLE_PLUGIN_LOCAL_LISTENERS=On -DENABLE_PLUGIN_NETWORK_VIEWER=On -DENABLE_PLUGIN_EBPF=Off -DENABLE_BUNDLED_JSONC=Off -DENABLE_DBENGINE=On -DENABLE_ML=On -DENABLE_PLUGIN_APPS=On -DENABLE_PLUGIN_OTEL=On -DENABLE_PLUGIN_IBM=Off -DENABLE_EXPORTER_PROMETHEUS_REMOTE_WRITE=On -DENABLE_EXPORTER_MONGODB=On -DENABLE_PLUGIN_FREEIPMI=On -DENABLE_PLUGIN_NFACCT=Off -DENABLE_PLUGIN_XENSTAT=Off"
NETDATA_ADDED_TO_GROUPS=" docker ceph I2C"
INSTALL_UID="0"
NETDATA_GROUP="netdata"
REINSTALL_OPTIONS=" --use-system-protobuf --disable-ebpf --enable-plugin-otel --internal-systemd-journal --install-no-prefix / "
RELEASE_CHANNEL="nightly"
IS_NETDATA_STATIC_BINARY="no"
NETDATA_LIB_DIR="//var/lib/netdata"

View file

@ -1,2 +0,0 @@
INSTALL_TYPE='oci'
PREBUILT_ARCH='aarch64'

View file

@ -1,327 +0,0 @@
#!/usr/bin/env sh
# shellcheck disable=SC1091
[ -f /etc/profile ] && . /etc/profile
set -e
script_dir="$(CDPATH="" cd -- "$(dirname -- "$0")" && pwd -P)"
usage() {
check_directories
cat <<EOF
USAGE:
${0} [options] FILENAME
Copy and edit the stock config file named: FILENAME
if FILENAME is already copied, it will be edited as-is.
Stock config files at: '${NETDATA_STOCK_CONFIG_DIR}'
User config files at: '${NETDATA_USER_CONFIG_DIR}'
The editor to use can be specified either by setting the EDITOR
environment variable, or by using the --editor option.
The file to edit can also be specified using the --file option.
For a list of known config files, run '${0} --list'
EOF
exit 0
}
error() {
echo >&2 "ERROR: ${1}"
}
abspath() {
if [ -d "${1}/" ]; then
echo "$(cd "${1}" && /usr/bin/env PWD= pwd -P)/"
elif [ -f "${1}" ]; then
echo "$(cd "$(dirname "${1}")" && /usr/bin/env PWD= pwd -P)/$(basename "${1}")"
elif echo "${1}" | grep -q '/'; then
if echo "${1}" | grep -q '^/'; then
mkdir -p "$(dirname "${1}")"
echo "$(cd "$(dirname "${1}")" && /usr/bin/env PWD= pwd -P)/$(basename "${1}")"
else
mkdir -p "${script_dir}/$(dirname "${1}")"
echo "${script_dir}/${1}"
fi
else
echo "${script_dir}/${1}"
fi
}
is_prefix() {
echo "${2}" | grep -qE "^${1}"
return $?
}
check_directories() {
if [ -f "${script_dir}/.container-hostname" ]; then
NETDATA_USER_CONFIG_DIR="${script_dir}"
NETDATA_STOCK_CONFIG_DIR="/usr/lib/netdata/conf.d"
return
fi
if [ -e "${script_dir}/.environment" ]; then
OLDPATH="${PATH}"
# shellcheck disable=SC1091
. "${script_dir}/.environment"
PATH="${OLDPATH}"
fi
if [ -n "${NETDATA_PREFIX}" ] && [ -d "${NETDATA_PREFIX}/usr/lib/netdata/conf.d" ]; then
stock_dir="${NETDATA_PREFIX}/usr/lib/netdata/conf.d"
elif [ -n "${NETDATA_PREFIX}" ] && [ -d "${NETDATA_PREFIX}/lib/netdata/conf.d" ]; then
stock_dir="${NETDATA_PREFIX}/lib/netdata/conf.d"
elif [ -d "${script_dir}/../../usr/lib/netdata/conf.d" ]; then
stock_dir="${script_dir}/../../usr/lib/netdata/conf.d"
elif [ -d "${script_dir}/../../lib/netdata/conf.d" ]; then
stock_dir="${script_dir}/../../lib/netdata/conf.d"
elif [ -d "/usr/lib/netdata/conf.d" ]; then
stock_dir="/usr/lib/netdata/conf.d"
fi
[ -z "${NETDATA_USER_CONFIG_DIR}" ] && NETDATA_USER_CONFIG_DIR="${script_dir}"
[ -z "${NETDATA_STOCK_CONFIG_DIR}" ] && NETDATA_STOCK_CONFIG_DIR="${stock_dir}"
if [ -z "${NETDATA_STOCK_CONFIG_DIR}" ]; then
error "Unable to find stock config directory."
exit 1
fi
}
check_editor() {
if [ -z "${editor}" ]; then
if [ -n "${EDITOR}" ] && command -v "${EDITOR}" >/dev/null 2>&1; then
editor="${EDITOR}"
elif command -v editor >/dev/null 2>&1; then
editor="editor"
elif command -v vi >/dev/null 2>&1; then
editor="vi"
else
error "Unable to find a usable editor, tried \${EDITOR} (${EDITOR}), editor, and vi."
exit 1
fi
elif ! command -v "${editor}" >/dev/null 2>&1; then
error "Unable to locate user specified editor ${editor}, is it in your PATH?"
exit 1
fi
}
running_in_container() {
[ -e /.dockerenv ] && return 0
[ -e /.dockerinit ] && return 0
[ -e /run/.containerenv ] && return 0
[ -r /proc/1/environ ] && tr '\000' '\n' </proc/1/environ | grep -Eiq 'container=' && return 0
grep -qF -e /docker/ -e /libpod- /proc/self/cgroup 2>/dev/null && return 0
return 1
}
get_docker_command() {
if [ -x "${docker}" ]; then
return 0
elif command -v docker >/dev/null 2>&1; then
docker="$(command -v docker)"
elif command -v podman >/dev/null 2>&1; then
docker="$(command -v podman)"
else
error "Unable to find a usable container tool stack. I support Docker and Podman."
exit 1
fi
}
run_in_container() {
${docker} exec "${1}" /bin/sh -c "${2}" || return 1
return 0
}
check_for_container() {
get_docker_command
${docker} container inspect "${1}" >/dev/null 2>&1 || return 1
run_in_container "${1}" "[ -d \"${NETDATA_STOCK_CONFIG_DIR}\" ]" >/dev/null 2>&1 || return 1
return 0
}
handle_container() {
if running_in_container; then
return 0
elif [ -z "${container}" ] && [ -f "${script_dir}/.container-hostname" ]; then
echo >&2 "Autodetected containerized Netdata instance. Attempting to autodetect container ID."
possible_container="$(cat "${script_dir}/.container-hostname")"
if check_for_container "${possible_container}"; then
container="${possible_container}"
elif check_for_container netdata; then
container="netdata"
else
error "Could not autodetect container ID. It must be supplied on the command line with the --container option."
exit 1
fi
echo >&2 "Found Netdata container with ID or name ${container}"
elif [ -n "${container}" ]; then
if ! check_for_container "${container}"; then
error "No container with ID or name ${container} exists."
exit 1
fi
fi
}
list_files() {
check_directories
handle_container
if test -t && command -v tput > /dev/null 2>&1; then
width="$(tput cols)"
fi
if [ -z "${container}" ]; then
if [ "$(uname -s)" = "Linux" ]; then
# shellcheck disable=SC2046,SC2086
files="$(cd "${NETDATA_STOCK_CONFIG_DIR}" && ls ${width:+-C} ${width:+-w ${width}} $(find . -type f | cut -d '/' -f 2-))"
elif [ "$(uname -s)" = "FreeBSD" ]; then
if [ -n "${width}" ]; then
export COLUMNS="${width}"
fi
# shellcheck disable=SC2046
files="$(cd "${NETDATA_STOCK_CONFIG_DIR}" && ls ${width:+-C} $(find . -type f | cut -d '/' -f 2-))"
else
# shellcheck disable=SC2046
files="$(cd "${NETDATA_STOCK_CONFIG_DIR}" && ls $(find . -type f | cut -d '/' -f 2-))"
fi
else
files="$(run_in_container "${container}" "cd /usr/lib/netdata/conf.d && ls ${width:+-C} ${width:+-w ${width}} \$(find . -type f | cut -d '/' -f 2-)")"
fi
if [ -z "${files}" ]; then
error "Failed to find any configuration files."
exit 1
fi
cat <<EOF
The following configuration files are known to this script:
${files}
EOF
exit 0
}
parse_args() {
while [ -n "${1}" ]; do
case "${1}" in
"--help") usage ;;
"--list") list_files ;;
"--file")
if [ -n "${2}" ]; then
file="${2}"
shift 1
else
error "No file specified to edit."
exit 1
fi
;;
"--container")
if [ -n "${2}" ]; then
container="${2}"
shift 1
else
error "No container ID or name specified with the --container option."
exit 1
fi
;;
"--editor")
if [ -n "${2}" ]; then
editor="${2}"
shift 1
else
error "No editor specified with the --editor option."
exit 1
fi
;;
*)
if [ -z "${2}" ]; then
file="${1}"
else
error "Unrecognized option ${1}."
exit 1
fi
;;
esac
shift 1
done
[ -z "${file}" ] && usage
absfile="$(abspath "${file}")"
if ! is_prefix "${script_dir}" "${absfile}"; then
error "${file} is not located under ${script_dir}"
exit 1
fi
file="${absfile##"${script_dir}"}"
}
copy_native() {
if [ ! -w "${NETDATA_USER_CONFIG_DIR}" ]; then
error "Cannot write to ${NETDATA_USER_CONFIG_DIR}!"
exit 1
fi
if [ -f "${NETDATA_STOCK_CONFIG_DIR}/${1}" ]; then
echo >&2 "Copying '${NETDATA_STOCK_CONFIG_DIR}/${1}' to '${NETDATA_USER_CONFIG_DIR}/${1}' ... "
cp -p "${NETDATA_STOCK_CONFIG_DIR}/${1}" "${NETDATA_USER_CONFIG_DIR}/${1}" || exit 1
else
echo >&2 "Creating empty '${NETDATA_USER_CONFIG_DIR}/${1}' ... "
touch "${NETDATA_USER_CONFIG_DIR}/${1}" || exit 1
fi
}
copy_container() {
if [ ! -w "${NETDATA_USER_CONFIG_DIR}" ]; then
error "Cannot write to ${NETDATA_USER_CONFIG_DIR}!"
exit 1
fi
if run_in_container "${container}" "[ -f \"${NETDATA_STOCK_CONFIG_DIR}/${1}\" ]"; then
echo >&2 "Copying '${NETDATA_STOCK_CONFIG_DIR}/${1}' to '${NETDATA_USER_CONFIG_DIR}/${1}' ... "
${docker} cp -a "${container}:${NETDATA_STOCK_CONFIG_DIR}/${1}" "${NETDATA_USER_CONFIG_DIR}/${1}" || exit 1
else
echo >&2 "Creating empty '${NETDATA_USER_CONFIG_DIR}/${1}' ... "
touch "${NETDATA_USER_CONFIG_DIR}/${1}" || exit 1
fi
}
copy() {
if [ -f "${NETDATA_USER_CONFIG_DIR}/${1}" ]; then
return 0
elif [ -n "${container}" ]; then
copy_container "${1}"
else
copy_native "${1}"
fi
}
edit() {
echo >&2 "Editing '${1}' ..."
# check we can edit
if [ ! -w "${1}" ]; then
error "Cannot write to ${1}!"
exit 1
fi
"${editor}" "${1}"
exit $?
}
main() {
parse_args "${@}"
check_directories
check_editor
handle_container
copy "${file}"
edit "${absfile}"
}
main "${@}"

View file

@ -1,5 +0,0 @@
# netdata can generate its own config which is available at 'http://<IP>:19999/netdata.conf'
# You can download it using:
# curl -o //etc/netdata/netdata.conf http://localhost:19999/netdata.conf
# or
# wget -O //etc/netdata/netdata.conf http://localhost:19999/netdata.conf

View file

@ -1 +0,0 @@
//usr/lib/netdata/conf.d

View file

@ -1 +0,0 @@
{"version":1,"host_uuid":"9fb4eaa3-a0ff-4e20-8b66-360dea5d1e10","token":"17a7d8a8-95df-4d68-9b26-2647e0b0d1ea","cloud_account_id":"b087b25d-333b-43c5-9037-a88719e2558d","client_name":"Dejan Rožič","access":["signed-in","same-space","anonymous-data","sensitive-data","view-config","view-alerts-silencing"],"user_role":"admin","created_s":1764051726,"expires_s":1764138126,"signature":3340539282913850200}

View file

@ -1 +0,0 @@
0b073d66-2218-403f-b252-ee22c4c2495c

View file

@ -1,10 +0,0 @@
[global]
# url = https://app.netdata.cloud
# proxy = env
token = IhADsATNXyg1aXek5_Q-mrUDIi4OnYrVrcHzOjKcnSVknd7MlSuQ6uwDoeVughUR7DA-TonLHLjQkn80wJEW9fNxTpWRlXr2aRDsFUsZ27bpV3IaXC1907GanAnPzBAAQc_fz2A
rooms = 9f043da7-5276-44df-a9d1-3fb5245dc6bc
# insecure = no
machine_guid = 9fb4eaa3-a0ff-4e20-8b66-360dea5d1e10
claimed_id = 0b073d66-2218-403f-b252-ee22c4c2495c
hostname = 621eb0a06145

View file

@ -1,28 +0,0 @@
-----BEGIN PRIVATE KEY-----
MIIEvgIBADANBgkqhkiG9w0BAQEFAASCBKgwggSkAgEAAoIBAQDeWSJV6OUSiXKE
UrLZi6MoN+zANNMbAjnkpi3rGleHfYRHREqu6kL1s1KIXOi8jwjdQAdbe3SmGQn8
7uuGNGnWpUkyJRKTlIMD8ym3ZnRL3oV74G6J4IBMSuON0b3vNz+Xy+oT+a92QWPJ
mmetJ2R8yMWoqpLJsQqeOsdROBLxF9VMfQmqXQZZJIJZM8hmKeO95ghQwYU04GsK
3fIChDt8zMMB7UTZ1WOMOt21wM9gcUWyLfbTbIJnYII3dG3x3JU47mk4GT2Cc8pS
NFNs50bDt8YgUI6eqQDWagMKVVeZmaJA9YaRoGTlspgdHxDbmteHHWtUL4L/ldHR
07Akt8QRAgMBAAECggEAAJ9T6n+lKrnIbtVGpjevEOXdZh6N9Lgs/KSGcCgkm7CX
sode9pcLRvAeyHcncdesNXUAUEVaFXViChuKblegU8VfVhQKfLcLJmUf9jZ1iYsN
Iif3qsw+aJS0o3dR1KwkXKZNI1K7Q1WWaVzUua8FGYr8GqdQdvtljIuc6FMuaYDK
IKqnJGjcRFjde/FFMEfRM+JWtoLekEDaLfkxx/zMGBBM7e1OWw6j2WrNBRXApDmh
wMS4ARrcZ9rpmOBSn3+48W5xVkF2UHVq7k6IupEAHZ+S0tK2hp1RNyzih5vKFQR8
52/RHD66dLCgPGWmknJ8Z9586r63topAZRkwuI49zQKBgQD3uX7wpes9NR0Jzoy1
mCxFuic2Fl3yUUUG6ys0KMgaDd4Nigr6fqnrKDWqiXSSJi+XZP58SNGCyaqst0b7
K2KqeNK6XFFiKP/TEnUqlu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IUMGFNOBrCt3yAoQ7
fMzDAe1E2dVjjDrdtcDPYHFFsi3202yCZ2CCN3Rt8dyVOO5pOBk9gnPKUjRTbOdG
w7fGIFCOnqkA1moDClVXmZmiQPWGkaBk5bKYHR8Q25rXhx1rVC+C/5XR0dOwJLfE
EQIDAQAB
-----END PUBLIC KEY-----

Binary file not shown.

View file

@ -1 +0,0 @@
4fa972d4-1c08-4c58-a743-ada2e0e8af83

View file

@ -1 +0,0 @@
26cbef43-14ad-4802-9dbb-05d562e6487c

View file

@ -1 +0,0 @@
c106e3c2-3365-4ce4-b011-70663607728d

View file

@ -1 +0,0 @@
9fb4eaa3-a0ff-4e20-8b66-360dea5d1e10

View file

@ -1,143 +0,0 @@
{
"@timestamp":"2025-11-25T06:21:34.96Z",
"version":28,
"agent":{
"id":"9fb4eaa3-a0ff-4e20-8b66-360dea5d1e10",
"since":"2025-11-25T06:19:24.39Z",
"ephemeral_id":"f41cee917ad241e8acaa01f959043953",
"version":"v2.8.1",
"uptime":130,
"node_id":null,
"claim_id":"0b073d66-2218-403f-b252-ee22c4c2495c",
"restarts":1,
"crashes":0,
"pid":646253,
"posts":1,
"aclk":"online",
"profile":["standalone"],
"status":"running",
"exit_reason":[],
"install_type":"oci",
"db_mode":"dbengine",
"db_tiers":3,
"kubernetes":false,
"sentry_available":false,
"reliability":1,
"stack_traces":"libbacktrace (mmap, threads, data)",
"timings":{
"init":3,
"exit":0
}
},
"metrics":{
"nodes":{
"total":1,
"receiving":0,
"sending":0,
"archived":0
},
"metrics":{
"collected":10334,
"available":10384
},
"instances":{
"collected":4420,
"available":4444
},
"contexts":{
"collected":305,
"available":305
}
},
"host":{
"id":"fad96ea8c2e24220abeda8eb3e08c94e",
"architecture":"aarch64",
"virtualization":"kvm",
"container":"docker",
"uptime":561470,
"timezone":"Europe/Ljubljana",
"cloud_provider":"",
"cloud_instance":"",
"cloud_region":"",
"system_cpus":4,
"boot":{
"id":"3c3195d2663e4112b155696b82852f89"
},
"memory":{
"total":8105627648,
"free":1112842240,
"netdata":121896960,
"oom_protection":810559734
},
"disk":{
"db":{
"total":80307429376,
"free":39755911168,
"inodes_total":4862256,
"inodes_free":3948552,
"read_only":false
},
"netdata":{
"dbengine":0,
"sqlite":0,
"other":36,
"last_updated":"2025-11-25T06:19:24.39Z"
}
}
},
"os":{
"type":"linux",
"kernel":"6.8.0-87-generic",
"name":"Ubuntu",
"version":"24.04.3 LTS (Noble Numbat)",
"family":"ubuntu",
"platform":"debian"
},
"hw":{
"sys":{
"vendor":"Hetzner",
"uuid":"cd3f7a7d-d99a-4b70-bd32-fba78e505e62"
},
"product":{
"name":"vServer",
"version":"20171111",
"sku":"TM",
"family":"Hetzner_vServer"
},
"board":{
"name":"KVM Virtual Machine",
"version":"virt-8.2",
"vendor":"KVM"
},
"chassis":{
"type":"1",
"vendor":"QEMU",
"version":"NotSpecified"
},
"bios":{
"date":"11/11/2017",
"release":"1.0",
"version":"20171111",
"vendor":"Hetzner"
}
},
"product":{
"vendor":"Hetzner",
"name":"Hetzner_vServer / KVM Virtual Machine",
"type":"vm"
},
"fatal":{
"line":0,
"filename":"",
"function":"",
"message":"",
"errno":"",
"thread":"",
"thread_id":0,
"stack_trace":"",
"signal_code":"",
"sentry":false,
"fault_address":"",
"worker_job_id":0
}
}