mirror of
https://github.com/netdata/netdata.git
synced 2025-04-06 14:35:32 +00:00
Assorted cleanup of CI/packaging related code. (#16938)
* Drop unused Dockerfile.test. It’s not been used for years, and it doesn’t even work at this point for it’s intended purpose. * Remove CodeClimate configuration. We’re not using it anymore, so there is no point to keeping the configuration around. * Remove the build_external directory. This isn’t used by any of our code AFAICT, and if it _is_ needed, it should actually be in some sub-directory of `tests` instead of a top-level directory whose name doesn’t even describe what it does. * Remove .gitattributes If there's any objection we can reinstate it. * Move coverity-scan.sh under packaging/utils * Move cmake files under packaging/cmake * Remove devcontainer * Fix up coverity script to run correctly from new location. --------- Co-authored-by: vkalintiris <vasilis@netdata.cloud>
This commit is contained in:
parent
2d64790f8c
commit
12306a3e05
56 changed files with 20 additions and 9168 deletions
.codeclimate.yml
.devcontainer
.gitattributes.github
CMakeLists.txtDockerfile.testbuild_external
README.md
bin
clean-install-arch-debug.Dockerfileclean-install-arch-extras.Dockerfileclean-install-arch.Dockerfileclean-install.Dockerfilemake-install.Dockerfilescenarios
aclk-testing
agent-compose.ymlagent-valgrind-compose.ymlagent_netdata.confconfigureVerneMQ.Dockerfilepaho-compose.ymlpaho-inspection.pypaho.Dockerfilevernemq-compose.ymlvernemq.conf
children-to-localhost
gaps_hi
child-compose.ymlchild_guidchild_stream.confmiddle-compose.ymlmiddle_guidmiddle_stream.confmin.confparent-compose.ymlparent_guidparent_stream.conf
gaps_lo
child-compose.ymlchild_guidchild_stream.confmiddle-compose.ymlmiddle_guidmiddle_stream.confmostly_off.confparent-compose.ymlparent_guidparent_stream.conf
only-agent
parent-child
packaging
|
@ -1,93 +0,0 @@
|
|||
version: "2"
|
||||
checks:
|
||||
argument-count:
|
||||
enabled: false
|
||||
config:
|
||||
threshold: 10
|
||||
complex-logic:
|
||||
enabled: false
|
||||
config:
|
||||
threshold: 10
|
||||
file-lines:
|
||||
enabled: false
|
||||
config:
|
||||
threshold: 5000
|
||||
method-complexity:
|
||||
enabled: false
|
||||
config:
|
||||
threshold: 20
|
||||
method-count:
|
||||
enabled: false
|
||||
config:
|
||||
threshold: 50
|
||||
method-lines:
|
||||
enabled: false
|
||||
config:
|
||||
threshold: 250
|
||||
nested-control-flow:
|
||||
enabled: false
|
||||
config:
|
||||
threshold: 4
|
||||
return-statements:
|
||||
enabled: false
|
||||
config:
|
||||
threshold: 4
|
||||
similar-code:
|
||||
enabled: false
|
||||
identical-code:
|
||||
enabled: false
|
||||
plugins:
|
||||
csslint:
|
||||
enabled: true
|
||||
duplication:
|
||||
enabled: false
|
||||
config:
|
||||
languages:
|
||||
- javascript:
|
||||
mass_threshold: 100
|
||||
- python:
|
||||
python_version: 3
|
||||
mass_threshold: 100
|
||||
checks:
|
||||
Similar code:
|
||||
enabled: false
|
||||
Identical code:
|
||||
enabled: false
|
||||
eslint:
|
||||
enabled: true
|
||||
checks:
|
||||
max-statements:
|
||||
enabled: false
|
||||
complexity:
|
||||
enabled: false
|
||||
no-eval:
|
||||
enabled: false
|
||||
no-extend-native:
|
||||
enabled: false
|
||||
no-void:
|
||||
enabled: false
|
||||
no-alert:
|
||||
enabled: false
|
||||
no-undef-init:
|
||||
enabled: false
|
||||
fixme:
|
||||
enabled: false
|
||||
phpmd:
|
||||
enabled: true
|
||||
radon:
|
||||
enabled: true
|
||||
checks:
|
||||
Complexity:
|
||||
enabled: false
|
||||
exclude_patterns:
|
||||
- ".gitignore"
|
||||
- ".githooks/"
|
||||
- "tests/"
|
||||
- "m4/"
|
||||
- "src/web/css/"
|
||||
- "src/web/lib/"
|
||||
- "src/web/fonts/"
|
||||
- "src/web/old/"
|
||||
- "collectors/python.d.plugin/python_modules/pyyaml2/"
|
||||
- "collectors/python.d.plugin/python_modules/pyyaml3/"
|
||||
- "collectors/python.d.plugin/python_modules/urllib3/"
|
|
@ -1,14 +0,0 @@
|
|||
{
|
||||
"image": "netdata/devenv",
|
||||
"extensions":[
|
||||
"golang.go",
|
||||
"exiasr.hadolint",
|
||||
"ms-python.python",
|
||||
"timonwong.shellcheck",
|
||||
"redhat.vscode-yaml",
|
||||
"dbaeumer.vscode-eslint",
|
||||
"jasonnutter.search-node-modules",
|
||||
"mgmcdermott.vscode-language-babel",
|
||||
],
|
||||
"forwardPorts": [19999]
|
||||
}
|
3
.gitattributes
vendored
3
.gitattributes
vendored
|
@ -1,3 +0,0 @@
|
|||
*.c diff=cpp
|
||||
*.h diff=cpp
|
||||
*.ksy.in linguist-language=ksy
|
2
.github/labeler.yml
vendored
2
.github/labeler.yml
vendored
|
@ -277,7 +277,7 @@ area/tests:
|
|||
- any-glob-to-any-file:
|
||||
- tests/**
|
||||
- src/daemon/unit_test*
|
||||
- coverity-scan.sh
|
||||
- packaging/utils/coverity-scan.sh
|
||||
|
||||
area/web:
|
||||
- any:
|
||||
|
|
4
.github/workflows/coverity.yml
vendored
4
.github/workflows/coverity.yml
vendored
|
@ -7,7 +7,7 @@ on:
|
|||
pull_request:
|
||||
paths:
|
||||
- .github/workflows/coverity.yml
|
||||
- coverity-scan.sh
|
||||
- packaging/utils/coverity-scan.sh
|
||||
env:
|
||||
DISABLE_TELEMETRY: 1
|
||||
concurrency:
|
||||
|
@ -42,7 +42,7 @@ jobs:
|
|||
COVERITY_SCAN_TOKEN: ${{ secrets.COVERITY_SCAN_TOKEN }}
|
||||
COVERITY_SCAN_SUBMIT_MAIL: ${{ secrets.COVERITY_SCAN_SUBMIT_MAIL }}
|
||||
run: |
|
||||
bash -x ./coverity-scan.sh --with-install
|
||||
bash -x ./packaging/utils/coverity-scan.sh --with-install
|
||||
- name: Failure Notification
|
||||
uses: rtCamp/action-slack-notify@v2
|
||||
env:
|
||||
|
|
|
@ -1522,7 +1522,7 @@ set_source_files_properties(JudyLTables.c PROPERTIES COMPILE_OPTIONS "-I${CMAKE_
|
|||
# build libnetdata
|
||||
#
|
||||
|
||||
include(systemd.cmake)
|
||||
include(packaging/cmake/systemd.cmake)
|
||||
|
||||
add_library(libnetdata STATIC ${LIBNETDATA_FILES})
|
||||
|
||||
|
@ -2229,7 +2229,7 @@ if (NOT NETDATA_USER)
|
|||
endif()
|
||||
set(VERSION "${GIT_DESCRIBE_OUTPUT}")
|
||||
|
||||
configure_file(config.cmake.h.in config.h)
|
||||
configure_file(packaging/cmake/config.cmake.h.in config.h)
|
||||
|
||||
#
|
||||
# install
|
||||
|
|
|
@ -1,74 +0,0 @@
|
|||
# NOTE: This Dockerfile (`Dockerfile.test`) should only be used for dev/testing
|
||||
# and *NOT* in production. Use the top-level `Dockerfile` which points to
|
||||
# `./packaging/docker/Dockerfile`.
|
||||
#
|
||||
# TODO: Create a netdata/package-builder:alpine9
|
||||
#FROM netdata/package-builder:alpine AS build
|
||||
FROM alpine:3.9 AS build
|
||||
|
||||
# Install Dependencies
|
||||
RUN apk add --no-cache -U alpine-sdk bash curl libuv-dev zlib-dev \
|
||||
util-linux-dev libmnl-dev gcc make git autoconf \
|
||||
automake pkgconfig python logrotate openssl-dev \
|
||||
cmake
|
||||
|
||||
# Pass optional ./netdata-installer.sh args with --build-arg INSTALLER_ARGS=...
|
||||
ARG INSTALLER_ARGS=""
|
||||
|
||||
# Copy Sources
|
||||
# Can also bind-mount sources with:
|
||||
# $ docker run -v $PWD:/netdata
|
||||
|
||||
WORKDIR /netdata
|
||||
COPY . .
|
||||
|
||||
# Build
|
||||
RUN ./netdata-installer.sh --dont-wait --dont-start-it --disable-go "${INSTALLER_ARGS}"
|
||||
|
||||
FROM alpine:3.9 AS runtime
|
||||
|
||||
# Install runtime dependencies
|
||||
RUN apk --no-cache -U add curl bash libuv zlib util-linux libmnl python
|
||||
|
||||
# Create netdata user/group
|
||||
RUN addgroup -S netdata && \
|
||||
adduser -D -S -h /var/empty -s /bin/false -G netdata netdata
|
||||
|
||||
# Copy binary from build layer
|
||||
COPY --from=build /usr/sbin/netdata /usr/sbin/netdata
|
||||
|
||||
# Copy configuration files from build layer
|
||||
COPY --from=build /etc/netdata/ /etc/netdata/
|
||||
COPY --from=build /usr/lib/netdata/ /usr/lib/netdata/
|
||||
|
||||
# Copy assets from build layer
|
||||
COPY --from=build /usr/share/netdata/ /usr/share/netdata/
|
||||
|
||||
# Create some directories netdata needs
|
||||
RUN mkdir -p \
|
||||
/etc/netdata \
|
||||
/var/log/netdata \
|
||||
/var/lib/netdata \
|
||||
/var/cache/netdata \
|
||||
/usr/lib/netdata/conf.d \
|
||||
/usr/libexec/netdata/plugins.d
|
||||
|
||||
# Fix permissions/ownerships
|
||||
RUN chown -R netdata:netdata \
|
||||
/etc/netdata/ \
|
||||
/usr/lib/netdata/ \
|
||||
/usr/share/netdata/ \
|
||||
/var/log/netdata \
|
||||
/var/lib/netdata \
|
||||
/var/cache/netdata \
|
||||
/usr/libexec/netdata
|
||||
|
||||
VOLUME /etc/netdata
|
||||
VOLUME /var/lib/netdata
|
||||
VOLUME /var/log/netdata
|
||||
|
||||
EXPOSE 19999/tcp
|
||||
|
||||
USER netdata
|
||||
|
||||
CMD ["/usr/sbin/netdata", "-D"]
|
|
@ -1,131 +0,0 @@
|
|||
<!--
|
||||
title: "External build-system"
|
||||
custom_edit_url: https://github.com/netdata/netdata/edit/master/build_external/README.md
|
||||
sidebar_label: "External build-system"
|
||||
learn_status: "Published"
|
||||
learn_topic_type: "References"
|
||||
learn_rel_path: "Installation/Package maintainers"
|
||||
-->
|
||||
|
||||
# External build-system
|
||||
|
||||
This wraps the build-system in Docker so that the host system and the target system are
|
||||
decoupled. This allows:
|
||||
|
||||
- Cross-compilation (e.g. linux development from macOS)
|
||||
- Cross-distro (e.g. using CentOS user-land while developing on Debian)
|
||||
- Multi-host scenarios (e.g. parent-child configurations)
|
||||
- Bleeding-edge scenarios (e.g. using the ACLK (**currently for internal-use only**))
|
||||
|
||||
The advantage of these scenarios is that they allow **reproducible** builds and testing
|
||||
for developers. This is the first iteration of the build-system to allow the team to use
|
||||
it and get used to it.
|
||||
|
||||
For configurations that involve building and running the agent alone, we still use
|
||||
`docker-compose` for consistency with more complex configurations. The more complex
|
||||
configurations allow the agent to be run in conjunction with parts of the cloud
|
||||
infrastructure (these parts of the code are not public), or with external brokers
|
||||
(such as VerneMQ for MQTT), or with other external tools (such as TSDB to allow the agent to
|
||||
export metrics). Note: no external TSDB scenarios are available in the first iteration,
|
||||
they will be added in subsequent iterations.
|
||||
|
||||
This differs from the packaging dockerfiles as it designed to be used for local development.
|
||||
The main difference is that these files are designed to support incremental compilation in
|
||||
the following way:
|
||||
|
||||
1. The initial build should be performed using `bin/clean-install.sh` to create a docker
|
||||
image with the agent built from the source tree and installed into standard system paths
|
||||
using `netdata-installer.sh`. In addition to the steps performed by the standard packaging
|
||||
builds a manifest is created to allow subsequent builds to be made incrementally using
|
||||
`make` inside the container. Any libraries that are required for 'bleeding-edge' development
|
||||
are added on top of the standard install.
|
||||
2. When the `bin/make-install.sh` script is used the docker container will be updated with
|
||||
a sanitized version of the current build-tree. The manifest will be used to line up the
|
||||
state of the incoming docker cache with `make`'s view of the file-system according to the
|
||||
manifest. This means the `make install` inside the container will only rebuild changes
|
||||
since the last time the disk image was created.
|
||||
|
||||
The exact improvement on the compile-cycle depends on the speed of the network connection
|
||||
to pull the netdata dependencies, but should shrink the time considerably. For example,
|
||||
on a macbook pro the initial install takes about 1min + network delay [Note: there is
|
||||
something bad happening with the standard installer at the end of the container build as
|
||||
it tries to kill the running agent - this is very slow and bad] and the incremental
|
||||
step only takes 15s. On a debian host with a fast network this reduces 1m30 -> 13s.
|
||||
|
||||
## Examples
|
||||
|
||||
1. Simple cross-compilation / cross-distro builds.
|
||||
|
||||
```bash
|
||||
build_external/bin/clean-install.sh arch current
|
||||
docker run -it --rm arch_current_dev
|
||||
echo >>daemon/main.c # Simulate edit by touching file
|
||||
build_external/bin/make-install.sh arch current
|
||||
docker run -it --rm arch_current_dev
|
||||
```
|
||||
|
||||
Currently there is no detection of when the installer needs to be rerun (really this is
|
||||
when the `autoreconf` / `configure` step must be rerun). Netdata was not written with
|
||||
multi-stage builds in mind and we need to work out how to do this in the future. For now
|
||||
it is up to you to know when you need to rerun the clean build step.
|
||||
|
||||
```bash
|
||||
build_external/bin/clean-install.sh arch current
|
||||
build_external/bin/clean-install.sh ubuntu 19.10
|
||||
docker run -it --rm arch_current_dev
|
||||
echo >>daemon/main.c # Simulate edit by touching file
|
||||
build_external/bin/make-install.sh arch current
|
||||
docker run -it --rm arch_current_dev
|
||||
echo >>daemon/daemon.c # Simulate second edit step
|
||||
build_external/bin/make-install.sh arch current # Observe a single file is rebuilt
|
||||
build_external/bin/make-install.sh arch current # Observe both files are rebuilt
|
||||
```
|
||||
|
||||
The state of the build in the two containers is independent.
|
||||
|
||||
2. Single agent config in docker-compose
|
||||
|
||||
This functions the same as the previous example but is wrapped in docker-compose to
|
||||
allow injection into more complex test configurations.
|
||||
|
||||
```bash
|
||||
Distro=debian Version=10 docker-compose -f projects/only-agent/docker-compose.yml up
|
||||
```
|
||||
|
||||
Note: it is possible to run multiple copies of the agent using the `--scale` option for
|
||||
`docker-compose up`.
|
||||
|
||||
```bash
|
||||
Distro=debian Version=10 docker-compose -f projects/only-agent/docker-compose.yml up --scale agent=3
|
||||
```
|
||||
|
||||
3. A simple parent-child scenario
|
||||
|
||||
```bash
|
||||
# Need to call clean-install on the configs used in the parent-child containers
|
||||
docker-compose -f parent-child/docker-compose.yml up --scale agent_child1=2
|
||||
```
|
||||
|
||||
Note: this is not production ready yet, but it is left in so that we can see how it behaves
|
||||
and improve it. Currently it produces the following problems:
|
||||
* Only the base-configuration in the compose without scaling works.
|
||||
* The containers are hard-coded in the compose.
|
||||
* There is no way to separate the agent configurations, so running multiple agent child nodes with the same GUID kills
|
||||
the parent which exits with a fatal condition.
|
||||
|
||||
4. The ACLK
|
||||
|
||||
This is for internal use only as it requires access to a private repo. Clone the vernemq-docker
|
||||
repo and follow the instructions within to build an image called `vernemq`.
|
||||
|
||||
```bash
|
||||
build_external/bin/clean-install.sh arch current # Only needed first time
|
||||
docker-compose -f build_external/projects/aclk-testing/vernemq-compose.yml -f build_external/projects/aclk-testing/agent-compose.yml up --build
|
||||
```
|
||||
|
||||
Notes:
|
||||
* We are currently limited to arch because of restrictions on libwebsockets
|
||||
* There is not yet a good way to configure the target agent container from the docker-compose command line.
|
||||
* Several other containers should be in this compose (a paho client, tshark etc).
|
||||
|
||||
|
|
@ -1,54 +0,0 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
DISTRO="$1"
|
||||
VERSION="$2"
|
||||
BuildBase="$(cd "$(dirname "$0")" && cd .. && pwd)"
|
||||
|
||||
# This is temporary - not all of the package-builder images from the helper-images repo
|
||||
# are available on Docker Hub. When everything falls under the "happy case" below this
|
||||
# can be deleted in a future iteration. This is written in a weird way for portability,
|
||||
# can't rely on bash 4.0+ to allow case fall-through with ;&
|
||||
|
||||
if cat <<HAPPY_CASE | grep "$DISTRO-$VERSION"
|
||||
opensuse-15.1
|
||||
fedora-29
|
||||
debian-9
|
||||
debian-8
|
||||
fedora-30
|
||||
opensuse-15.0
|
||||
ubuntu-19.04
|
||||
centos-7
|
||||
fedora-31
|
||||
ubuntu-16.04
|
||||
ubuntu-18.04
|
||||
ubuntu-19.10
|
||||
debian-10
|
||||
centos-8
|
||||
ubuntu-1804
|
||||
ubuntu-1904
|
||||
ubuntu-1910
|
||||
debian-stretch
|
||||
debian-jessie
|
||||
debian-buster
|
||||
HAPPY_CASE
|
||||
then
|
||||
docker build -f "$BuildBase/clean-install.Dockerfile" -t "${DISTRO}_${VERSION}_dev" "$BuildBase/.." \
|
||||
--build-arg "DISTRO=$DISTRO" --build-arg "VERSION=$VERSION" \
|
||||
--build-arg EXTRA_CFLAGS="-DACLK_SSL_ALLOW_SELF_SIGNED"
|
||||
else
|
||||
case "$DISTRO-$VERSION" in
|
||||
arch-current)
|
||||
docker build -f "$BuildBase/clean-install-arch.Dockerfile" -t "${DISTRO}_${VERSION}_dev" "$BuildBase/.." \
|
||||
--build-arg "DISTRO=$DISTRO" --build-arg "VERSION=$VERSION" \
|
||||
--build-arg EXTRA_CFLAGS="-DACLK_SSL_ALLOW_SELF_SIGNED" # --no-cache
|
||||
;;
|
||||
arch-extras) # Add valgrind to the container
|
||||
docker build -f "$BuildBase/clean-install-arch-extras.Dockerfile" -t "${DISTRO}_${VERSION}_dev" "$BuildBase/.." \
|
||||
--build-arg "DISTRO=$DISTRO" --build-arg "VERSION=$VERSION" \
|
||||
--build-arg EXTRA_CFLAGS="-DACLK_SSL_ALLOW_SELF_SIGNED" # --no-cache
|
||||
;;
|
||||
*)
|
||||
echo "Unknown $DISTRO-$VERSION"
|
||||
;;
|
||||
esac
|
||||
fi
|
|
@ -1,8 +0,0 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
DISTRO="$1"
|
||||
VERSION="$2"
|
||||
BuildBase="$(cd "$(dirname "$0")" && cd .. && pwd)"
|
||||
|
||||
docker build -f "$BuildBase/make-install.Dockerfile" -t "${DISTRO}_${VERSION}_dev:latest" "$BuildBase/.." \
|
||||
--build-arg "DISTRO=${DISTRO}" --build-arg "VERSION=${VERSION}"
|
|
@ -1,63 +0,0 @@
|
|||
FROM archlinux/base:latest
|
||||
|
||||
# There is some redundancy between this file and the archlinux Dockerfile in the helper images
|
||||
# repo and also with the clean-install.Dockerfile. Once the help image is available on Docker
|
||||
# Hub this file can be deleted.
|
||||
RUN echo sdlsjdkls
|
||||
RUN pacman -Syyu --noconfirm
|
||||
RUN pacman --noconfirm --needed -S autoconf \
|
||||
autoconf-archive \
|
||||
autogen \
|
||||
automake \
|
||||
gcc \
|
||||
make \
|
||||
git \
|
||||
libuv \
|
||||
lz4 \
|
||||
netcat \
|
||||
openssl \
|
||||
pkgconfig \
|
||||
python \
|
||||
libvirt \
|
||||
cmake \
|
||||
valgrind \
|
||||
gdb
|
||||
|
||||
ARG EXTRA_CFLAGS
|
||||
COPY . /opt/netdata/source
|
||||
WORKDIR /opt/netdata/source
|
||||
|
||||
RUN git config --global user.email "root@container"
|
||||
RUN git config --global user.name "Fake root"
|
||||
|
||||
# RUN make distclean -> not safe if tree state changed on host since last config
|
||||
# Kill everything that is not in .gitignore preserving any fresh changes, i.e. untracked changes will be
|
||||
# deleted but local changes to tracked files will be preserved.
|
||||
RUN if git status --porcelain | grep '^[MADRC]'; then \
|
||||
git stash && git clean -dxf && (git stash apply || true) \
|
||||
else \
|
||||
git clean -dxf ; \
|
||||
fi
|
||||
|
||||
# Not everybody is updating distclean properly - fix.
|
||||
RUN find . -name '*.Po' -exec rm \{\} \;
|
||||
RUN rm -rf autom4te.cache
|
||||
RUN rm -rf .git/
|
||||
RUN find . -type f >/opt/netdata/manifest
|
||||
|
||||
RUN CFLAGS="-Og -g -ggdb -Wall -Wextra -Wformat-signedness -DNETDATA_INTERNAL_CHECKS=1\
|
||||
-DNETDATA_VERIFY_LOCKS=1 ${EXTRA_CFLAGS}" ./netdata-installer.sh --require-cloud --disable-lto
|
||||
|
||||
RUN ln -sf /dev/stdout /var/log/netdata/access.log && \
|
||||
ln -sf /dev/stdout /var/log/netdata/debug.log && \
|
||||
ln -sf /dev/stderr /var/log/netdata/error.log && \
|
||||
ln -sf /dev/stdout /var/log/netdata/fluentbit.log
|
||||
|
||||
RUN printf >/opt/netdata/source/gdb_batch '\
|
||||
set args -D \n\
|
||||
handle SIG32 nostop \n\
|
||||
run \n\
|
||||
bt'
|
||||
|
||||
#CMD ["/usr/sbin/valgrind", "--leak-check=full", "/usr/sbin/netdata", "-D"]
|
||||
CMD ["/usr/bin/gdb", "-x", "/opt/netdata/source/gdb_batch", "/usr/sbin/netdata"]
|
|
@ -1,59 +0,0 @@
|
|||
FROM archlinux/base:latest
|
||||
|
||||
# There is some redundancy between this file and the archlinux Dockerfile in the helper images
|
||||
# repo and also with the clean-install.Dockerfile. Once the help image is available on Docker
|
||||
# Hub this file can be deleted.
|
||||
RUN echo sdlsjdkls
|
||||
RUN pacman -Syyu --noconfirm
|
||||
RUN pacman --noconfirm --needed -S autoconf \
|
||||
autoconf-archive \
|
||||
autogen \
|
||||
automake \
|
||||
gcc \
|
||||
make \
|
||||
git \
|
||||
libuv \
|
||||
lz4 \
|
||||
netcat \
|
||||
openssl \
|
||||
pkgconfig \
|
||||
python \
|
||||
libvirt \
|
||||
cmake \
|
||||
valgrind \
|
||||
gdb
|
||||
|
||||
ARG EXTRA_CFLAGS
|
||||
COPY . /opt/netdata/source
|
||||
WORKDIR /opt/netdata/source
|
||||
|
||||
RUN git config --global user.email "root@container"
|
||||
RUN git config --global user.name "Fake root"
|
||||
|
||||
# RUN make distclean -> not safe if tree state changed on host since last config
|
||||
# Kill everything that is not in .gitignore preserving any fresh changes, i.e. untracked changes will be
|
||||
# deleted but local changes to tracked files will be preserved.
|
||||
RUN if git status --porcelain | grep '^[MADRC]'; then \
|
||||
git stash && git clean -dxf && (git stash apply || true) \
|
||||
else \
|
||||
git clean -dxf ; \
|
||||
fi
|
||||
|
||||
# Not everybody is updating distclean properly - fix.
|
||||
RUN find . -name '*.Po' -exec rm \{\} \;
|
||||
RUN rm -rf autom4te.cache
|
||||
RUN rm -rf .git/
|
||||
RUN find . -type f >/opt/netdata/manifest
|
||||
|
||||
RUN CFLAGS="-Og -g -ggdb -Wall -Wextra -Wformat-signedness -DNETDATA_INTERNAL_CHECKS=1\
|
||||
-DNETDATA_VERIFY_LOCKS=1 ${EXTRA_CFLAGS}" ./netdata-installer.sh --require-cloud --disable-lto
|
||||
|
||||
RUN ln -sf /dev/stdout /var/log/netdata/access.log && \
|
||||
ln -sf /dev/stdout /var/log/netdata/debug.log && \
|
||||
ln -sf /dev/stderr /var/log/netdata/error.log && \
|
||||
ln -sf /dev/stdout /var/log/netdata/fluentbit.log
|
||||
|
||||
RUN rm /var/lib/netdata/registry/netdata.public.unique.id
|
||||
|
||||
CMD ["/usr/sbin/valgrind", "--leak-check=full", "/usr/sbin/netdata", "-D"]
|
||||
|
|
@ -1,55 +0,0 @@
|
|||
FROM archlinux/base:latest
|
||||
|
||||
# There is some redundancy between this file and the archlinux Dockerfile in the helper images
|
||||
# repo and also with the clean-install.Dockerfile. Once the help image is available on Docker
|
||||
# Hub this file can be deleted.
|
||||
|
||||
RUN pacman -Sy
|
||||
RUN pacman --noconfirm --needed -S autoconf \
|
||||
autoconf-archive \
|
||||
autogen \
|
||||
automake \
|
||||
gcc \
|
||||
make \
|
||||
git \
|
||||
libuv \
|
||||
lz4 \
|
||||
netcat \
|
||||
openssl \
|
||||
pkgconfig \
|
||||
python \
|
||||
libvirt \
|
||||
cmake
|
||||
|
||||
ARG ACLK=no
|
||||
ARG EXTRA_CFLAGS
|
||||
COPY . /opt/netdata/source
|
||||
WORKDIR /opt/netdata/source
|
||||
|
||||
RUN git config --global user.email "root@container"
|
||||
RUN git config --global user.name "Fake root"
|
||||
|
||||
# RUN make distclean -> not safe if tree state changed on host since last config
|
||||
# Kill everything that is not in .gitignore preserving any fresh changes, i.e. untracked changes will be
|
||||
# deleted but local changes to tracked files will be preserved.
|
||||
RUN if git status --porcelain | grep '^[MADRC]'; then \
|
||||
git stash && git clean -dxf && (git stash apply || true) \
|
||||
else \
|
||||
git clean -dxf ; \
|
||||
fi
|
||||
|
||||
# Not everybody is updating distclean properly - fix.
|
||||
RUN find . -name '*.Po' -exec rm \{\} \;
|
||||
RUN rm -rf autom4te.cache
|
||||
RUN rm -rf .git/
|
||||
RUN find . -type f >/opt/netdata/manifest
|
||||
|
||||
RUN CFLAGS="-O1 -ggdb -Wall -Wextra -Wformat-signedness -DNETDATA_INTERNAL_CHECKS=1\
|
||||
-DNETDATA_VERIFY_LOCKS=1 ${EXTRA_CFLAGS}" ./netdata-installer.sh --disable-lto
|
||||
|
||||
RUN ln -sf /dev/stdout /var/log/netdata/access.log && \
|
||||
ln -sf /dev/stdout /var/log/netdata/debug.log && \
|
||||
ln -sf /dev/stderr /var/log/netdata/error.log && \
|
||||
ln -sf /dev/stdout /var/log/netdata/fluentbit.log
|
||||
|
||||
CMD ["/usr/sbin/netdata", "-D"]
|
|
@ -1,40 +0,0 @@
|
|||
ARG DISTRO=arch
|
||||
ARG VERSION=current
|
||||
FROM netdata/package-builders:${DISTRO}${VERSION}
|
||||
|
||||
ARG ACLK=no
|
||||
ARG EXTRA_CFLAGS
|
||||
|
||||
COPY . /opt/netdata/source
|
||||
WORKDIR /opt/netdata/source
|
||||
|
||||
RUN git config --global user.email "root@container"
|
||||
RUN git config --global user.name "Fake root"
|
||||
|
||||
# RUN make distclean -> not safe if tree state changed on host since last config
|
||||
# Kill everything that is not in .gitignore preserving any fresh changes, i.e. untracked changes will be
|
||||
# deleted but local changes to tracked files will be preserved.
|
||||
RUN if git status --porcelain | grep '^[MADRC]'; then \
|
||||
git stash && git clean -dxf && (git stash apply || true) \
|
||||
else \
|
||||
git clean -dxf ; \
|
||||
fi
|
||||
|
||||
# Not everybody is updating distclean properly - fix.
|
||||
RUN find . -name '*.Po' -exec rm \{\} \;
|
||||
RUN rm -rf autom4te.cache
|
||||
RUN rm -rf .git/
|
||||
RUN find . -type f >/opt/netdata/manifest
|
||||
|
||||
RUN CFLAGS="-O1 -ggdb -Wall -Wextra -Wformat-signedness -DNETDATA_INTERNAL_CHECKS=1\
|
||||
-DNETDATA_VERIFY_LOCKS=1 ${EXTRA_CFLAGS}" ./netdata-installer.sh --disable-lto
|
||||
|
||||
RUN ln -sf /dev/stdout /var/log/netdata/access.log && \
|
||||
ln -sf /dev/stdout /var/log/netdata/debug.log && \
|
||||
ln -sf /dev/stderr /var/log/netdata/error.log && \
|
||||
ln -sf /dev/stdout /var/log/netdata/fluentbit.log
|
||||
|
||||
RUN rm /var/lib/netdata/registry/netdata.public.unique.id
|
||||
|
||||
CMD ["/usr/sbin/netdata","-D"]
|
||||
ENTRYPOINT []
|
|
@ -1,11 +0,0 @@
|
|||
ARG DISTRO=arch
|
||||
ARG VERSION=current
|
||||
|
||||
FROM ${DISTRO}_${VERSION}_dev:latest
|
||||
|
||||
# Sanitize new source tree by removing config-time state
|
||||
COPY . /opt/netdata/latest
|
||||
WORKDIR /opt/netdata/latest
|
||||
RUN while read -r f; do cp -p "$f" "../source/$f"; done <../manifest
|
||||
WORKDIR /opt/netdata/source
|
||||
RUN make install
|
|
@ -1,18 +0,0 @@
|
|||
version: '3.3'
|
||||
services:
|
||||
agent_parent:
|
||||
build:
|
||||
context: ../../..
|
||||
dockerfile: build_external/make-install.Dockerfile
|
||||
args:
|
||||
- DISTRO=arch
|
||||
- VERSION=current
|
||||
image: arch_current_dev:latest
|
||||
command: >
|
||||
sh -c "echo -n 00000000-0000-0000-0000-000000000000 >/var/lib/netdata/cloud.d/claimed_id &&
|
||||
echo '[agent_cloud_link]' >>/etc/netdata/netdata.conf &&
|
||||
echo ' agent cloud link hostname = vernemq' >>/etc/netdata/netdata.conf &&
|
||||
echo ' agent cloud link port = 9002' >>/etc/netdata/netdata.conf &&
|
||||
/usr/sbin/netdata -D"
|
||||
ports:
|
||||
- 20000:19999
|
|
@ -1,18 +0,0 @@
|
|||
version: '3.3'
|
||||
services:
|
||||
agent_parent:
|
||||
build:
|
||||
context: ../../..
|
||||
dockerfile: build_external/make-install.Dockerfile
|
||||
args:
|
||||
- DISTRO=arch
|
||||
- VERSION=extras
|
||||
image: arch_extras_dev:latest
|
||||
command: >
|
||||
sh -c "echo -n 00000000-0000-0000-0000-000000000000 >/var/lib/netdata/cloud.d/claimed_id &&
|
||||
echo '[agent_cloud_link]' >>/etc/netdata/netdata.conf &&
|
||||
echo ' agent cloud link hostname = vernemq' >>/etc/netdata/netdata.conf &&
|
||||
echo ' agent cloud link port = 9002' >>/etc/netdata/netdata.conf &&
|
||||
/usr/sbin/valgrind --leak-check=full /usr/sbin/netdata -D -W debug_flags=0x200000000"
|
||||
ports:
|
||||
- 20000:19999
|
File diff suppressed because it is too large
Load diff
|
@ -1,8 +0,0 @@
|
|||
FROM vernemq:latest
|
||||
EXPOSE 9002
|
||||
COPY vernemq.conf /vernemq/etc/vernemq.conf
|
||||
WORKDIR /vernemq
|
||||
#RUN openssl req -newkey rsa:2048 -nodes -keyout server.key -x509 -days 365 -out server.crt -subj '/CN=vernemq'
|
||||
RUN openssl req -newkey rsa:4096 -x509 -sha256 -days 3650 -nodes -out server.crt -keyout server.key -subj "/C=SK/ST=XX/L=XX/O=NetdataIsAwesome/OU=NotSupremeLeader/CN=netdata.cloud"
|
||||
RUN chown vernemq:vernemq /vernemq/server.key /vernemq/server.crt
|
||||
RUN cat /vernemq/etc/vernemq.conf
|
|
@ -1,6 +0,0 @@
|
|||
version: '3.3'
|
||||
services:
|
||||
paho_inspect:
|
||||
build:
|
||||
context: .
|
||||
dockerfile: paho.Dockerfile
|
|
@ -1,33 +0,0 @@
|
|||
import ssl
|
||||
import paho.mqtt.client as mqtt
|
||||
|
||||
def on_connect(mqttc, obj, flags, rc):
|
||||
print("connected rc: "+str(rc), flush=True)
|
||||
mqttc.subscribe("/agent/#",0)
|
||||
def on_disconnect(mqttc, obj, flags, rc):
|
||||
print("disconnected rc: "+str(rc), flush=True)
|
||||
def on_message(mqttc, obj, msg):
|
||||
print(msg.topic+" "+str(msg.qos)+" "+str(msg.payload), flush=True)
|
||||
def on_publish(mqttc, obj, mid):
|
||||
print("mid: "+str(mid), flush=True)
|
||||
def on_subscribe(mqttc, obj, mid, granted_qos):
|
||||
print("Subscribed: "+str(mid)+" "+str(granted_qos), flush=True)
|
||||
def on_log(mqttc, obj, level, string):
|
||||
print(string)
|
||||
print("Starting paho-inspection", flush=True)
|
||||
mqttc = mqtt.Client(transport='websockets')
|
||||
#mqttc.tls_set(certfile="server.crt", keyfile="server.key", cert_reqs=ssl.CERT_REQUIRED, tls_version=ssl.PROTOCOL_TLS, ciphers=None)
|
||||
#mqttc.tls_set(ca_certs="server.crt", cert_reqs=ssl.CERT_REQUIRED, tls_version=ssl.PROTOCOL_TLS, ciphers=None)
|
||||
mqttc.tls_set(cert_reqs=ssl.CERT_NONE, tls_version=ssl.PROTOCOL_TLS, ciphers=None)
|
||||
mqttc.tls_insecure_set(True)
|
||||
mqttc.on_message = on_message
|
||||
mqttc.on_connect = on_connect
|
||||
mqttc.on_disconnect = on_disconnect
|
||||
mqttc.on_publish = on_publish
|
||||
mqttc.on_subscribe = on_subscribe
|
||||
mqttc.connect("vernemq", 9002, 60)
|
||||
|
||||
#mqttc.publish("/agent/mine","Test1")
|
||||
#mqttc.subscribe("$SYS/#", 0)
|
||||
print("Connected successfully, monitoring /agent/#", flush=True)
|
||||
mqttc.loop_forever()
|
|
@ -1,12 +0,0 @@
|
|||
FROM archlinux/base:latest
|
||||
|
||||
RUN pacman -Syyu --noconfirm
|
||||
RUN pacman --noconfirm --needed -S python-pip
|
||||
|
||||
RUN pip install paho-mqtt
|
||||
|
||||
RUN mkdir -p /opt/paho
|
||||
COPY paho-inspection.py /opt/paho/
|
||||
|
||||
WORKDIR /opt/paho
|
||||
CMD ["/usr/sbin/python", "paho-inspection.py"]
|
|
@ -1,6 +0,0 @@
|
|||
version: '3.3'
|
||||
services:
|
||||
vernemq:
|
||||
build:
|
||||
dockerfile: configureVerneMQ.Dockerfile
|
||||
context: .
|
|
@ -1,68 +0,0 @@
|
|||
allow_anonymous = on
|
||||
allow_register_during_netsplit = off
|
||||
allow_publish_during_netsplit = off
|
||||
allow_subscribe_during_netsplit = off
|
||||
allow_unsubscribe_during_netsplit = off
|
||||
allow_multiple_sessions = off
|
||||
coordinate_registrations = on
|
||||
max_inflight_messages = 20
|
||||
max_online_messages = 1000
|
||||
max_offline_messages = 1000
|
||||
max_message_size = 0
|
||||
upgrade_outgoing_qos = off
|
||||
listener.max_connections = 10000
|
||||
listener.nr_of_acceptors = 10
|
||||
listener.tcp.default = 127.0.0.1:1883
|
||||
listener.wss.keyfile = /vernemq/server.key
|
||||
listener.wss.certfile = /vernemq/server.crt
|
||||
listener.wss.default = 0.0.0.0:9002
|
||||
listener.vmq.clustering = 0.0.0.0:44053
|
||||
listener.http.default = 127.0.0.1:8888
|
||||
listener.ssl.require_certificate = off
|
||||
listener.wss.require_certificate = off
|
||||
systree_enabled = on
|
||||
systree_interval = 20000
|
||||
graphite_enabled = off
|
||||
graphite_host = localhost
|
||||
graphite_port = 2003
|
||||
graphite_interval = 20000
|
||||
shared_subscription_policy = prefer_local
|
||||
plugins.vmq_passwd = on
|
||||
plugins.vmq_acl = on
|
||||
plugins.vmq_diversity = off
|
||||
plugins.vmq_webhooks = off
|
||||
plugins.vmq_bridge = off
|
||||
metadata_plugin = vmq_plumtree
|
||||
vmq_acl.acl_file = ./etc/vmq.acl
|
||||
vmq_acl.acl_reload_interval = 10
|
||||
vmq_passwd.password_file = ./etc/vmq.passwd
|
||||
vmq_passwd.password_reload_interval = 10
|
||||
vmq_diversity.script_dir = ./share/lua
|
||||
vmq_diversity.auth_postgres.enabled = off
|
||||
vmq_diversity.postgres.ssl = off
|
||||
vmq_diversity.postgres.password_hash_method = crypt
|
||||
vmq_diversity.auth_cockroachdb.enabled = off
|
||||
vmq_diversity.cockroachdb.ssl = on
|
||||
vmq_diversity.cockroachdb.password_hash_method = bcrypt
|
||||
vmq_diversity.auth_mysql.enabled = off
|
||||
vmq_diversity.mysql.password_hash_method = password
|
||||
vmq_diversity.auth_mongodb.enabled = off
|
||||
vmq_diversity.mongodb.ssl = off
|
||||
vmq_diversity.auth_redis.enabled = off
|
||||
vmq_bcrypt.pool_size = 1
|
||||
log.console = file
|
||||
log.console.level = info
|
||||
log.console.file = ./log/console.log
|
||||
log.error.file = ./log/error.log
|
||||
log.syslog = off
|
||||
log.crash = on
|
||||
log.crash.file = ./log/crash.log
|
||||
log.crash.maximum_message_size = 64KB
|
||||
log.crash.size = 10MB
|
||||
log.crash.rotation = $D0
|
||||
log.crash.rotation.keep = 5
|
||||
nodename = VerneMQ@127.0.0.1
|
||||
distributed_cookie = vmq
|
||||
erlang.async_threads = 64
|
||||
erlang.max_ports = 262144
|
||||
leveldb.maximum_memory.percent = 70
|
|
@ -1,10 +0,0 @@
|
|||
# Stream children to localhost
|
||||
|
||||
1. Run `docker-compose up --scale=50`
|
||||
2. Copy `parent_stream.conf` to the `stream.conf` of a local agent
|
||||
3. Restart the local agent
|
||||
|
||||
You'll have 50 child agents streaming to the parent agent that runs locally.
|
||||
|
||||
Useful for easily stress testing, restarting, profiling, debugging, etc, a
|
||||
locally-built agent during development.
|
|
@ -1,2 +0,0 @@
|
|||
[db]
|
||||
mode = dbengine
|
|
@ -1,10 +0,0 @@
|
|||
[stream]
|
||||
enabled = yes
|
||||
destination = tcp:host.docker.internal
|
||||
api key = 11111111-2222-3333-4444-555555555555
|
||||
timeout seconds = 60
|
||||
default port = 19999
|
||||
send charts matching = *
|
||||
buffer size bytes = 1048576
|
||||
reconnect delay seconds = 5
|
||||
initial clock resync iterations = 60
|
|
@ -1,10 +0,0 @@
|
|||
version: '3.3'
|
||||
services:
|
||||
child:
|
||||
image: netdata/netdata
|
||||
command: /usr/sbin/netdata -D
|
||||
volumes:
|
||||
- ./child_stream.conf:/etc/netdata/stream.conf:ro
|
||||
- ./child_netdata.conf:/etc/netdata/netdata.conf:ro
|
||||
extra_hosts:
|
||||
- "host.docker.internal:host-gateway"
|
|
@ -1,7 +0,0 @@
|
|||
[11111111-2222-3333-4444-555555555555]
|
||||
enabled = yes
|
||||
allow from = *
|
||||
default history = 3600
|
||||
health enabled by default = auto
|
||||
default postpone alarms on connect seconds = 60
|
||||
multiple connections = allow
|
|
@ -1,13 +0,0 @@
|
|||
version: '3.3'
|
||||
services:
|
||||
agent_child:
|
||||
image: debian_10_dev
|
||||
command: /usr/sbin/netdata -D
|
||||
#ports:
|
||||
#- 21002+:19999
|
||||
volumes:
|
||||
- ./child_stream.conf:/etc/netdata/stream.conf:ro
|
||||
#- ./child_guid:/var/lib/netdata/registry/netdata.public.unique.id:ro
|
||||
- ./min.conf:/etc/netdata/netdata.conf:ro
|
||||
cap_add:
|
||||
- SYS_PTRACE
|
|
@ -1 +0,0 @@
|
|||
22222222-2222-2222-2222-222222222222
|
|
@ -1,11 +0,0 @@
|
|||
[stream]
|
||||
enabled = yes
|
||||
# destination = tcp:agent_middle
|
||||
destination = tcp:192.168.1.2
|
||||
api key = 00000000-0000-0000-0000-000000000000
|
||||
timeout seconds = 60
|
||||
default port = 19999
|
||||
send charts matching = *
|
||||
buffer size bytes = 10485760
|
||||
reconnect delay seconds = 5
|
||||
initial clock resync iterations = 60
|
|
@ -1,13 +0,0 @@
|
|||
version: '3.3'
|
||||
services:
|
||||
agent_middle:
|
||||
image: debian_10_dev
|
||||
command: /usr/sbin/netdata -D
|
||||
ports:
|
||||
- 21001:19999
|
||||
volumes:
|
||||
- ./middle_stream.conf:/etc/netdata/stream.conf:ro
|
||||
- ./middle_guid:/var/lib/netdata/registry/netdata.public.unique.id:ro
|
||||
- ./min.conf:/etc/netdata/netdata.conf:ro
|
||||
cap_add:
|
||||
- SYS_PTRACE
|
|
@ -1 +0,0 @@
|
|||
11111111-1111-1111-1111-111111111111
|
|
@ -1,23 +0,0 @@
|
|||
[stream]
|
||||
enabled = yes
|
||||
destination = tcp:agent_parent
|
||||
api key = 00000000-0000-0000-0000-000000000000
|
||||
timeout seconds = 60
|
||||
default port = 19999
|
||||
|
||||
send charts matching = *
|
||||
buffer size bytes = 1048576
|
||||
reconnect delay seconds = 5
|
||||
initial clock resync iterations = 60
|
||||
|
||||
[00000000-0000-0000-0000-000000000000]
|
||||
enabled = yes
|
||||
allow from = *
|
||||
default history = 3600
|
||||
# default memory mode = ram
|
||||
|
||||
health enabled by default = auto
|
||||
|
||||
# postpone alarms for a short period after the sender is connected
|
||||
default postpone alarms on connect seconds = 60
|
||||
multiple connections = allow
|
|
@ -1,6 +0,0 @@
|
|||
[global]
|
||||
debug flags = 0x0000000040000000
|
||||
errors flood protection period = 0
|
||||
[web]
|
||||
ssl key = /etc/netdata/ssl/key.pem
|
||||
ssl certificate = /etc/netdata/ssl/cert.pem
|
|
@ -1,13 +0,0 @@
|
|||
version: '3.3'
|
||||
services:
|
||||
agent_parent:
|
||||
image: debian_10_dev
|
||||
command: /usr/sbin/netdata -D
|
||||
ports:
|
||||
- 21000:19999
|
||||
volumes:
|
||||
- ./parent_stream.conf:/etc/netdata/stream.conf:ro
|
||||
- ./parent_guid:/var/lib/netdata/registry/netdata.public.unique.id:ro
|
||||
- ./min.conf:/etc/netdata/netdata.conf:ro
|
||||
cap_add:
|
||||
- SYS_PTRACE
|
|
@ -1 +0,0 @@
|
|||
00000000-0000-0000-0000-000000000000
|
|
@ -1,11 +0,0 @@
|
|||
[00000000-0000-0000-0000-000000000000]
|
||||
enabled = yes
|
||||
allow from = *
|
||||
default history = 3600
|
||||
default memory mode = dbengine
|
||||
health enabled by default = no
|
||||
|
||||
# postpone alarms for a short period after the sender is connected
|
||||
default postpone alarms on connect seconds = 60
|
||||
multiple connections = allow
|
||||
|
|
@ -1,14 +0,0 @@
|
|||
version: '3.3'
|
||||
services:
|
||||
agent_child:
|
||||
image: arch_extras_dev
|
||||
#command: /usr/sbin/valgrind --leak-check=full /usr/sbin/netdata -D
|
||||
command: /usr/sbin/netdata -D # gdb does not like valgrind !
|
||||
#ports:
|
||||
#- 21002:19999
|
||||
volumes:
|
||||
- ./child_stream.conf:/etc/netdata/stream.conf:ro
|
||||
# - ./child_guid:/var/lib/netdata/registry/netdata.public.unique.id:ro
|
||||
- ./mostly_off.conf:/etc/netdata/netdata.conf:ro
|
||||
cap_add:
|
||||
- SYS_PTRACE
|
|
@ -1 +0,0 @@
|
|||
22222222-2222-2222-2222-222222222222
|
|
@ -1,11 +0,0 @@
|
|||
[stream]
|
||||
# Enable this on child nodes, to have them send metrics.
|
||||
enabled = yes
|
||||
destination = tcp:192.168.1.2
|
||||
api key = 00000000-0000-0000-0000-000000000000
|
||||
timeout seconds = 60
|
||||
default port = 19999
|
||||
send charts matching = *
|
||||
buffer size bytes = 1048576
|
||||
reconnect delay seconds = 5
|
||||
initial clock resync iterations = 60
|
|
@ -1,14 +0,0 @@
|
|||
version: '3.3'
|
||||
services:
|
||||
agent_middle:
|
||||
image: arch_extras_dev
|
||||
#command: /usr/sbin/valgrind --leak-check=full /usr/sbin/netdata -D
|
||||
command: /usr/sbin/netdata -D
|
||||
ports:
|
||||
- 21001:19999
|
||||
volumes:
|
||||
- ./middle_stream.conf:/etc/netdata/stream.conf:ro
|
||||
- ./middle_guid:/var/lib/netdata/registry/netdata.public.unique.id:ro
|
||||
- ./mostly_off.conf:/etc/netdata/netdata.conf:ro
|
||||
cap_add:
|
||||
- SYS_PTRACE
|
|
@ -1 +0,0 @@
|
|||
11111111-1111-1111-1111-111111111111
|
|
@ -1,20 +0,0 @@
|
|||
[stream]
|
||||
enabled = yes
|
||||
destination = tcp:agent_parent
|
||||
api key = 00000000-0000-0000-0000-000000000000
|
||||
timeout seconds = 60
|
||||
default port = 19999
|
||||
send charts matching = *
|
||||
buffer size bytes = 1048576
|
||||
reconnect delay seconds = 5
|
||||
initial clock resync iterations = 60
|
||||
|
||||
[00000000-0000-0000-0000-000000000000]
|
||||
enabled = yes
|
||||
allow from = *
|
||||
default history = 3600
|
||||
# default memory mode = ram
|
||||
health enabled by default = auto
|
||||
# postpone alarms for a short period after the sender is connected
|
||||
default postpone alarms on connect seconds = 60
|
||||
multiple connections = allow
|
|
@ -1,966 +0,0 @@
|
|||
# netdata configuration
|
||||
#
|
||||
# You can download the latest version of this file, using:
|
||||
#
|
||||
# wget -O /etc/netdata/netdata.conf http://localhost:19999/netdata.conf
|
||||
# or
|
||||
# curl -o /etc/netdata/netdata.conf http://localhost:19999/netdata.conf
|
||||
#
|
||||
# You can uncomment and change any of the options below.
|
||||
# The value shown in the commented settings, is the default value.
|
||||
#
|
||||
|
||||
# global netdata configuration
|
||||
|
||||
[global]
|
||||
debug flags = 0x0000000040000000
|
||||
errors flood protection period = 0
|
||||
|
||||
[plugins]
|
||||
diskspace = no
|
||||
cgroups = no
|
||||
tc = no
|
||||
idlejitter = no
|
||||
ioping = no
|
||||
apps = no
|
||||
go.d = no
|
||||
perf = no
|
||||
python.d = no
|
||||
charts.d = no
|
||||
nfacct = no
|
||||
cups = no
|
||||
freeipmi = no
|
||||
|
||||
[health]
|
||||
enabled = no
|
||||
|
||||
[statsd]
|
||||
enabled = no
|
||||
|
||||
[plugin:proc]
|
||||
/proc/uptime = yes
|
||||
/proc/loadavg = no
|
||||
/proc/sys/kernel/random/entropy_avail = no
|
||||
/proc/pressure = no
|
||||
/proc/interrupts = no
|
||||
/proc/softirqs = no
|
||||
/proc/vmstat = no
|
||||
/proc/meminfo = no
|
||||
/sys/kernel/mm/ksm = no
|
||||
/sys/block/zram = no
|
||||
/sys/devices/system/edac/mc = no
|
||||
/sys/devices/system/node = no
|
||||
/proc/net/dev = no
|
||||
/proc/net/sockstat = no
|
||||
/proc/net/sockstat6 = no
|
||||
/proc/net/netstat = no
|
||||
/proc/net/snmp = no
|
||||
/proc/net/snmp6 = no
|
||||
/proc/net/sctp/snmp = no
|
||||
/proc/net/softnet_stat = no
|
||||
/proc/net/ip_vs/stats = no
|
||||
/proc/net/stat/conntrack = no
|
||||
/proc/net/stat/synproxy = no
|
||||
/proc/diskstats = no
|
||||
/proc/mdstat = no
|
||||
/proc/net/rpc/nfsd = no
|
||||
/proc/net/rpc/nfs = no
|
||||
/proc/spl/kstat/zfs/arcstats = no
|
||||
/sys/fs/btrfs = no
|
||||
ipc = no
|
||||
/sys/class/power_supply = no
|
||||
|
||||
|
||||
[plugin:proc:/proc/net/dev:docker0]
|
||||
enabled = no
|
||||
|
||||
[plugin:proc:/proc/net/dev:br-b87e56f878f1]
|
||||
enabled = no
|
||||
|
||||
[plugin:proc:/proc/net/dev:enp4s0]
|
||||
enabled = no
|
||||
|
||||
[plugin:proc:/proc/net/stat/nf_conntrack]
|
||||
filename to monitor = /proc/net/stat/nf_conntrack
|
||||
netfilter new connections = no
|
||||
netfilter connection changes = no
|
||||
netfilter connection expectations = no
|
||||
netfilter connection searches = no
|
||||
netfilter errors = no
|
||||
netfilter connections = no
|
||||
|
||||
[system.idlejitter]
|
||||
enabled = no
|
||||
|
||||
[netdata.statsd_metrics]
|
||||
enabled = no
|
||||
|
||||
[netdata.statsd_useful_metrics]
|
||||
enabled = no
|
||||
|
||||
[netdata.statsd_events]
|
||||
enabled = no
|
||||
|
||||
[netdata.statsd_reads]
|
||||
enabled = no
|
||||
|
||||
[netdata.statsd_bytes]
|
||||
enabled = no
|
||||
|
||||
[netdata.statsd_packets]
|
||||
enabled = no
|
||||
|
||||
[netdata.tcp_connects]
|
||||
enabled = no
|
||||
|
||||
[netdata.tcp_connected]
|
||||
enabled = no
|
||||
|
||||
[netdata.private_charts]
|
||||
enabled = no
|
||||
|
||||
[netdata.plugin_statsd_charting_cpu]
|
||||
enabled = no
|
||||
|
||||
[netdata.plugin_statsd_collector1_cpu]
|
||||
enabled = no
|
||||
|
||||
[netdata.plugin_tc_cpu]
|
||||
enabled = no
|
||||
|
||||
[netdata.plugin_tc_time]
|
||||
enabled = no
|
||||
|
||||
[netdata.runtime_sensors]
|
||||
enabled = no
|
||||
|
||||
[sensors.coretemp-isa-0000_temperature]
|
||||
enabled = no
|
||||
|
||||
[sensors.acpitz-acpi-0_temperature]
|
||||
enabled = no
|
||||
|
||||
[system.cpu]
|
||||
enabled = yes
|
||||
|
||||
[disk_space._dev]
|
||||
enabled = no
|
||||
|
||||
[netdata.plugin_cgroups_cpu]
|
||||
enabled = no
|
||||
|
||||
[netdata.apps_cpu]
|
||||
enabled = no
|
||||
|
||||
[netdata.apps_sizes]
|
||||
enabled = no
|
||||
|
||||
[netdata.apps_fix]
|
||||
enabled = no
|
||||
|
||||
[netdata.apps_children_fix]
|
||||
enabled = no
|
||||
|
||||
[apps.cpu]
|
||||
enabled = no
|
||||
|
||||
[apps.mem]
|
||||
enabled = no
|
||||
|
||||
[apps.vmem]
|
||||
enabled = no
|
||||
|
||||
[apps.threads]
|
||||
enabled = no
|
||||
|
||||
[apps.processes]
|
||||
enabled = no
|
||||
|
||||
[apps.uptime]
|
||||
enabled = no
|
||||
|
||||
[apps.uptime_min]
|
||||
enabled = no
|
||||
|
||||
[apps.uptime_avg]
|
||||
enabled = no
|
||||
|
||||
[apps.uptime_max]
|
||||
enabled = no
|
||||
|
||||
[apps.cpu_user]
|
||||
enabled = no
|
||||
|
||||
[apps.cpu_system]
|
||||
enabled = no
|
||||
|
||||
[apps.swap]
|
||||
enabled = no
|
||||
|
||||
[apps.major_faults]
|
||||
enabled = no
|
||||
|
||||
[apps.minor_faults]
|
||||
enabled = no
|
||||
|
||||
[apps.preads]
|
||||
enabled = no
|
||||
|
||||
[apps.pwrites]
|
||||
enabled = no
|
||||
|
||||
[apps.lreads]
|
||||
enabled = no
|
||||
|
||||
[apps.lwrites]
|
||||
enabled = no
|
||||
|
||||
[apps.files]
|
||||
enabled = no
|
||||
|
||||
[apps.sockets]
|
||||
enabled = no
|
||||
|
||||
[apps.pipes]
|
||||
enabled = no
|
||||
|
||||
[users.cpu]
|
||||
enabled = no
|
||||
|
||||
[users.mem]
|
||||
enabled = no
|
||||
|
||||
[users.vmem]
|
||||
enabled = no
|
||||
|
||||
[users.threads]
|
||||
enabled = no
|
||||
|
||||
[users.processes]
|
||||
enabled = no
|
||||
|
||||
[users.uptime]
|
||||
enabled = no
|
||||
|
||||
[users.uptime_min]
|
||||
enabled = no
|
||||
|
||||
[users.uptime_avg]
|
||||
enabled = no
|
||||
|
||||
[users.uptime_max]
|
||||
enabled = no
|
||||
|
||||
[users.cpu_user]
|
||||
enabled = no
|
||||
|
||||
[users.cpu_system]
|
||||
enabled = no
|
||||
|
||||
[users.swap]
|
||||
enabled = no
|
||||
|
||||
[users.major_faults]
|
||||
enabled = no
|
||||
|
||||
[users.minor_faults]
|
||||
enabled = no
|
||||
|
||||
[users.preads]
|
||||
enabled = no
|
||||
|
||||
[users.pwrites]
|
||||
enabled = no
|
||||
|
||||
[users.lreads]
|
||||
enabled = no
|
||||
|
||||
[users.lwrites]
|
||||
enabled = no
|
||||
|
||||
[users.files]
|
||||
enabled = no
|
||||
|
||||
[users.sockets]
|
||||
enabled = no
|
||||
|
||||
[users.pipes]
|
||||
enabled = no
|
||||
|
||||
[groups.cpu]
|
||||
enabled = no
|
||||
|
||||
[groups.mem]
|
||||
enabled = no
|
||||
|
||||
[groups.vmem]
|
||||
enabled = no
|
||||
|
||||
[groups.threads]
|
||||
enabled = no
|
||||
|
||||
[groups.processes]
|
||||
enabled = no
|
||||
|
||||
[groups.uptime]
|
||||
enabled = no
|
||||
|
||||
[groups.uptime_min]
|
||||
enabled = no
|
||||
|
||||
[groups.uptime_avg]
|
||||
enabled = no
|
||||
|
||||
[groups.uptime_max]
|
||||
enabled = no
|
||||
|
||||
[groups.cpu_user]
|
||||
enabled = no
|
||||
|
||||
[groups.cpu_system]
|
||||
enabled = no
|
||||
|
||||
[groups.swap]
|
||||
enabled = no
|
||||
|
||||
[groups.major_faults]
|
||||
enabled = no
|
||||
|
||||
[groups.minor_faults]
|
||||
enabled = no
|
||||
|
||||
[groups.preads]
|
||||
enabled = no
|
||||
|
||||
[groups.pwrites]
|
||||
enabled = no
|
||||
|
||||
[groups.lreads]
|
||||
enabled = no
|
||||
|
||||
[groups.lwrites]
|
||||
enabled = no
|
||||
|
||||
[groups.files]
|
||||
enabled = no
|
||||
|
||||
[groups.sockets]
|
||||
enabled = no
|
||||
|
||||
[groups.pipes]
|
||||
enabled = no
|
||||
|
||||
[netdata.web_thread4_cpu]
|
||||
enabled = no
|
||||
|
||||
[netdata.web_thread2_cpu]
|
||||
enabled = no
|
||||
|
||||
[netdata.web_thread5_cpu]
|
||||
enabled = no
|
||||
|
||||
[netdata.web_thread3_cpu]
|
||||
enabled = no
|
||||
|
||||
[netdata.web_thread6_cpu]
|
||||
enabled = no
|
||||
|
||||
[netdata.web_thread1_cpu]
|
||||
enabled = no
|
||||
|
||||
[disk_inodes._dev]
|
||||
enabled = no
|
||||
|
||||
[disk_space._run]
|
||||
enabled = no
|
||||
|
||||
[disk_inodes._run]
|
||||
enabled = no
|
||||
|
||||
[disk_space._]
|
||||
enabled = no
|
||||
|
||||
[disk_inodes._]
|
||||
enabled = no
|
||||
|
||||
[disk_space._dev_shm]
|
||||
enabled = no
|
||||
|
||||
[disk_inodes._dev_shm]
|
||||
enabled = no
|
||||
|
||||
[disk_space._run_lock]
|
||||
enabled = no
|
||||
|
||||
[disk_inodes._run_lock]
|
||||
enabled = no
|
||||
|
||||
[disk_space._home]
|
||||
enabled = no
|
||||
|
||||
[disk_inodes._home]
|
||||
enabled = no
|
||||
|
||||
[disk_space._boot_efi]
|
||||
enabled = no
|
||||
|
||||
[disk_space._media_amoss_deb10]
|
||||
enabled = no
|
||||
|
||||
[netdata.plugin_diskspace]
|
||||
enabled = no
|
||||
|
||||
[netdata.plugin_diskspace_dt]
|
||||
enabled = no
|
||||
|
||||
[cpu.cpu0]
|
||||
enabled = no
|
||||
|
||||
[cpu.cpu1]
|
||||
enabled = no
|
||||
|
||||
[cpu.cpu2]
|
||||
enabled = no
|
||||
|
||||
[cpu.cpu3]
|
||||
enabled = no
|
||||
|
||||
[cpu.cpu4]
|
||||
enabled = no
|
||||
|
||||
[cpu.cpu5]
|
||||
enabled = no
|
||||
|
||||
[cpu.cpu6]
|
||||
enabled = no
|
||||
|
||||
[cpu.cpu7]
|
||||
enabled = no
|
||||
|
||||
[system.intr]
|
||||
enabled = no
|
||||
|
||||
[system.ctxt]
|
||||
enabled = no
|
||||
|
||||
[system.forks]
|
||||
enabled = no
|
||||
|
||||
[system.processes]
|
||||
enabled = no
|
||||
|
||||
[cpu.core_throttling]
|
||||
enabled = no
|
||||
|
||||
[cpu.cpufreq]
|
||||
enabled = no
|
||||
|
||||
[cpu.cpu0_cpuidle]
|
||||
enabled = no
|
||||
|
||||
[cpu.cpu1_cpuidle]
|
||||
enabled = no
|
||||
|
||||
[cpu.cpu2_cpuidle]
|
||||
enabled = no
|
||||
|
||||
[cpu.cpu3_cpuidle]
|
||||
enabled = no
|
||||
|
||||
[cpu.cpu4_cpuidle]
|
||||
enabled = no
|
||||
|
||||
[cpu.cpu5_cpuidle]
|
||||
enabled = no
|
||||
|
||||
[cpu.cpu6_cpuidle]
|
||||
enabled = no
|
||||
|
||||
[cpu.cpu7_cpuidle]
|
||||
enabled = no
|
||||
|
||||
[system.uptime]
|
||||
enabled = yes
|
||||
|
||||
[system.load]
|
||||
enabled = no
|
||||
|
||||
[system.active_processes]
|
||||
enabled = no
|
||||
|
||||
[system.entropy]
|
||||
enabled = no
|
||||
|
||||
[system.interrupts]
|
||||
enabled = no
|
||||
|
||||
[cpu.cpu0_interrupts]
|
||||
enabled = no
|
||||
|
||||
[cpu.cpu1_interrupts]
|
||||
enabled = no
|
||||
|
||||
[cpu.cpu2_interrupts]
|
||||
enabled = no
|
||||
|
||||
[cpu.cpu3_interrupts]
|
||||
enabled = no
|
||||
|
||||
[cpu.cpu4_interrupts]
|
||||
enabled = no
|
||||
|
||||
[cpu.cpu5_interrupts]
|
||||
enabled = no
|
||||
|
||||
[cpu.cpu6_interrupts]
|
||||
enabled = no
|
||||
|
||||
[cpu.cpu7_interrupts]
|
||||
enabled = no
|
||||
|
||||
[system.softirqs]
|
||||
enabled = no
|
||||
|
||||
[cpu.cpu0_softirqs]
|
||||
enabled = no
|
||||
|
||||
[cpu.cpu1_softirqs]
|
||||
enabled = no
|
||||
|
||||
[cpu.cpu2_softirqs]
|
||||
enabled = no
|
||||
|
||||
[cpu.cpu3_softirqs]
|
||||
enabled = no
|
||||
|
||||
[cpu.cpu4_softirqs]
|
||||
enabled = no
|
||||
|
||||
[cpu.cpu5_softirqs]
|
||||
enabled = no
|
||||
|
||||
[cpu.cpu6_softirqs]
|
||||
enabled = no
|
||||
|
||||
[cpu.cpu7_softirqs]
|
||||
enabled = no
|
||||
|
||||
[mem.swapio]
|
||||
enabled = no
|
||||
|
||||
[system.pgpgio]
|
||||
enabled = no
|
||||
|
||||
[mem.pgfaults]
|
||||
enabled = no
|
||||
|
||||
[system.ram]
|
||||
enabled = no
|
||||
|
||||
[mem.available]
|
||||
enabled = no
|
||||
|
||||
[mem.swap]
|
||||
enabled = no
|
||||
|
||||
[mem.committed]
|
||||
enabled = no
|
||||
|
||||
[mem.writeback]
|
||||
enabled = no
|
||||
|
||||
[mem.kernel]
|
||||
enabled = no
|
||||
|
||||
[mem.slab]
|
||||
enabled = no
|
||||
|
||||
[mem.transparent_hugepages]
|
||||
enabled = no
|
||||
|
||||
[net.docker0]
|
||||
enabled = no
|
||||
|
||||
[net_packets.docker0]
|
||||
enabled = no
|
||||
|
||||
[net.br-b87e56f878f1]
|
||||
enabled = no
|
||||
|
||||
[net_packets.br-b87e56f878f1]
|
||||
enabled = no
|
||||
|
||||
[net.enp4s0]
|
||||
enabled = no
|
||||
|
||||
[net_packets.enp4s0]
|
||||
enabled = no
|
||||
|
||||
[system.net]
|
||||
enabled = no
|
||||
|
||||
[ipv4.sockstat_sockets]
|
||||
enabled = no
|
||||
|
||||
[ipv4.sockstat_tcp_sockets]
|
||||
enabled = no
|
||||
|
||||
[ipv4.sockstat_tcp_mem]
|
||||
enabled = no
|
||||
|
||||
[ipv4.sockstat_udp_sockets]
|
||||
enabled = no
|
||||
|
||||
[ipv4.sockstat_udp_mem]
|
||||
enabled = no
|
||||
|
||||
[ipv4.sockstat_raw_sockets]
|
||||
enabled = no
|
||||
|
||||
[ipv6.sockstat6_tcp_sockets]
|
||||
enabled = no
|
||||
|
||||
[ipv6.sockstat6_udp_sockets]
|
||||
enabled = no
|
||||
|
||||
[ip.tcpconnaborts]
|
||||
enabled = no
|
||||
|
||||
[ip.tcpreorders]
|
||||
enabled = no
|
||||
|
||||
[ip.tcpofo]
|
||||
enabled = no
|
||||
|
||||
[system.ip]
|
||||
enabled = no
|
||||
|
||||
[ip.inerrors]
|
||||
enabled = no
|
||||
|
||||
[ip.mcast]
|
||||
enabled = no
|
||||
|
||||
[ip.bcast]
|
||||
enabled = no
|
||||
|
||||
[ip.mcastpkts]
|
||||
enabled = no
|
||||
|
||||
[ip.bcastpkts]
|
||||
enabled = no
|
||||
|
||||
[ip.ecnpkts]
|
||||
enabled = no
|
||||
|
||||
[ipv4.packets]
|
||||
enabled = no
|
||||
|
||||
[ipv4.fragsin]
|
||||
enabled = no
|
||||
|
||||
[ipv4.errors]
|
||||
enabled = no
|
||||
|
||||
[ipv4.icmp]
|
||||
enabled = no
|
||||
|
||||
[ipv4.icmp_errors]
|
||||
enabled = no
|
||||
|
||||
[ipv4.icmpmsg]
|
||||
enabled = no
|
||||
|
||||
[ipv4.tcpsock]
|
||||
enabled = no
|
||||
|
||||
[ipv4.tcppackets]
|
||||
enabled = no
|
||||
|
||||
[ipv4.tcperrors]
|
||||
enabled = no
|
||||
|
||||
[ipv4.tcpopens]
|
||||
enabled = no
|
||||
|
||||
[ipv4.tcphandshake]
|
||||
enabled = no
|
||||
|
||||
[ipv4.udppackets]
|
||||
enabled = no
|
||||
|
||||
[ipv4.udperrors]
|
||||
enabled = no
|
||||
|
||||
[system.ipv6]
|
||||
enabled = no
|
||||
|
||||
[ipv6.packets]
|
||||
enabled = no
|
||||
|
||||
[ipv6.errors]
|
||||
enabled = no
|
||||
|
||||
[ipv6.udppackets]
|
||||
enabled = no
|
||||
|
||||
[ipv6.udperrors]
|
||||
enabled = no
|
||||
|
||||
[ipv6.mcast]
|
||||
enabled = no
|
||||
|
||||
[ipv6.mcastpkts]
|
||||
enabled = no
|
||||
|
||||
[ipv6.icmp]
|
||||
enabled = no
|
||||
|
||||
[ipv6.icmperrors]
|
||||
enabled = no
|
||||
|
||||
[ipv6.icmprouter]
|
||||
enabled = no
|
||||
|
||||
[ipv6.icmpneighbor]
|
||||
enabled = no
|
||||
|
||||
[ipv6.icmpmldv2]
|
||||
enabled = no
|
||||
|
||||
[ipv6.icmptypes]
|
||||
enabled = no
|
||||
|
||||
[ipv6.ect]
|
||||
enabled = no
|
||||
|
||||
[system.softnet_stat]
|
||||
enabled = no
|
||||
|
||||
[cpu.cpu0_softnet_stat]
|
||||
enabled = no
|
||||
|
||||
[cpu.cpu1_softnet_stat]
|
||||
enabled = no
|
||||
|
||||
[cpu.cpu2_softnet_stat]
|
||||
enabled = no
|
||||
|
||||
[cpu.cpu3_softnet_stat]
|
||||
enabled = no
|
||||
|
||||
[cpu.cpu4_softnet_stat]
|
||||
enabled = no
|
||||
|
||||
[cpu.cpu5_softnet_stat]
|
||||
enabled = no
|
||||
|
||||
[cpu.cpu6_softnet_stat]
|
||||
enabled = no
|
||||
|
||||
[cpu.cpu7_softnet_stat]
|
||||
enabled = no
|
||||
|
||||
[netfilter.conntrack_sockets]
|
||||
enabled = no
|
||||
|
||||
[netfilter.conntrack_new]
|
||||
enabled = no
|
||||
|
||||
[netfilter.conntrack_changes]
|
||||
enabled = no
|
||||
|
||||
[netfilter.conntrack_expect]
|
||||
enabled = no
|
||||
|
||||
[netfilter.conntrack_search]
|
||||
enabled = no
|
||||
|
||||
[netfilter.conntrack_errors]
|
||||
enabled = no
|
||||
|
||||
[disk.sda]
|
||||
enabled = no
|
||||
|
||||
[disk_ops.sda]
|
||||
enabled = no
|
||||
|
||||
[disk_backlog.sda]
|
||||
enabled = no
|
||||
|
||||
[disk_util.sda]
|
||||
enabled = no
|
||||
|
||||
[disk_iotime.sda]
|
||||
enabled = no
|
||||
|
||||
[disk.sdb]
|
||||
enabled = no
|
||||
|
||||
[disk_ops.sdb]
|
||||
enabled = no
|
||||
|
||||
[disk_backlog.sdb]
|
||||
enabled = no
|
||||
|
||||
[disk_util.sdb]
|
||||
enabled = no
|
||||
|
||||
[disk_mops.sdb]
|
||||
enabled = no
|
||||
|
||||
[disk_iotime.sdb]
|
||||
enabled = no
|
||||
|
||||
[disk.sdc]
|
||||
enabled = no
|
||||
|
||||
[disk_ops.sdc]
|
||||
enabled = no
|
||||
|
||||
[disk_backlog.sdc]
|
||||
enabled = no
|
||||
|
||||
[disk_util.sdc]
|
||||
enabled = no
|
||||
|
||||
[disk_mops.sdc]
|
||||
enabled = no
|
||||
|
||||
[disk_iotime.sdc]
|
||||
enabled = no
|
||||
|
||||
[system.io]
|
||||
enabled = no
|
||||
|
||||
[system.ipc_semaphores]
|
||||
enabled = no
|
||||
|
||||
[system.ipc_semaphore_arrays]
|
||||
enabled = no
|
||||
|
||||
[system.shared_memory_segments]
|
||||
enabled = no
|
||||
|
||||
[system.shared_memory_bytes]
|
||||
enabled = no
|
||||
|
||||
[netdata.plugin_proc_modules]
|
||||
enabled = no
|
||||
|
||||
[netdata.plugin_proc_cpu]
|
||||
enabled = no
|
||||
|
||||
[netdata.server_cpu]
|
||||
enabled = no
|
||||
|
||||
[netdata.clients]
|
||||
enabled = no
|
||||
|
||||
[netdata.requests]
|
||||
enabled = no
|
||||
|
||||
[netdata.net]
|
||||
enabled = no
|
||||
|
||||
[netdata.response_time]
|
||||
enabled = no
|
||||
|
||||
[netdata.compression_ratio]
|
||||
enabled = no
|
||||
|
||||
[netdata.dbengine_compression_ratio]
|
||||
enabled = no
|
||||
|
||||
[netdata.page_cache_hit_ratio]
|
||||
enabled = no
|
||||
|
||||
[netdata.page_cache_stats]
|
||||
enabled = no
|
||||
|
||||
[netdata.dbengine_long_term_page_stats]
|
||||
enabled = no
|
||||
|
||||
[netdata.dbengine_io_throughput]
|
||||
enabled = no
|
||||
|
||||
[netdata.dbengine_io_operations]
|
||||
enabled = no
|
||||
|
||||
[netdata.dbengine_global_errors]
|
||||
enabled = no
|
||||
|
||||
[netdata.dbengine_global_file_descriptors]
|
||||
enabled = no
|
||||
|
||||
[netdata.dbengine_ram]
|
||||
enabled = no
|
||||
|
||||
[disk_await.sda]
|
||||
enabled = no
|
||||
|
||||
[disk_avgsz.sda]
|
||||
enabled = no
|
||||
|
||||
[disk_svctm.sda]
|
||||
enabled = no
|
||||
|
||||
[disk_await.sdb]
|
||||
enabled = no
|
||||
|
||||
[disk_avgsz.sdb]
|
||||
enabled = no
|
||||
|
||||
[disk_svctm.sdb]
|
||||
enabled = no
|
||||
|
||||
[disk_await.sdc]
|
||||
enabled = no
|
||||
|
||||
[disk_avgsz.sdc]
|
||||
enabled = no
|
||||
|
||||
[disk_svctm.sdc]
|
||||
enabled = no
|
||||
|
||||
[netdata.queries]
|
||||
enabled = no
|
||||
|
||||
[netdata.db_points]
|
||||
enabled = no
|
||||
|
||||
[services.cpu]
|
||||
enabled = no
|
||||
|
||||
[services.mem_usage]
|
||||
enabled = no
|
||||
|
||||
[services.throttle_io_read]
|
||||
enabled = no
|
||||
|
||||
[services.throttle_io_write]
|
||||
enabled = no
|
||||
|
||||
[services.throttle_io_ops_read]
|
||||
enabled = no
|
||||
|
||||
[services.throttle_io_ops_write]
|
||||
enabled = no
|
||||
|
||||
[netfilter.netlink_new]
|
||||
enabled = no
|
||||
|
||||
[netfilter.netlink_changes]
|
||||
enabled = no
|
||||
|
||||
[netfilter.netlink_search]
|
||||
enabled = no
|
||||
|
||||
[netfilter.netlink_errors]
|
||||
enabled = no
|
||||
|
||||
[netfilter.netlink_expect]
|
||||
enabled = no
|
||||
|
||||
[system.power_consumption]
|
||||
enabled = no
|
|
@ -1,13 +0,0 @@
|
|||
version: '3.3'
|
||||
services:
|
||||
agent_parent:
|
||||
image: debian_10_dev
|
||||
command: /usr/sbin/netdata -D
|
||||
ports:
|
||||
- 21000:19999
|
||||
volumes:
|
||||
- ./parent_stream.conf:/etc/netdata/stream.conf:ro
|
||||
- ./parent_guid:/var/lib/netdata/registry/netdata.public.unique.id:ro
|
||||
- ./mostly_off.conf:/etc/netdata/netdata.conf:ro
|
||||
cap_add:
|
||||
- SYS_PTRACE
|
|
@ -1 +0,0 @@
|
|||
00000000-0000-0000-0000-000000000000
|
|
@ -1,12 +0,0 @@
|
|||
[00000000-0000-0000-0000-000000000000]
|
||||
enabled = yes
|
||||
allow from = *
|
||||
default history = 3600
|
||||
# default memory mode = ram
|
||||
|
||||
health enabled by default = auto
|
||||
|
||||
# postpone alarms for a short period after the sender is connected
|
||||
default postpone alarms on connect seconds = 60
|
||||
multiple connections = allow
|
||||
|
|
@ -1,8 +0,0 @@
|
|||
version: '3'
|
||||
services:
|
||||
agent:
|
||||
image: ${Distro}_${Version}_dev
|
||||
command: /usr/sbin/netdata -D
|
||||
ports:
|
||||
- 80
|
||||
- 443
|
|
@ -1,10 +0,0 @@
|
|||
[stream]
|
||||
enabled = yes
|
||||
destination = tcp:agent_parent
|
||||
api key = 00000000-0000-0000-0000-000000000000
|
||||
timeout seconds = 60
|
||||
default port = 19999
|
||||
send charts matching = *
|
||||
buffer size bytes = 1048576
|
||||
reconnect delay seconds = 5
|
||||
initial clock resync iterations = 60
|
|
@ -1,23 +0,0 @@
|
|||
version: '3.3'
|
||||
services:
|
||||
agent_parent:
|
||||
image: debian_10_dev
|
||||
command: /usr/sbin/netdata -D
|
||||
ports:
|
||||
- 20000:19999
|
||||
volumes:
|
||||
- ./parent_stream.conf:/etc/netdata/stream.conf:ro
|
||||
agent_child1:
|
||||
image: debian_9_dev
|
||||
command: /usr/sbin/netdata -D
|
||||
#ports: Removed to allow scaling
|
||||
#- 20001:19999
|
||||
volumes:
|
||||
- ./child_stream.conf:/etc/netdata/stream.conf:ro
|
||||
agent_child2:
|
||||
image: fedora_30_dev
|
||||
command: /usr/sbin/netdata -D
|
||||
#ports: Removed to allow scaling
|
||||
#- 20002:19999
|
||||
volumes:
|
||||
- ./child_stream.conf:/etc/netdata/stream.conf:ro
|
|
@ -1,7 +0,0 @@
|
|||
[00000000-0000-0000-0000-000000000000]
|
||||
enabled = yes
|
||||
allow from = *
|
||||
default history = 3600
|
||||
health enabled by default = auto
|
||||
default postpone alarms on connect seconds = 60
|
||||
multiple connections = allow
|
|
@ -42,7 +42,19 @@ INSTALL_DIR="/opt"
|
|||
# the version of coverity to use
|
||||
COVERITY_BUILD_VERSION="${COVERITY_BUILD_VERSION:-cov-analysis-linux64-2023.6.2}"
|
||||
|
||||
. packaging/installer/functions.sh
|
||||
SCRIPT_SOURCE="$(
|
||||
self=${0}
|
||||
while [ -L "${self}" ]
|
||||
do
|
||||
cd "${self%/*}" || exit 1
|
||||
self=$(readlink "${self}")
|
||||
done
|
||||
cd "${self%/*}" || exit 1
|
||||
echo "$(pwd -P)/${self##*/}"
|
||||
)"
|
||||
REPO_ROOT="${SCRIPT_SOURCE}/../.."
|
||||
|
||||
. "${REPO_ROOT}/packaging/installer/functions.sh"
|
||||
|
||||
JOBS=$(find_processors)
|
||||
[ -z "${JOBS}" ] && JOBS=1
|
||||
|
@ -106,6 +118,8 @@ scanit() {
|
|||
fatal "The command '${covbuild}' is not executable. Export variable COVERITY_BUILD_PATH or set it in .coverity-scan.conf"
|
||||
fi
|
||||
|
||||
cd "${REPO_ROOT}" || exit 1
|
||||
|
||||
version="$(grep "^#define PACKAGE_VERSION" config.h | cut -d '"' -f 2)"
|
||||
progress "Working on netdata version: ${version}"
|
||||
|
Loading…
Add table
Reference in a new issue