Move web/ under src/ (#16992)
This commit is contained in:
parent
777b7ac531
commit
a75559dffe
16
.codacy.yml
16
.codacy.yml
|
@ -6,19 +6,19 @@ exclude_paths:
|
|||
- src/collectors/python.d.plugin/python_modules/third_party/**
|
||||
- contrib/**
|
||||
- packaging/makeself/**
|
||||
- web/gui/css/**
|
||||
- web/gui/lib/**
|
||||
- web/gui/old/**
|
||||
- web/gui/src/**
|
||||
- web/gui/v1/**
|
||||
- web/gui/v2/**
|
||||
- web/gui/main.js
|
||||
- src/web/gui/css/**
|
||||
- src/web/gui/lib/**
|
||||
- src/web/gui/old/**
|
||||
- src/web/gui/src/**
|
||||
- src/web/gui/v1/**
|
||||
- src/web/gui/v2/**
|
||||
- src/web/gui/main.js
|
||||
- tests/**
|
||||
- aclk/tests/**
|
||||
- src/libnetdata/libjudy/**
|
||||
- src/database/sqlite/sqlite3.c
|
||||
- src/ml/dlib/**
|
||||
- web/server/h2o/libh2o/**
|
||||
- src/web/server/h2o/libh2o/**
|
||||
- build/**
|
||||
- build_external/**
|
||||
- packaging/**
|
||||
|
|
|
@ -84,10 +84,10 @@ exclude_patterns:
|
|||
- ".githooks/"
|
||||
- "tests/"
|
||||
- "m4/"
|
||||
- "web/css/"
|
||||
- "web/lib/"
|
||||
- "web/fonts/"
|
||||
- "web/old/"
|
||||
- "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/"
|
||||
|
|
|
@ -29,8 +29,8 @@ src/registry/ @novykh
|
|||
src/streaming/ @thiagoftsm
|
||||
system/ @Ferroin @tkatsoulas
|
||||
tests/ @Ferroin @vkalintiris @tkatsoulas
|
||||
web/ @thiagoftsm @vkalintiris
|
||||
web/gui/ @novykh
|
||||
src/web/ @thiagoftsm @vkalintiris
|
||||
src/web/gui/ @novykh
|
||||
src/logsmanagement/ @thiagoftsm
|
||||
|
||||
# Ownership by filetype (overwrites ownership by directory)
|
||||
|
|
|
@ -1,10 +1,9 @@
|
|||
paths-ignore:
|
||||
- .github
|
||||
- build_external/
|
||||
- ml/dlib
|
||||
- ml/json
|
||||
- src/ml/dlib
|
||||
- tests/api
|
||||
- web/gui
|
||||
- src/web/gui
|
||||
- src/collectors/python.d.plugin/python_modules/pyyaml*
|
||||
- src/collectors/python.d.plugin/python_modules/third_party
|
||||
- src/collectors/python.d.plugin/python_modules/urllib3
|
||||
|
|
|
@ -272,7 +272,7 @@ area/web:
|
|||
- any:
|
||||
- changed-files:
|
||||
- any-glob-to-any-file:
|
||||
- web/**
|
||||
- src/web/**
|
||||
|
||||
area/logs-management:
|
||||
- any:
|
||||
|
|
|
@ -61,7 +61,7 @@ jobs:
|
|||
src/aclk/aclk-schemas/
|
||||
src/ml/dlib/
|
||||
src/fluent-bit/
|
||||
web/server/h2o/libh2o/
|
||||
src/web/server/h2o/libh2o/
|
||||
files_ignore: |
|
||||
netdata.spec.in
|
||||
**/*.md
|
||||
|
|
|
@ -49,7 +49,7 @@ jobs:
|
|||
src/aclk/aclk-schemas/
|
||||
src/ml/dlib/
|
||||
src/fluent-bit/
|
||||
web/server/h2o/libh2o/
|
||||
src/web/server/h2o/libh2o/
|
||||
files_ignore: |
|
||||
netdata.spec.in
|
||||
**/*.md
|
||||
|
|
|
@ -25,7 +25,7 @@ jobs:
|
|||
- name: Update Files
|
||||
id: update
|
||||
run: |
|
||||
web/gui/bundle_dashboard_v1.py ${{ github.event.inputs.dashboard_version }}
|
||||
src/web/gui/bundle_dashboard_v1.py ${{ github.event.inputs.dashboard_version }}
|
||||
- name: Create Pull Request
|
||||
id: pr
|
||||
uses: peter-evans/create-pull-request@v6
|
||||
|
|
|
@ -55,7 +55,7 @@ jobs:
|
|||
src/aclk/aclk-schemas/
|
||||
src/ml/dlib/
|
||||
src/fluent-bit/
|
||||
web/server/h2o/libh2o/
|
||||
src/web/server/h2o/libh2o/
|
||||
files_ignore: |
|
||||
netdata.spec.in
|
||||
**/*.md
|
||||
|
|
|
@ -65,7 +65,7 @@ jobs:
|
|||
src/aclk/aclk-schemas/
|
||||
src/ml/dlib/
|
||||
src/fluent-bit/
|
||||
web/server/h2o/libh2o/
|
||||
src/web/server/h2o/libh2o/
|
||||
files_ignore: |
|
||||
**/*.md
|
||||
- name: List all changed files in pattern
|
||||
|
|
|
@ -59,13 +59,13 @@ README
|
|||
TODO.md
|
||||
TODO.txt
|
||||
|
||||
web/gui/chart-info/
|
||||
web/gui/control.html
|
||||
web/gui/dashboard.js
|
||||
web/gui/datasource.css
|
||||
web/gui/gadget.xml
|
||||
web/gui/index_new.html
|
||||
web/gui/version.txt
|
||||
src/web/gui/chart-info/
|
||||
src/web/gui/control.html
|
||||
src/web/gui/dashboard.js
|
||||
src/web/gui/datasource.css
|
||||
src/web/gui/gadget.xml
|
||||
src/web/gui/index_new.html
|
||||
src/web/gui/version.txt
|
||||
|
||||
# related to karma/javascript/node
|
||||
/node_modules/
|
||||
|
@ -95,7 +95,7 @@ src/collectors/charts.d.plugin/charts.d.plugin
|
|||
src/collectors/python.d.plugin/python.d.plugin
|
||||
src/collectors/ioping.plugin/ioping.plugin
|
||||
src/collectors/go.d.plugin
|
||||
web/netdata-switch-dashboard.sh
|
||||
src/web/netdata-switch-dashboard.sh
|
||||
|
||||
src/logsmanagement/stress_test/stress_test
|
||||
|
||||
|
|
|
@ -6,12 +6,12 @@
|
|||
url = https://github.com/davisking/dlib.git
|
||||
shallow = true
|
||||
ignore = dirty
|
||||
[submodule "web/server/h2o/libh2o"]
|
||||
path = web/server/h2o/libh2o
|
||||
[submodule "src/web/server/h2o/libh2o"]
|
||||
path = src/web/server/h2o/libh2o
|
||||
url = https://github.com/h2o/h2o.git
|
||||
ignore = untracked
|
||||
[submodule "fluent-bit"]
|
||||
path = src/fluent-bit
|
||||
url = https://github.com/fluent/fluent-bit.git
|
||||
shallow = true
|
||||
ignore = dirty
|
||||
ignore = dirty
|
||||
|
|
393
CMakeLists.txt
393
CMakeLists.txt
|
@ -725,85 +725,85 @@ if(ENABLE_PLUGIN_EBPF)
|
|||
endif()
|
||||
|
||||
set(LIBH2O_FILES
|
||||
web/server/h2o/libh2o/deps/cloexec/cloexec.c
|
||||
web/server/h2o/libh2o/deps/libgkc/gkc.c
|
||||
web/server/h2o/libh2o/deps/libyrmcds/close.c
|
||||
web/server/h2o/libh2o/deps/libyrmcds/connect.c
|
||||
web/server/h2o/libh2o/deps/libyrmcds/recv.c
|
||||
web/server/h2o/libh2o/deps/libyrmcds/send.c
|
||||
web/server/h2o/libh2o/deps/libyrmcds/send_text.c
|
||||
web/server/h2o/libh2o/deps/libyrmcds/socket.c
|
||||
web/server/h2o/libh2o/deps/libyrmcds/strerror.c
|
||||
web/server/h2o/libh2o/deps/libyrmcds/text_mode.c
|
||||
web/server/h2o/libh2o/deps/picohttpparser/picohttpparser.c
|
||||
web/server/h2o/libh2o/lib/common/cache.c
|
||||
web/server/h2o/libh2o/lib/common/file.c
|
||||
web/server/h2o/libh2o/lib/common/filecache.c
|
||||
web/server/h2o/libh2o/lib/common/hostinfo.c
|
||||
web/server/h2o/libh2o/lib/common/http1client.c
|
||||
web/server/h2o/libh2o/lib/common/memcached.c
|
||||
web/server/h2o/libh2o/lib/common/memory.c
|
||||
web/server/h2o/libh2o/lib/common/multithread.c
|
||||
web/server/h2o/libh2o/lib/common/serverutil.c
|
||||
web/server/h2o/libh2o/lib/common/socket.c
|
||||
web/server/h2o/libh2o/lib/common/socketpool.c
|
||||
web/server/h2o/libh2o/lib/common/string.c
|
||||
web/server/h2o/libh2o/lib/common/time.c
|
||||
web/server/h2o/libh2o/lib/common/timeout.c
|
||||
web/server/h2o/libh2o/lib/common/url.c
|
||||
web/server/h2o/libh2o/lib/core/config.c
|
||||
web/server/h2o/libh2o/lib/core/configurator.c
|
||||
web/server/h2o/libh2o/lib/core/context.c
|
||||
web/server/h2o/libh2o/lib/core/headers.c
|
||||
web/server/h2o/libh2o/lib/core/logconf.c
|
||||
web/server/h2o/libh2o/lib/core/proxy.c
|
||||
web/server/h2o/libh2o/lib/core/request.c
|
||||
web/server/h2o/libh2o/lib/core/token.c
|
||||
web/server/h2o/libh2o/lib/core/util.c
|
||||
web/server/h2o/libh2o/lib/handler/access_log.c
|
||||
web/server/h2o/libh2o/lib/handler/chunked.c
|
||||
web/server/h2o/libh2o/lib/handler/compress.c
|
||||
web/server/h2o/libh2o/lib/handler/compress/gzip.c
|
||||
web/server/h2o/libh2o/lib/handler/errordoc.c
|
||||
web/server/h2o/libh2o/lib/handler/expires.c
|
||||
web/server/h2o/libh2o/lib/handler/fastcgi.c
|
||||
web/server/h2o/libh2o/lib/handler/file.c
|
||||
web/server/h2o/libh2o/lib/handler/headers.c
|
||||
web/server/h2o/libh2o/lib/handler/mimemap.c
|
||||
web/server/h2o/libh2o/lib/handler/proxy.c
|
||||
web/server/h2o/libh2o/lib/handler/redirect.c
|
||||
web/server/h2o/libh2o/lib/handler/reproxy.c
|
||||
web/server/h2o/libh2o/lib/handler/throttle_resp.c
|
||||
web/server/h2o/libh2o/lib/handler/status.c
|
||||
web/server/h2o/libh2o/lib/handler/headers_util.c
|
||||
web/server/h2o/libh2o/lib/handler/status/events.c
|
||||
web/server/h2o/libh2o/lib/handler/status/requests.c
|
||||
web/server/h2o/libh2o/lib/handler/http2_debug_state.c
|
||||
web/server/h2o/libh2o/lib/handler/status/durations.c
|
||||
web/server/h2o/libh2o/lib/handler/configurator/access_log.c
|
||||
web/server/h2o/libh2o/lib/handler/configurator/compress.c
|
||||
web/server/h2o/libh2o/lib/handler/configurator/errordoc.c
|
||||
web/server/h2o/libh2o/lib/handler/configurator/expires.c
|
||||
web/server/h2o/libh2o/lib/handler/configurator/fastcgi.c
|
||||
web/server/h2o/libh2o/lib/handler/configurator/file.c
|
||||
web/server/h2o/libh2o/lib/handler/configurator/headers.c
|
||||
web/server/h2o/libh2o/lib/handler/configurator/proxy.c
|
||||
web/server/h2o/libh2o/lib/handler/configurator/redirect.c
|
||||
web/server/h2o/libh2o/lib/handler/configurator/reproxy.c
|
||||
web/server/h2o/libh2o/lib/handler/configurator/throttle_resp.c
|
||||
web/server/h2o/libh2o/lib/handler/configurator/status.c
|
||||
web/server/h2o/libh2o/lib/handler/configurator/http2_debug_state.c
|
||||
web/server/h2o/libh2o/lib/handler/configurator/headers_util.c
|
||||
web/server/h2o/libh2o/lib/http1.c
|
||||
web/server/h2o/libh2o/lib/tunnel.c
|
||||
web/server/h2o/libh2o/lib/http2/cache_digests.c
|
||||
web/server/h2o/libh2o/lib/http2/casper.c
|
||||
web/server/h2o/libh2o/lib/http2/connection.c
|
||||
web/server/h2o/libh2o/lib/http2/frame.c
|
||||
web/server/h2o/libh2o/lib/http2/hpack.c
|
||||
web/server/h2o/libh2o/lib/http2/scheduler.c
|
||||
web/server/h2o/libh2o/lib/http2/stream.c
|
||||
web/server/h2o/libh2o/lib/http2/http2_debug_state.c
|
||||
src/web/server/h2o/libh2o/deps/cloexec/cloexec.c
|
||||
src/web/server/h2o/libh2o/deps/libgkc/gkc.c
|
||||
src/web/server/h2o/libh2o/deps/libyrmcds/close.c
|
||||
src/web/server/h2o/libh2o/deps/libyrmcds/connect.c
|
||||
src/web/server/h2o/libh2o/deps/libyrmcds/recv.c
|
||||
src/web/server/h2o/libh2o/deps/libyrmcds/send.c
|
||||
src/web/server/h2o/libh2o/deps/libyrmcds/send_text.c
|
||||
src/web/server/h2o/libh2o/deps/libyrmcds/socket.c
|
||||
src/web/server/h2o/libh2o/deps/libyrmcds/strerror.c
|
||||
src/web/server/h2o/libh2o/deps/libyrmcds/text_mode.c
|
||||
src/web/server/h2o/libh2o/deps/picohttpparser/picohttpparser.c
|
||||
src/web/server/h2o/libh2o/lib/common/cache.c
|
||||
src/web/server/h2o/libh2o/lib/common/file.c
|
||||
src/web/server/h2o/libh2o/lib/common/filecache.c
|
||||
src/web/server/h2o/libh2o/lib/common/hostinfo.c
|
||||
src/web/server/h2o/libh2o/lib/common/http1client.c
|
||||
src/web/server/h2o/libh2o/lib/common/memcached.c
|
||||
src/web/server/h2o/libh2o/lib/common/memory.c
|
||||
src/web/server/h2o/libh2o/lib/common/multithread.c
|
||||
src/web/server/h2o/libh2o/lib/common/serverutil.c
|
||||
src/web/server/h2o/libh2o/lib/common/socket.c
|
||||
src/web/server/h2o/libh2o/lib/common/socketpool.c
|
||||
src/web/server/h2o/libh2o/lib/common/string.c
|
||||
src/web/server/h2o/libh2o/lib/common/time.c
|
||||
src/web/server/h2o/libh2o/lib/common/timeout.c
|
||||
src/web/server/h2o/libh2o/lib/common/url.c
|
||||
src/web/server/h2o/libh2o/lib/core/config.c
|
||||
src/web/server/h2o/libh2o/lib/core/configurator.c
|
||||
src/web/server/h2o/libh2o/lib/core/context.c
|
||||
src/web/server/h2o/libh2o/lib/core/headers.c
|
||||
src/web/server/h2o/libh2o/lib/core/logconf.c
|
||||
src/web/server/h2o/libh2o/lib/core/proxy.c
|
||||
src/web/server/h2o/libh2o/lib/core/request.c
|
||||
src/web/server/h2o/libh2o/lib/core/token.c
|
||||
src/web/server/h2o/libh2o/lib/core/util.c
|
||||
src/web/server/h2o/libh2o/lib/handler/access_log.c
|
||||
src/web/server/h2o/libh2o/lib/handler/chunked.c
|
||||
src/web/server/h2o/libh2o/lib/handler/compress.c
|
||||
src/web/server/h2o/libh2o/lib/handler/compress/gzip.c
|
||||
src/web/server/h2o/libh2o/lib/handler/errordoc.c
|
||||
src/web/server/h2o/libh2o/lib/handler/expires.c
|
||||
src/web/server/h2o/libh2o/lib/handler/fastcgi.c
|
||||
src/web/server/h2o/libh2o/lib/handler/file.c
|
||||
src/web/server/h2o/libh2o/lib/handler/headers.c
|
||||
src/web/server/h2o/libh2o/lib/handler/mimemap.c
|
||||
src/web/server/h2o/libh2o/lib/handler/proxy.c
|
||||
src/web/server/h2o/libh2o/lib/handler/redirect.c
|
||||
src/web/server/h2o/libh2o/lib/handler/reproxy.c
|
||||
src/web/server/h2o/libh2o/lib/handler/throttle_resp.c
|
||||
src/web/server/h2o/libh2o/lib/handler/status.c
|
||||
src/web/server/h2o/libh2o/lib/handler/headers_util.c
|
||||
src/web/server/h2o/libh2o/lib/handler/status/events.c
|
||||
src/web/server/h2o/libh2o/lib/handler/status/requests.c
|
||||
src/web/server/h2o/libh2o/lib/handler/http2_debug_state.c
|
||||
src/web/server/h2o/libh2o/lib/handler/status/durations.c
|
||||
src/web/server/h2o/libh2o/lib/handler/configurator/access_log.c
|
||||
src/web/server/h2o/libh2o/lib/handler/configurator/compress.c
|
||||
src/web/server/h2o/libh2o/lib/handler/configurator/errordoc.c
|
||||
src/web/server/h2o/libh2o/lib/handler/configurator/expires.c
|
||||
src/web/server/h2o/libh2o/lib/handler/configurator/fastcgi.c
|
||||
src/web/server/h2o/libh2o/lib/handler/configurator/file.c
|
||||
src/web/server/h2o/libh2o/lib/handler/configurator/headers.c
|
||||
src/web/server/h2o/libh2o/lib/handler/configurator/proxy.c
|
||||
src/web/server/h2o/libh2o/lib/handler/configurator/redirect.c
|
||||
src/web/server/h2o/libh2o/lib/handler/configurator/reproxy.c
|
||||
src/web/server/h2o/libh2o/lib/handler/configurator/throttle_resp.c
|
||||
src/web/server/h2o/libh2o/lib/handler/configurator/status.c
|
||||
src/web/server/h2o/libh2o/lib/handler/configurator/http2_debug_state.c
|
||||
src/web/server/h2o/libh2o/lib/handler/configurator/headers_util.c
|
||||
src/web/server/h2o/libh2o/lib/http1.c
|
||||
src/web/server/h2o/libh2o/lib/tunnel.c
|
||||
src/web/server/h2o/libh2o/lib/http2/cache_digests.c
|
||||
src/web/server/h2o/libh2o/lib/http2/casper.c
|
||||
src/web/server/h2o/libh2o/lib/http2/connection.c
|
||||
src/web/server/h2o/libh2o/lib/http2/frame.c
|
||||
src/web/server/h2o/libh2o/lib/http2/hpack.c
|
||||
src/web/server/h2o/libh2o/lib/http2/scheduler.c
|
||||
src/web/server/h2o/libh2o/lib/http2/stream.c
|
||||
src/web/server/h2o/libh2o/lib/http2/http2_debug_state.c
|
||||
)
|
||||
|
||||
set(DAEMON_FILES
|
||||
|
@ -844,14 +844,14 @@ set(DAEMON_FILES
|
|||
)
|
||||
|
||||
set(H2O_FILES
|
||||
web/server/h2o/http_server.c
|
||||
web/server/h2o/http_server.h
|
||||
web/server/h2o/h2o_utils.c
|
||||
web/server/h2o/h2o_utils.h
|
||||
web/server/h2o/streaming.c
|
||||
web/server/h2o/streaming.h
|
||||
web/server/h2o/connlist.c
|
||||
web/server/h2o/connlist.h
|
||||
src/web/server/h2o/http_server.c
|
||||
src/web/server/h2o/http_server.h
|
||||
src/web/server/h2o/h2o_utils.c
|
||||
src/web/server/h2o/h2o_utils.h
|
||||
src/web/server/h2o/streaming.c
|
||||
src/web/server/h2o/streaming.h
|
||||
src/web/server/h2o/connlist.c
|
||||
src/web/server/h2o/connlist.h
|
||||
)
|
||||
|
||||
if(ENABLE_H2O)
|
||||
|
@ -859,72 +859,72 @@ if(ENABLE_H2O)
|
|||
endif()
|
||||
|
||||
set(API_PLUGIN_FILES
|
||||
web/api/web_api.c
|
||||
web/api/web_api.h
|
||||
web/api/web_api_v1.c
|
||||
web/api/web_api_v1.h
|
||||
web/api/web_api_v2.c
|
||||
web/api/web_api_v2.h
|
||||
web/api/http_auth.c
|
||||
web/api/http_auth.h
|
||||
web/api/http_header.c
|
||||
web/api/http_header.h
|
||||
web/api/badges/web_buffer_svg.c
|
||||
web/api/badges/web_buffer_svg.h
|
||||
web/api/exporters/allmetrics.c
|
||||
web/api/exporters/allmetrics.h
|
||||
web/api/exporters/shell/allmetrics_shell.c
|
||||
web/api/exporters/shell/allmetrics_shell.h
|
||||
web/api/queries/rrdr.c
|
||||
web/api/queries/rrdr.h
|
||||
web/api/queries/query.c
|
||||
web/api/queries/query.h
|
||||
web/api/queries/average/average.c
|
||||
web/api/queries/average/average.h
|
||||
web/api/queries/countif/countif.c
|
||||
web/api/queries/countif/countif.h
|
||||
web/api/queries/incremental_sum/incremental_sum.c
|
||||
web/api/queries/incremental_sum/incremental_sum.h
|
||||
web/api/queries/max/max.c
|
||||
web/api/queries/max/max.h
|
||||
web/api/queries/min/min.c
|
||||
web/api/queries/min/min.h
|
||||
web/api/queries/sum/sum.c
|
||||
web/api/queries/sum/sum.h
|
||||
web/api/queries/median/median.c
|
||||
web/api/queries/median/median.h
|
||||
web/api/queries/percentile/percentile.c
|
||||
web/api/queries/percentile/percentile.h
|
||||
web/api/queries/stddev/stddev.c
|
||||
web/api/queries/stddev/stddev.h
|
||||
web/api/queries/ses/ses.c
|
||||
web/api/queries/ses/ses.h
|
||||
web/api/queries/des/des.c
|
||||
web/api/queries/des/des.h
|
||||
web/api/queries/trimmed_mean/trimmed_mean.c
|
||||
web/api/queries/trimmed_mean/trimmed_mean.h
|
||||
web/api/queries/weights.c
|
||||
web/api/queries/weights.h
|
||||
web/api/formatters/rrd2json.c
|
||||
web/api/formatters/rrd2json.h
|
||||
web/api/formatters/csv/csv.c
|
||||
web/api/formatters/csv/csv.h
|
||||
web/api/formatters/json/json.c
|
||||
web/api/formatters/json/json.h
|
||||
web/api/formatters/ssv/ssv.c
|
||||
web/api/formatters/ssv/ssv.h
|
||||
web/api/formatters/value/value.c
|
||||
web/api/formatters/value/value.h
|
||||
web/api/formatters/json_wrapper.c
|
||||
web/api/formatters/json_wrapper.h
|
||||
web/api/formatters/charts2json.c
|
||||
web/api/formatters/charts2json.h
|
||||
web/api/formatters/rrdset2json.c
|
||||
web/api/formatters/rrdset2json.h
|
||||
web/api/ilove/ilove.c
|
||||
web/api/ilove/ilove.h
|
||||
web/rtc/webrtc.c
|
||||
web/rtc/webrtc.h
|
||||
src/web/api/web_api.c
|
||||
src/web/api/web_api.h
|
||||
src/web/api/web_api_v1.c
|
||||
src/web/api/web_api_v1.h
|
||||
src/web/api/web_api_v2.c
|
||||
src/web/api/web_api_v2.h
|
||||
src/web/api/http_auth.c
|
||||
src/web/api/http_auth.h
|
||||
src/web/api/http_header.c
|
||||
src/web/api/http_header.h
|
||||
src/web/api/badges/web_buffer_svg.c
|
||||
src/web/api/badges/web_buffer_svg.h
|
||||
src/web/api/exporters/allmetrics.c
|
||||
src/web/api/exporters/allmetrics.h
|
||||
src/web/api/exporters/shell/allmetrics_shell.c
|
||||
src/web/api/exporters/shell/allmetrics_shell.h
|
||||
src/web/api/queries/rrdr.c
|
||||
src/web/api/queries/rrdr.h
|
||||
src/web/api/queries/query.c
|
||||
src/web/api/queries/query.h
|
||||
src/web/api/queries/average/average.c
|
||||
src/web/api/queries/average/average.h
|
||||
src/web/api/queries/countif/countif.c
|
||||
src/web/api/queries/countif/countif.h
|
||||
src/web/api/queries/incremental_sum/incremental_sum.c
|
||||
src/web/api/queries/incremental_sum/incremental_sum.h
|
||||
src/web/api/queries/max/max.c
|
||||
src/web/api/queries/max/max.h
|
||||
src/web/api/queries/min/min.c
|
||||
src/web/api/queries/min/min.h
|
||||
src/web/api/queries/sum/sum.c
|
||||
src/web/api/queries/sum/sum.h
|
||||
src/web/api/queries/median/median.c
|
||||
src/web/api/queries/median/median.h
|
||||
src/web/api/queries/percentile/percentile.c
|
||||
src/web/api/queries/percentile/percentile.h
|
||||
src/web/api/queries/stddev/stddev.c
|
||||
src/web/api/queries/stddev/stddev.h
|
||||
src/web/api/queries/ses/ses.c
|
||||
src/web/api/queries/ses/ses.h
|
||||
src/web/api/queries/des/des.c
|
||||
src/web/api/queries/des/des.h
|
||||
src/web/api/queries/trimmed_mean/trimmed_mean.c
|
||||
src/web/api/queries/trimmed_mean/trimmed_mean.h
|
||||
src/web/api/queries/weights.c
|
||||
src/web/api/queries/weights.h
|
||||
src/web/api/formatters/rrd2json.c
|
||||
src/web/api/formatters/rrd2json.h
|
||||
src/web/api/formatters/csv/csv.c
|
||||
src/web/api/formatters/csv/csv.h
|
||||
src/web/api/formatters/json/json.c
|
||||
src/web/api/formatters/json/json.h
|
||||
src/web/api/formatters/ssv/ssv.c
|
||||
src/web/api/formatters/ssv/ssv.h
|
||||
src/web/api/formatters/value/value.c
|
||||
src/web/api/formatters/value/value.h
|
||||
src/web/api/formatters/json_wrapper.c
|
||||
src/web/api/formatters/json_wrapper.h
|
||||
src/web/api/formatters/charts2json.c
|
||||
src/web/api/formatters/charts2json.h
|
||||
src/web/api/formatters/rrdset2json.c
|
||||
src/web/api/formatters/rrdset2json.h
|
||||
src/web/api/ilove/ilove.c
|
||||
src/web/api/ilove/ilove.h
|
||||
src/web/rtc/webrtc.c
|
||||
src/web/rtc/webrtc.h
|
||||
)
|
||||
|
||||
set(EXPORTING_ENGINE_FILES
|
||||
|
@ -1146,14 +1146,14 @@ set(STREAMING_PLUGIN_FILES
|
|||
)
|
||||
|
||||
set(WEB_PLUGIN_FILES
|
||||
web/server/web_client.c
|
||||
web/server/web_client.h
|
||||
web/server/web_server.c
|
||||
web/server/web_server.h
|
||||
web/server/static/static-threaded.c
|
||||
web/server/static/static-threaded.h
|
||||
web/server/web_client_cache.c
|
||||
web/server/web_client_cache.h
|
||||
src/web/server/web_client.c
|
||||
src/web/server/web_client.h
|
||||
src/web/server/web_server.c
|
||||
src/web/server/web_server.h
|
||||
src/web/server/static/static-threaded.c
|
||||
src/web/server/static/static-threaded.h
|
||||
src/web/server/web_client_cache.c
|
||||
src/web/server/web_client_cache.h
|
||||
)
|
||||
|
||||
set(CLAIM_PLUGIN_FILES
|
||||
|
@ -1462,18 +1462,18 @@ if(ENABLE_H2O)
|
|||
add_library(h2o STATIC ${LIBH2O_FILES})
|
||||
|
||||
target_include_directories(h2o BEFORE PUBLIC
|
||||
"${CMAKE_SOURCE_DIR}/web/server/h2o/libh2o/include"
|
||||
"${CMAKE_SOURCE_DIR}/web/server/h2o/libh2o/deps/cloexec"
|
||||
"${CMAKE_SOURCE_DIR}/web/server/h2o/libh2o/deps/brotli/enc"
|
||||
"${CMAKE_SOURCE_DIR}/web/server/h2o/libh2o/deps/golombset"
|
||||
"${CMAKE_SOURCE_DIR}/web/server/h2o/libh2o/deps/libgkc"
|
||||
"${CMAKE_SOURCE_DIR}/web/server/h2o/libh2o/deps/libyrmcds"
|
||||
"${CMAKE_SOURCE_DIR}/web/server/h2o/libh2o/deps/klib"
|
||||
"${CMAKE_SOURCE_DIR}/web/server/h2o/libh2o/deps/neverbleed"
|
||||
"${CMAKE_SOURCE_DIR}/web/server/h2o/libh2o/deps/picohttpparser"
|
||||
"${CMAKE_SOURCE_DIR}/web/server/h2o/libh2o/deps/picotest"
|
||||
"${CMAKE_SOURCE_DIR}/web/server/h2o/libh2o/deps/yaml/include"
|
||||
"${CMAKE_SOURCE_DIR}/web/server/h2o/libh2o/deps/yoml"
|
||||
"${CMAKE_SOURCE_DIR}/src/web/server/h2o/libh2o/include"
|
||||
"${CMAKE_SOURCE_DIR}/src/web/server/h2o/libh2o/deps/cloexec"
|
||||
"${CMAKE_SOURCE_DIR}/src/web/server/h2o/libh2o/deps/brotli/enc"
|
||||
"${CMAKE_SOURCE_DIR}/src/web/server/h2o/libh2o/deps/golombset"
|
||||
"${CMAKE_SOURCE_DIR}/src/web/server/h2o/libh2o/deps/libgkc"
|
||||
"${CMAKE_SOURCE_DIR}/src/web/server/h2o/libh2o/deps/libyrmcds"
|
||||
"${CMAKE_SOURCE_DIR}/src/web/server/h2o/libh2o/deps/klib"
|
||||
"${CMAKE_SOURCE_DIR}/src/web/server/h2o/libh2o/deps/neverbleed"
|
||||
"${CMAKE_SOURCE_DIR}/src/web/server/h2o/libh2o/deps/picohttpparser"
|
||||
"${CMAKE_SOURCE_DIR}/src/web/server/h2o/libh2o/deps/picotest"
|
||||
"${CMAKE_SOURCE_DIR}/src/web/server/h2o/libh2o/deps/yaml/include"
|
||||
"${CMAKE_SOURCE_DIR}/src/web/server/h2o/libh2o/deps/yoml"
|
||||
)
|
||||
|
||||
target_compile_options(h2o PRIVATE
|
||||
|
@ -1724,7 +1724,7 @@ if(ENABLE_MQTTWEBSOCKETS)
|
|||
-DMQTT_WSS_CPUSTATS)
|
||||
|
||||
target_include_directories(mqttwebsockets PUBLIC ${CMAKE_SOURCE_DIR}/aclk/helpers
|
||||
${CMAKE_SOURCE_DIR}/web/server/h2o/libh2o/include)
|
||||
${CMAKE_SOURCE_DIR}/src/web/server/h2o/libh2o/include)
|
||||
|
||||
target_link_libraries(mqttwebsockets PRIVATE libnetdata)
|
||||
|
||||
|
@ -2336,8 +2336,8 @@ install(FILES
|
|||
# swagger
|
||||
#
|
||||
install(FILES
|
||||
web/api/netdata-swagger.json
|
||||
web/api/netdata-swagger.yaml
|
||||
src/web/api/netdata-swagger.json
|
||||
src/web/api/netdata-swagger.yaml
|
||||
DESTINATION ${WEB_DEST})
|
||||
|
||||
#
|
||||
|
@ -2709,17 +2709,16 @@ endif()
|
|||
# dashboard
|
||||
#
|
||||
|
||||
include(web/gui/v1/dashboard_v1.cmake)
|
||||
include(web/gui/v2/dashboard_v2.cmake)
|
||||
|
||||
include(web/gui/gui.cmake)
|
||||
include(src/web/gui/v1/dashboard_v1.cmake)
|
||||
include(src/web/gui/v2/dashboard_v2.cmake)
|
||||
include(src/web/gui/gui.cmake)
|
||||
|
||||
function(cat IN_FILE OUT_FILE)
|
||||
file(READ ${IN_FILE} CONTENTS)
|
||||
file(APPEND ${OUT_FILE} "${CONTENTS}")
|
||||
endfunction()
|
||||
|
||||
file(WRITE ${CMAKE_BINARY_DIR}/web/gui/dashboard.js.in "")
|
||||
file(WRITE ${CMAKE_BINARY_DIR}/src/web/gui/dashboard.js.in "")
|
||||
foreach(JS_FILE ${DASHBOARD_JS_FILES})
|
||||
cat(${JS_FILE} ${CMAKE_BINARY_DIR}/dashboard.js.in)
|
||||
endforeach()
|
||||
|
@ -2731,36 +2730,36 @@ install(FILES
|
|||
DESTINATION ${WEB_DEST})
|
||||
|
||||
install(FILES
|
||||
web/gui/dashboard_info_custom_example.js
|
||||
web/gui/dashboard_info.js
|
||||
web/gui/index.html
|
||||
web/gui/main.css
|
||||
web/gui/main.js
|
||||
web/gui/registry-access.html
|
||||
web/gui/registry-alert-redirect.html
|
||||
web/gui/registry-hello.html
|
||||
web/gui/switch.html
|
||||
web/gui/ilove.html
|
||||
src/web/gui/dashboard_info_custom_example.js
|
||||
src/web/gui/dashboard_info.js
|
||||
src/web/gui/index.html
|
||||
src/web/gui/main.css
|
||||
src/web/gui/main.js
|
||||
src/web/gui/registry-access.html
|
||||
src/web/gui/registry-alert-redirect.html
|
||||
src/web/gui/registry-hello.html
|
||||
src/web/gui/switch.html
|
||||
src/web/gui/ilove.html
|
||||
DESTINATION ${WEB_DEST})
|
||||
|
||||
install(FILES
|
||||
web/gui/old/index.html
|
||||
src/web/gui/old/index.html
|
||||
DESTINATION ${WEB_DEST}/old)
|
||||
|
||||
install(FILES
|
||||
web/gui/static/img/netdata-logomark.svg
|
||||
src/web/gui/static/img/netdata-logomark.svg
|
||||
DESTINATION ${WEB_DEST}/static/img)
|
||||
|
||||
install(FILES
|
||||
web/gui/css/morris-0.5.1.css
|
||||
web/gui/css/c3-0.4.18.min.css
|
||||
src/web/gui/css/morris-0.5.1.css
|
||||
src/web/gui/css/c3-0.4.18.min.css
|
||||
DESTINATION ${WEB_DEST}/css)
|
||||
|
||||
install(FILES
|
||||
web/gui/.well-known/dnt/cookies
|
||||
src/web/gui/.well-known/dnt/cookies
|
||||
DESTINATION ${WEB_DEST}/.well-known/dnt)
|
||||
|
||||
# v0 dashboard
|
||||
install(FILES
|
||||
web/gui/v0/index.html
|
||||
src/web/gui/v0/index.html
|
||||
DESTINATION ${WEB_DEST}/v0)
|
||||
|
|
|
@ -464,7 +464,7 @@ netdata (1.3.0) - 2016-08-28
|
|||
collected metrics.
|
||||
Please check the wiki page:
|
||||
|
||||
<https://github.com/netdata/netdata/tree/master/web/api/badges>
|
||||
<https://github.com/netdata/netdata/tree/master/src/web/api/badges>
|
||||
|
||||
- netdata plugins are now written in Python!
|
||||
|
||||
|
|
|
@ -723,7 +723,7 @@ The Netdata Agent is shipped with multiple UI versions:
|
|||
|
||||
- `http://agent.ip:19999/v0/`, the original open-source single-node UI, GPLv3+.
|
||||
- `http://agent.ip:19999/v1/`, the latest open-source single-node UI, GPLv3+.
|
||||
- `http://agent.ip:19999/v2/`, a snapshot of the latest Netdata Cloud UI as it was at the time the agent was released, licensed to be distributed with Netdata Agents under [NCUL1](https://github.com/netdata/netdata/blob/master/web/gui/v2/LICENSE.md).
|
||||
- `http://agent.ip:19999/v2/`, a snapshot of the latest Netdata Cloud UI as it was at the time the agent was released, licensed to be distributed with Netdata Agents under [NCUL1](https://github.com/netdata/netdata/blob/master/src/web/gui/v2/LICENSE.md).
|
||||
|
||||
When you access a Netdata Agent via `http://agent.ip:19999/` a splash screen attempts to use the latest live version of Netdata Cloud UI (downloaded from Cloudflare). This only happens when the web browser has internet connectivity and Netdata Cloud is not disabled at the agent configuration. Otherwise, it falls back to `http://agent.ip:19999/v2/`.
|
||||
|
||||
|
@ -830,4 +830,4 @@ instructions on building each Netdata component from the source and preparing a
|
|||
Netdata is released under [GPLv3+](https://github.com/netdata/netdata/blob/master/LICENSE). Netdata re-distributes other open-source tools and libraries. Please check the
|
||||
[third party licenses](https://github.com/netdata/netdata/blob/master/REDISTRIBUTED.md).
|
||||
|
||||
The Latest Netdata UI, is distributed under [NCUL1](https://github.com/netdata/netdata/blob/master/web/gui/v2/LICENSE.md). It also uses third party open source components. Check the [UI third party licenses](https://github.com/netdata/netdata/blob/master/web/gui/v2/3D_PARTY_LICENSES.txt)
|
||||
The Latest Netdata UI, is distributed under [NCUL1](https://github.com/netdata/netdata/blob/master/src/web/gui/v2/LICENSE.md). It also uses third party open source components. Check the [UI third party licenses](https://github.com/netdata/netdata/blob/master/src/web/gui/v2/3D_PARTY_LICENSES.txt)
|
||||
|
|
|
@ -16,7 +16,7 @@ Released under [GPL v3 or later](https://raw.githubusercontent.com/netdata/netda
|
|||
Netdata uses SPDX license tags to identify the license for its files.
|
||||
Individual licenses referenced in the tags are available on the [SPDX project site](http://spdx.org/licenses/).
|
||||
|
||||
Netdata redistributes the Netdata Cloud UI, licensed under [Netdata Cloud UI License v1.0 (NCUL1)](https://raw.githubusercontent.com/netdata/netdata/master/web/gui/v2/LICENSE.md). Netdata Cloud UI includes [third party open-source software](https://raw.githubusercontent.com/netdata/netdata/master/web/gui/v2/3D_PARTY_LICENSES.txt).
|
||||
Netdata redistributes the Netdata Cloud UI, licensed under [Netdata Cloud UI License v1.0 (NCUL1)](https://raw.githubusercontent.com/netdata/netdata/master/src/web/gui/v2/LICENSE.md). Netdata Cloud UI includes [third party open-source software](https://raw.githubusercontent.com/netdata/netdata/master/src/web/gui/v2/3D_PARTY_LICENSES.txt).
|
||||
|
||||
Netdata redistributes the following third-party software.
|
||||
We have decided to redistribute all these, instead of using them
|
||||
|
|
|
@ -189,7 +189,7 @@
|
|||
<mxGeometry x="650" y="607" width="211" height="70" as="geometry" />
|
||||
</mxCell>
|
||||
</UserObject>
|
||||
<UserObject label="<b><font style="font-size: 16px">HTTP API</font></b>" link="https://github.com/netdata/netdata/tree/master/web/api" id="76">
|
||||
<UserObject label="<b><font style="font-size: 16px">HTTP API</font></b>" link="https://github.com/netdata/netdata/tree/master/src/web/api" id="76">
|
||||
<mxCell style="whiteSpace=wrap;html=1;strokeColor=#59DE9C;fillColor=#FFFFFF;fontSize=14;align=center;" parent="1" vertex="1">
|
||||
<mxGeometry x="74" y="557" width="800" height="40" as="geometry" />
|
||||
</mxCell>
|
||||
|
@ -489,7 +489,7 @@
|
|||
<mxCell id="182" value="" style="html=1;shadow=0;dashed=0;align=center;verticalAlign=middle;shape=mxgraph.arrows2.arrow;dy=0.51;dx=19.57;direction=north;notch=0;fillColor=#59DE9C;strokeColor=none;" parent="1" vertex="1">
|
||||
<mxGeometry x="357" y="533" width="70" height="30" as="geometry" />
|
||||
</mxCell>
|
||||
<UserObject label="SVG badges from metrics" link="https://github.com/netdata/netdata/tree/master/web/api/badges" id="183">
|
||||
<UserObject label="SVG badges from metrics" link="https://github.com/netdata/netdata/tree/master/src/web/api/badges" id="183">
|
||||
<mxCell style="shape=image;verticalLabelPosition=bottom;labelBackgroundColor=#ffffff;verticalAlign=top;aspect=fixed;imageAspect=0;image=https://cloud.githubusercontent.com/assets/2662304/26528965/8993b082-43bf-11e7-8d5b-3eea117bbd55.png;fontSize=14;spacingTop=-3;" parent="1" vertex="1">
|
||||
<mxGeometry x="469" y="485" width="161" height="25" as="geometry" />
|
||||
</mxCell>
|
||||
|
@ -497,7 +497,7 @@
|
|||
<mxCell id="184" value="" style="html=1;shadow=0;dashed=0;align=center;verticalAlign=middle;shape=mxgraph.arrows2.arrow;dy=0.51;dx=19.57;direction=north;notch=0;fillColor=#59DE9C;strokeColor=none;" parent="1" vertex="1">
|
||||
<mxGeometry x="512" y="534" width="70" height="30" as="geometry" />
|
||||
</mxCell>
|
||||
<UserObject label="use metrics
in your scripts" link="https://github.com/netdata/netdata/tree/master/web/api/exporters/shell" id="187">
|
||||
<UserObject label="use metrics
in your scripts" link="https://github.com/netdata/netdata/tree/master/src/web/api/exporters/shell" id="187">
|
||||
<mxCell style="shape=image;verticalLabelPosition=bottom;labelBackgroundColor=#ffffff;verticalAlign=top;aspect=fixed;imageAspect=0;image=https://cloud.githubusercontent.com/assets/2662304/26528672/84d2eda8-43b8-11e7-8385-6ad78be4d7cc.png;fontSize=14;spacing=2;spacingTop=-14;" parent="1" vertex="1">
|
||||
<mxGeometry x="352" y="438" width="77" height="66" as="geometry" />
|
||||
</mxCell>
|
||||
|
|
|
@ -105,7 +105,7 @@ Using the above, you access Netdata on the backend servers, like this:
|
|||
|
||||
### Encrypt the communication between H2O and Netdata
|
||||
|
||||
In case Netdata's web server has been [configured to use TLS](https://github.com/netdata/netdata/blob/master/web/server/README.md#enabling-tls-support), it is
|
||||
In case Netdata's web server has been [configured to use TLS](https://github.com/netdata/netdata/blob/master/src/web/server/README.md#enabling-tls-support), it is
|
||||
necessary to specify inside the H2O configuration that the final destination is using TLS. To do this, change the
|
||||
`http://` on the `proxy.reverse.url` line in your H2O configuration with `https://`
|
||||
|
||||
|
|
|
@ -164,7 +164,7 @@ Using the above, you access Netdata on the backend servers, like this:
|
|||
|
||||
### Encrypt the communication between Nginx and Netdata
|
||||
|
||||
In case Netdata's web server has been [configured to use TLS](https://github.com/netdata/netdata/blob/master/web/server/README.md#enabling-tls-support), it is
|
||||
In case Netdata's web server has been [configured to use TLS](https://github.com/netdata/netdata/blob/master/src/web/server/README.md#enabling-tls-support), it is
|
||||
necessary to specify inside the Nginx configuration that the final destination is using TLS. To do this, please, append
|
||||
the following parameters in your `nginx.conf`
|
||||
|
||||
|
|
|
@ -35,4 +35,4 @@ Netdata starts a web server for its dashboard at port `19999`. Open up your web
|
|||
navigate to `http://NODE:19999`, replacing `NODE` with the IP address or hostname of your Agent. If installed on localhost, you can access it through `http://localhost:19999`.
|
||||
|
||||
|
||||
Documentation for previous Agent dashboard can still be found [here](https://github.com/netdata/netdata/blob/master/web/gui/README.md).
|
||||
Documentation for previous Agent dashboard can still be found [here](https://github.com/netdata/netdata/blob/master/src/web/gui/README.md).
|
|
@ -3,7 +3,7 @@
|
|||
If you need to access a Netdata agent's user interface or API in a production environment we recommend you put Netdata behind
|
||||
another web server and secure access to the dashboard via SSL, user authentication and firewall rules.
|
||||
|
||||
A dedicated web server also provides more robustness and capabilities than the Agent's [internal web server](https://github.com/netdata/netdata/blob/master/web/README.md).
|
||||
A dedicated web server also provides more robustness and capabilities than the Agent's [internal web server](https://github.com/netdata/netdata/blob/master/src/web/README.md).
|
||||
|
||||
We have documented running behind
|
||||
[nginx](https://github.com/netdata/netdata/blob/master/docs/Running-behind-nginx.md),
|
||||
|
|
|
@ -98,7 +98,7 @@ the internet using multiple hosting providers).
|
|||
## Fine-grained access control
|
||||
|
||||
If you want to keep using the local dashboard, but don't want it exposed to the internet, you can restrict access with
|
||||
[access lists](https://github.com/netdata/netdata/blob/master/web/server/README.md#access-lists). This method also fully
|
||||
[access lists](https://github.com/netdata/netdata/blob/master/src/web/server/README.md#access-lists). This method also fully
|
||||
retains the ability to stream metrics
|
||||
on-demand through Netdata Cloud.
|
||||
|
||||
|
@ -134,9 +134,9 @@ The `allow connections from` setting is global and restricts access to the dashb
|
|||
allow management from = localhost
|
||||
```
|
||||
|
||||
See the [web server](https://github.com/netdata/netdata/blob/master/web/server/README.md#access-lists) docs for additional details
|
||||
See the [web server](https://github.com/netdata/netdata/blob/master/src/web/server/README.md#access-lists) docs for additional details
|
||||
about access lists. You can take
|
||||
access lists one step further by [enabling SSL](https://github.com/netdata/netdata/blob/master/web/server/README.md#enabling-tls-support) to encrypt data from local
|
||||
access lists one step further by [enabling SSL](https://github.com/netdata/netdata/blob/master/src/web/server/README.md#enabling-tls-support) to encrypt data from local
|
||||
dashboard in transit. The connection to Netdata Cloud is always secured with TLS.
|
||||
|
||||
## Use an authenticating web server in proxy mode
|
||||
|
|
|
@ -43,7 +43,7 @@ While Netdata's charts require no configuration and are easy to interact with, t
|
|||
|
||||
Understanding how these work will help you more easily navigate the dashboard,
|
||||
[write new alerts](https://github.com/netdata/netdata/blob/master/src/health/REFERENCE.md), or play around
|
||||
with the [API](https://github.com/netdata/netdata/blob/master/web/api/README.md).
|
||||
with the [API](https://github.com/netdata/netdata/blob/master/src/web/api/README.md).
|
||||
|
||||
### Dimensions
|
||||
|
||||
|
@ -262,7 +262,7 @@ By default the aggregation applied is _average_ but the user can choose differen
|
|||
- Delta
|
||||
- Single or Double exponential smoothing
|
||||
|
||||
For more details on each, you can refer to our Agent's HTTP API details on [Data Queries - Data Grouping](https://github.com/netdata/netdata/blob/master/web/api/queries/README.md#data-grouping).
|
||||
For more details on each, you can refer to our Agent's HTTP API details on [Data Queries - Data Grouping](https://github.com/netdata/netdata/blob/master/src/web/api/queries/README.md#data-grouping).
|
||||
|
||||
### Reset to defaults
|
||||
|
||||
|
|
|
@ -366,7 +366,7 @@ In Markdown, use the standard image syntax, `![]()`, and place the alt text betw
|
|||
using our logo:
|
||||
|
||||
```markdown
|
||||
![The Netdata logo](https://github.com/netdata/netdata/blob/master/web/gui/static/img/netdata-logomark.svg)
|
||||
![The Netdata logo](https://github.com/netdata/netdata/blob/master/src/web/gui/static/img/netdata-logomark.svg)
|
||||
```
|
||||
|
||||
Reference in-product text, code samples, and terminal output with actual text content, not screen captures or other
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
>
|
||||
> This document is only applicable to the v1 version of the dashboard and doesn't affect the [Netdata Dashboard](https://github.com/netdata/netdata/blob/master/docs/category-overview-pages/accessing-netdata-dashboards.md).
|
||||
|
||||
While the [Netdata dashboard](https://github.com/netdata/netdata/blob/master/web/gui/README.md) comes preconfigured with hundreds of charts and
|
||||
While the [Netdata dashboard](https://github.com/netdata/netdata/blob/master/src/web/gui/README.md) comes preconfigured with hundreds of charts and
|
||||
thousands of metrics, you may want to alter your experience based on a particular use case or preferences.
|
||||
|
||||
## Dashboard settings
|
||||
|
|
|
@ -43,7 +43,7 @@ Use the alphabatized list below to find the answer to your single-term questions
|
|||
|
||||
- [**Context**](https://github.com/netdata/netdata/blob/master/docs/cloud/visualize/interact-new-charts.md#contexts): A way of grouping charts by the types of metrics collected and dimensions displayed. It's kind of like a machine-readable naming and organization scheme.
|
||||
|
||||
- [**Custom dashboards**](https://github.com/netdata/netdata/blob/master/web/gui/custom/README.md) A dashboard that you can create using simple HTML (no javascript is required for basic dashboards).
|
||||
- [**Custom dashboards**](https://github.com/netdata/netdata/blob/master/src/web/gui/custom/README.md) A dashboard that you can create using simple HTML (no javascript is required for basic dashboards).
|
||||
|
||||
## D
|
||||
|
||||
|
|
|
@ -237,7 +237,7 @@ outside your production infrastructure, or if you have cpu and memory to spare.
|
|||
## Run Netdata behind a proxy
|
||||
|
||||
A dedicated web server like nginx provides more robustness than the Agent's
|
||||
internal [web server](https://github.com/netdata/netdata/blob/master/web/README.md).
|
||||
internal [web server](https://github.com/netdata/netdata/blob/master/src/web/README.md).
|
||||
Nginx can handle more concurrent connections, reuse idle connections, and use fast gzip compression to reduce payloads.
|
||||
|
||||
For details on installing another web server as a proxy for the local Agent dashboard,
|
||||
|
|
|
@ -146,7 +146,7 @@ others, and groups them into `sql`. That makes sense, since all these processes
|
|||
sql: mysqld* mariad* postgres* postmaster* oracle_* ora_* sqlservr
|
||||
```
|
||||
|
||||
These groups are then reflected as [dimensions](https://github.com/netdata/netdata/blob/master/web/README.md#dimensions)
|
||||
These groups are then reflected as [dimensions](https://github.com/netdata/netdata/blob/master/src/web/README.md#dimensions)
|
||||
within Netdata's charts.
|
||||
|
||||
![An example per-process CPU utilization chart in Netdata
|
||||
|
|
|
@ -117,7 +117,7 @@ context, charttype]`, where:
|
|||
that is `A.B`, with `A` being the name of the collector, and `B` being the name of the specific metric.
|
||||
- `charttype`: Either `line`, `area`, or `stacked`. If null line is the default value.
|
||||
|
||||
You can read more about `family` and `context` in the [web dashboard](https://github.com/netdata/netdata/blob/master/web/README.md#families) doc.
|
||||
You can read more about `family` and `context` in the [web dashboard](https://github.com/netdata/netdata/blob/master/src/web/README.md#families) doc.
|
||||
|
||||
Once the chart has been defined, you should define the dimensions of the chart. Dimensions are basically the metrics to
|
||||
be represented in this chart and each chart can have more than one dimension. In order to define the dimensions, the
|
||||
|
@ -539,7 +539,7 @@ At minimum, to be buildable and testable, the PR needs to include:
|
|||
- A basic configuration for the plugin in the appropriate global config file: `collectors/python.d.plugin/python.d.conf`, which is also in YAML format. Either add a line that reads `# <module_name>: yes` if the module is to be enabled by default, or one that reads `<module_name>: no` if it is to be disabled by default.
|
||||
- A makefile for the plugin at `collectors/python.d.plugin/<module_dir>/Makefile.inc`. Check an existing plugin for what this should look like.
|
||||
- A line in `collectors/python.d.plugin/Makefile.am` including the above-mentioned makefile. Place it with the other plugin includes (please keep the includes sorted alphabetically).
|
||||
- Optionally, chart information in `web/gui/dashboard_info.js`. This generally involves specifying a name and icon for the section, and may include descriptions for the section or individual charts.
|
||||
- Optionally, chart information in `src/web/gui/dashboard_info.js`. This generally involves specifying a name and icon for the section, and may include descriptions for the section or individual charts.
|
||||
- Optionally, some default alert configurations for your collector in `health/health.d/<module_name>.conf` and a line adding `<module_name>.conf` in `health/Makefile.am`.
|
||||
|
||||
## Framework class reference
|
||||
|
|
|
@ -147,7 +147,7 @@ followed by a similar spike from the Apache benchmark.
|
|||
> To see other charts, replace `apps.file_open` with the context of the chart you want to see data for.
|
||||
>
|
||||
> To see all the API options, visit our [Swagger
|
||||
> documentation](https://editor.swagger.io/?url=https://raw.githubusercontent.com/netdata/netdata/master/web/api/netdata-swagger.yaml)
|
||||
> documentation](https://editor.swagger.io/?url=https://raw.githubusercontent.com/netdata/netdata/master/src/web/api/netdata-swagger.yaml)
|
||||
> and look under the **/data** section.
|
||||
|
||||
## Troubleshoot and debug applications with eBPF
|
||||
|
|
|
@ -140,7 +140,7 @@ child system. It's a vastly simplified way of accessing critical information abo
|
|||
> ⚠️ Because automatic labels for child nodes are accessible via API calls, and contain sensitive information like
|
||||
> kernel and operating system versions, you should secure streaming connections with SSL. See the [streaming
|
||||
> documentation](https://github.com/netdata/netdata/blob/master/src/streaming/README.md#securing-streaming-communications) for details. You may also want to use
|
||||
> [access lists](https://github.com/netdata/netdata/blob/master/web/server/README.md#access-lists) or [expose the API only to LAN/localhost
|
||||
> [access lists](https://github.com/netdata/netdata/blob/master/src/web/server/README.md#access-lists) or [expose the API only to LAN/localhost
|
||||
> connections](https://github.com/netdata/netdata/blob/master/docs/netdata-security.md#expose-netdata-only-in-a-private-lan).
|
||||
|
||||
You can also use `_is_parent`, `_is_child`, and any other host labels in both health entities and metrics
|
||||
|
|
|
@ -179,7 +179,7 @@ sudo chown netdata:netdata /etc/netdata/ssl/cert.pem /etc/netdata/ssl/key.pem
|
|||
|
||||
Next, enforce TLS/SSL on the web server. Open `netdata.conf`, scroll down to the `[web]` section, and look for the `bind
|
||||
to` setting. Add `^SSL=force` to turn on TLS/SSL. See the [web server
|
||||
reference](https://github.com/netdata/netdata/blob/master/web/server/README.md#enabling-tls-support) for other TLS/SSL options.
|
||||
reference](https://github.com/netdata/netdata/blob/master/src/web/server/README.md#enabling-tls-support) for other TLS/SSL options.
|
||||
|
||||
```conf
|
||||
[web]
|
||||
|
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -237,7 +237,7 @@ Examples below for process group `sql`:
|
|||
- Open Pipes ![image](https://registry.my-netdata.io/api/v1/badge.svg?chart=apps.fds_pipes&dimensions=sql&value_color=green=0%7Cred)
|
||||
- Open Sockets ![image](https://registry.my-netdata.io/api/v1/badge.svg?chart=apps.fds_sockets&dimensions=sql&value_color=green%3E=3%7Cred)
|
||||
|
||||
For more information about badges check [Generating Badges](https://github.com/netdata/netdata/blob/master/web/api/badges/README.md)
|
||||
For more information about badges check [Generating Badges](https://github.com/netdata/netdata/blob/master/src/web/api/badges/README.md)
|
||||
|
||||
## Comparison with console tools
|
||||
|
||||
|
|
|
@ -219,7 +219,7 @@ If you would like to go deeper on what exactly the anomalies collector is doing
|
|||
|
||||
## Notes
|
||||
|
||||
- Python 3 is required as the [`netdata-pandas`](https://github.com/netdata/netdata-pandas) package uses Python async libraries ([asks](https://pypi.org/project/asks/) and [trio](https://pypi.org/project/trio/)) to make asynchronous calls to the [Netdata REST API](https://github.com/netdata/netdata/blob/master/web/api/README.md) to get the required data for each chart.
|
||||
- Python 3 is required as the [`netdata-pandas`](https://github.com/netdata/netdata-pandas) package uses Python async libraries ([asks](https://pypi.org/project/asks/) and [trio](https://pypi.org/project/trio/)) to make asynchronous calls to the [Netdata REST API](https://github.com/netdata/netdata/blob/master/src/web/api/README.md) to get the required data for each chart.
|
||||
- Python 3 is also required for the underlying ML libraries of [numba](https://pypi.org/project/numba/), [scikit-learn](https://pypi.org/project/scikit-learn/), and [PyOD](https://pypi.org/project/pyod/).
|
||||
- It may take a few hours or so (depending on your choice of `train_secs_n`) for the collector to 'settle' into it's typical behaviour in terms of the trained models and probabilities you will see in the normal running of your node.
|
||||
- As this collector does most of the work in Python itself, with [PyOD](https://pyod.readthedocs.io/en/latest/) leveraging [numba](https://numba.pydata.org/) under the hood, you may want to try it out first on a test or development system to get a sense of its performance characteristics on a node similar to where you would like to use it.
|
||||
|
|
|
@ -20,7 +20,7 @@ Module: zscores
|
|||
By using smoothed, rolling [Z-Scores](https://en.wikipedia.org/wiki/Standard_score) for selected metrics or charts you can narrow down your focus and shorten root cause analysis.
|
||||
|
||||
|
||||
This collector uses the [Netdata rest api](https://github.com/netdata/netdata/blob/master/web/api/README.md) to get the `mean` and `stddev`
|
||||
This collector uses the [Netdata rest api](https://github.com/netdata/netdata/blob/master/src/web/api/README.md) to get the `mean` and `stddev`
|
||||
for each dimension on specified charts over a time range (defined by `train_secs` and `offset_secs`).
|
||||
|
||||
For each dimension it will calculate a Z-Score as `z = (x - mean) / stddev` (clipped at `z_clip`). Scores are then smoothed over
|
||||
|
|
|
@ -27,7 +27,7 @@ modules:
|
|||
metrics_description: |
|
||||
By using smoothed, rolling [Z-Scores](https://en.wikipedia.org/wiki/Standard_score) for selected metrics or charts you can narrow down your focus and shorten root cause analysis.
|
||||
method_description: |
|
||||
This collector uses the [Netdata rest api](https://github.com/netdata/netdata/blob/master/web/api/README.md) to get the `mean` and `stddev`
|
||||
This collector uses the [Netdata rest api](https://github.com/netdata/netdata/blob/master/src/web/api/README.md) to get the `mean` and `stddev`
|
||||
for each dimension on specified charts over a time range (defined by `train_secs` and `offset_secs`).
|
||||
|
||||
For each dimension it will calculate a Z-Score as `z = (x - mean) / stddev` (clipped at `z_clip`). Scores are then smoothed over
|
||||
|
|
|
@ -305,7 +305,7 @@ Synthetic charts are organized in
|
|||
- **charts for each application** aka family in Netdata Dashboard.
|
||||
- **StatsD metrics for each chart** /aka charts and context Netdata Dashboard.
|
||||
|
||||
> You can read more about how the Netdata Agent organizes information in the relevant [documentation](https://github.com/netdata/netdata/blob/master/web/README.md)
|
||||
> You can read more about how the Netdata Agent organizes information in the relevant [documentation](https://github.com/netdata/netdata/blob/master/src/web/README.md)
|
||||
|
||||
For each application you need to create a `.conf` file in `/etc/netdata/statsd.d`.
|
||||
|
||||
|
@ -832,7 +832,7 @@ Context is a second way to group metrics, when the metrics are of the same natur
|
|||
our case, if we ran several different load testing experiments side-by-side, we could define the same app,
|
||||
but different context (e.g `http_requests.experiment1`, `http_requests.experiment2`).
|
||||
|
||||
Find more details about family and context in our [documentation](https://github.com/netdata/netdata/blob/master/web/README.md#families).
|
||||
Find more details about family and context in our [documentation](https://github.com/netdata/netdata/blob/master/src/web/README.md#families).
|
||||
|
||||
#### Dimensions
|
||||
|
||||
|
@ -981,7 +981,7 @@ At this point, you have used StatsD to gather metrics for k6, creating a whole n
|
|||
Netdata dashboard in the process. Moreover, you can further customize the icon of the particular section,
|
||||
as well as the description for each chart.
|
||||
|
||||
To edit the section, please follow the Netdata [documentation](https://github.com/netdata/netdata/blob/master/web/gui/README.md#customizing-the-local-dashboard).
|
||||
To edit the section, please follow the Netdata [documentation](https://github.com/netdata/netdata/blob/master/src/web/gui/README.md#customizing-the-local-dashboard).
|
||||
|
||||
While the following configuration will be placed in a new file, as the documentation suggests, it is
|
||||
instructing to use `dashboard_info.js` as a template. Open the file and see how the rest of sections and collectors have been defined.
|
||||
|
|
|
@ -25,7 +25,7 @@ adapt the general behavior of Netdata, in great detail. You can find all these s
|
|||
accessing the URL `https://netdata.server.hostname:19999/netdata.conf`. For example check the configuration file
|
||||
of [netdata.firehol.org](http://netdata.firehol.org/netdata.conf). HTTP access to this file is limited by default to
|
||||
[private IPs](https://en.wikipedia.org/wiki/Private_network), via
|
||||
the [web server access lists](https://github.com/netdata/netdata/blob/master/web/server/README.md#access-lists).
|
||||
the [web server access lists](https://github.com/netdata/netdata/blob/master/src/web/server/README.md#access-lists).
|
||||
|
||||
`netdata.conf` has sections stated with `[section]`. You will see the following sections:
|
||||
|
||||
|
@ -38,7 +38,7 @@ the [web server access lists](https://github.com/netdata/netdata/blob/master/web
|
|||
6. `[sqlite]` to [configure](#sqlite-section-options) the [Netdata daemon](https://github.com/netdata/netdata/blob/master/src/daemon/README.md) SQLite settings.
|
||||
7. `[ml]` to configure settings for [machine learning](https://github.com/netdata/netdata/blob/master/src/ml/README.md).
|
||||
8. `[health]` to [configure](#health-section-options) general settings for [health monitoring](https://github.com/netdata/netdata/blob/master/src/health/README.md).
|
||||
9. `[web]` to [configure the web server](https://github.com/netdata/netdata/blob/master/web/server/README.md).
|
||||
9. `[web]` to [configure the web server](https://github.com/netdata/netdata/blob/master/src/web/server/README.md).
|
||||
10. `[registry]` for the [Netdata registry](https://github.com/netdata/netdata/blob/master/src/registry/README.md).
|
||||
11. `[global statistics]` for the [Netdata registry](https://github.com/netdata/netdata/blob/master/src/registry/README.md).
|
||||
12. `[statsd]` for the general settings of the [stats.d.plugin](https://github.com/netdata/netdata/blob/master/src/collectors/statsd.plugin/README.md).
|
||||
|
@ -181,7 +181,7 @@ monitoring](https://github.com/netdata/netdata/blob/master/src/health/README.md)
|
|||
|
||||
### [web] section options
|
||||
|
||||
Refer to the [web server documentation](https://github.com/netdata/netdata/blob/master/web/server/README.md)
|
||||
Refer to the [web server documentation](https://github.com/netdata/netdata/blob/master/src/web/server/README.md)
|
||||
|
||||
### [plugins] section options
|
||||
|
||||
|
|
|
@ -72,7 +72,7 @@ Save the file and [reload Netdata's health configuration](#reload-health-configu
|
|||
## Disable or silence alerts
|
||||
|
||||
Alerts and notifications can be disabled permanently via configuration changes, or temporarily, via the
|
||||
[health management API](https://github.com/netdata/netdata/blob/master/web/api/health/README.md). The
|
||||
[health management API](https://github.com/netdata/netdata/blob/master/src/web/api/health/README.md). The
|
||||
available options are described below.
|
||||
|
||||
### Disable all alerts
|
||||
|
@ -102,7 +102,7 @@ This action requires that you [reload Netdata's health configuration](#reload-he
|
|||
|
||||
When you need to frequently disable all or some alerts from triggering during certain times (for instance
|
||||
when running backups) you can use the
|
||||
[health management API](https://github.com/netdata/netdata/blob/master/web/api/health/README.md).
|
||||
[health management API](https://github.com/netdata/netdata/blob/master/src/web/api/health/README.md).
|
||||
The API allows you to issue commands to control the health engine's behavior without changing configuration,
|
||||
or restarting the agent.
|
||||
|
||||
|
@ -110,7 +110,7 @@ or restarting the agent.
|
|||
|
||||
If you want health checks to keep running and alerts to keep getting triggered, but notifications to be
|
||||
suppressed temporarily, you can use the
|
||||
[health management API](https://github.com/netdata/netdata/blob/master/web/api/health/README.md).
|
||||
[health management API](https://github.com/netdata/netdata/blob/master/src/web/api/health/README.md).
|
||||
The API allows you to issue commands to control the health engine's behavior without changing configuration,
|
||||
or restarting the agent.
|
||||
|
||||
|
@ -447,9 +447,9 @@ The format is:
|
|||
lookup: METHOD AFTER [at BEFORE] [every DURATION] [OPTIONS] [of DIMENSIONS] [foreach DIMENSIONS]
|
||||
```
|
||||
|
||||
The full [database query API](https://github.com/netdata/netdata/blob/master/web/api/queries/README.md) is supported. In short:
|
||||
The full [database query API](https://github.com/netdata/netdata/blob/master/src/web/api/queries/README.md) is supported. In short:
|
||||
|
||||
- `METHOD` is one of the available [grouping methods](https://github.com/netdata/netdata/blob/master/web/api/queries/README.md#grouping-methods) such as `average`, `min`, `max` etc.
|
||||
- `METHOD` is one of the available [grouping methods](https://github.com/netdata/netdata/blob/master/src/web/api/queries/README.md#grouping-methods) such as `average`, `min`, `max` etc.
|
||||
This is required.
|
||||
|
||||
- `AFTER` is a relative number of seconds, but it also accepts a single letter for changing
|
||||
|
@ -464,7 +464,7 @@ The full [database query API](https://github.com/netdata/netdata/blob/master/web
|
|||
above too).
|
||||
|
||||
- `OPTIONS` is a space separated list of `percentage`, `absolute`, `min2max`, `unaligned`,
|
||||
`match-ids`, `match-names`. Check the [badges](https://github.com/netdata/netdata/blob/master/web/api/badges/README.md) documentation for more info.
|
||||
`match-ids`, `match-names`. Check the [badges](https://github.com/netdata/netdata/blob/master/src/web/api/badges/README.md) documentation for more info.
|
||||
|
||||
- `of DIMENSIONS` is optional and has to be the last parameter. Dimensions have to be separated
|
||||
by `,` or `|`. The space characters found in dimensions will be kept as-is (a few dimensions
|
||||
|
@ -860,14 +860,14 @@ You can find all the variables that can be used for a given chart, using
|
|||
Agent dashboard. For example, [variables for the `system.cpu` chart of the
|
||||
registry](https://registry.my-netdata.io/api/v1/alarm_variables?chart=system.cpu).
|
||||
|
||||
> If you don't know how to find the CHART_NAME, you can read about it [here](https://github.com/netdata/netdata/blob/master/web/README.md#charts).
|
||||
> If you don't know how to find the CHART_NAME, you can read about it [here](https://github.com/netdata/netdata/blob/master/src/web/README.md#charts).
|
||||
|
||||
Netdata supports 3 internal indexes for variables that will be used in health monitoring.
|
||||
|
||||
<details><summary>The variables below can be used in both chart alerts and context templates.</summary>
|
||||
|
||||
Although the `alarm_variables` link shows you variables for a particular chart, the same variables can also be used in
|
||||
templates for charts belonging to a given [context](https://github.com/netdata/netdata/blob/master/web/README.md#contexts). The reason is that all charts of a given
|
||||
templates for charts belonging to a given [context](https://github.com/netdata/netdata/blob/master/src/web/README.md#contexts). The reason is that all charts of a given
|
||||
context are essentially identical, with the only difference being the family that identifies a particular hardware or software instance.
|
||||
|
||||
</details>
|
||||
|
|
|
@ -2399,7 +2399,7 @@ send_ntfy() {
|
|||
msg="${host} ${status_message}: ${alarm} - ${info}"
|
||||
httpcode=$(docurl -X POST \
|
||||
"${ntfy_auth_header[@]}" \
|
||||
-H "Icon: https://raw.githubusercontent.com/netdata/netdata/master/web/gui/dashboard/images/favicon-196x196.png" \
|
||||
-H "Icon: https://raw.githubusercontent.com/netdata/netdata/master/src/web/gui/dashboard/images/favicon-196x196.png" \
|
||||
-H "Title: ${host}: ${name//_/ }" \
|
||||
-H "Tags: ${emoji}" \
|
||||
-H "Priority: ${priority}" \
|
||||
|
|
|
@ -153,7 +153,7 @@ cache size` and `dbengine multihost disk space` settings in the `[global]` secti
|
|||
| `[global]` section | | |
|
||||
| `memory mode` | `dbengine` | Determines the [database type](https://github.com/netdata/netdata/blob/master/src/database/README.md) to be used on that node. Other options settings include `none`, and `ram`. `none` disables the database at this host. This also disables alerts and notifications, as those can't run without a database. |
|
||||
| `[web]` section | | |
|
||||
| `mode` | `static-threaded` | Determines the [web server](https://github.com/netdata/netdata/blob/master/web/server/README.md) type. The other option is `none`, which disables the dashboard, API, and registry. |
|
||||
| `mode` | `static-threaded` | Determines the [web server](https://github.com/netdata/netdata/blob/master/src/web/server/README.md) type. The other option is `none`, which disables the dashboard, API, and registry. |
|
||||
| `accept a streaming request every seconds` | `0` | Set a limit on how often a parent node accepts streaming requests from child nodes. `0` equals no limit. If this is set, you may see `... too busy to accept new streaming request. Will be allowed in X secs` in Netdata's `error.log`. |
|
||||
|
||||
### Basic use cases
|
||||
|
@ -287,7 +287,7 @@ Same thing applies with the `[MACHINE_GUID]` configuration.
|
|||
### Securing streaming with TLS/SSL
|
||||
|
||||
Netdata does not activate TLS encryption by default. To encrypt streaming connections, you first need to [enable TLS
|
||||
support](https://github.com/netdata/netdata/blob/master/web/server/README.md#enabling-tls-support) on the parent. With encryption enabled on the receiving side, you
|
||||
support](https://github.com/netdata/netdata/blob/master/src/web/server/README.md#enabling-tls-support) on the parent. With encryption enabled on the receiving side, you
|
||||
need to instruct the child to use TLS/SSL as well. On the child's `stream.conf`, configure the destination as follows:
|
||||
|
||||
```
|
||||
|
|
|
@ -8,17 +8,17 @@ team and the community, but you can also customize them yourself.
|
|||
|
||||
There are two primary ways to view Netdata's dashboards on the agent:
|
||||
|
||||
1. The [local Agent dashboard](https://github.com/netdata/netdata/blob/master/web/gui/README.md) that comes pre-configured with every Netdata installation. You can
|
||||
1. The [local Agent dashboard](https://github.com/netdata/netdata/blob/master/src/web/gui/README.md) that comes pre-configured with every Netdata installation. You can
|
||||
see it at `http://NODE:19999`, replacing `NODE` with `localhost`, the hostname of your node, or its IP address. You
|
||||
can customize the contents and colors of the standard dashboard [using
|
||||
JavaScript](https://github.com/netdata/netdata/blob/master/web/gui/README.md#customizing-the-local-dashboard).
|
||||
JavaScript](https://github.com/netdata/netdata/blob/master/src/web/gui/README.md#customizing-the-local-dashboard).
|
||||
|
||||
2. The [`dashboard.js` JavaScript library](#dashboardjs), which helps you
|
||||
[customize the standard dashboards](https://github.com/netdata/netdata/blob/master/web/gui/README.md#customizing-the-local-dashboard)
|
||||
using JavaScript, or create entirely new [custom dashboards](https://github.com/netdata/netdata/blob/master/web/gui/custom/README.md) or
|
||||
[Atlassian Confluence dashboards](https://github.com/netdata/netdata/blob/master/web/gui/confluence/README.md).
|
||||
[customize the standard dashboards](https://github.com/netdata/netdata/blob/master/src/web/gui/README.md#customizing-the-local-dashboard)
|
||||
using JavaScript, or create entirely new [custom dashboards](https://github.com/netdata/netdata/blob/master/src/web/gui/custom/README.md) or
|
||||
[Atlassian Confluence dashboards](https://github.com/netdata/netdata/blob/master/src/web/gui/confluence/README.md).
|
||||
|
||||
You can also view all the data Netdata collects through the [REST API v1](https://github.com/netdata/netdata/blob/master/web/api/README.md#netdata-rest-api).
|
||||
You can also view all the data Netdata collects through the [REST API v1](https://github.com/netdata/netdata/blob/master/src/web/api/README.md#netdata-rest-api).
|
||||
|
||||
## dashboard.js
|
||||
|
||||
|
@ -27,7 +27,7 @@ all the charts and other visualizations that appear on any Netdata dashboard.
|
|||
You need to put `dashboard.js` on any HTML page that's going to render Netdata
|
||||
charts.
|
||||
|
||||
The [custom dashboards documentation](https://github.com/netdata/netdata/blob/master/web/gui/custom/README.md) contains examples of such
|
||||
The [custom dashboards documentation](https://github.com/netdata/netdata/blob/master/src/web/gui/custom/README.md) contains examples of such
|
||||
custom HTML pages.
|
||||
|
||||
### Generating dashboard.js
|
|
@ -2,9 +2,9 @@
|
|||
|
||||
## Netdata agent REST API
|
||||
|
||||
The complete documentation of the Netdata agent's REST API is documented in the OpenAPI format [in our GitHub repository](https://raw.githubusercontent.com/netdata/netdata/master/web/api/netdata-swagger.yaml).
|
||||
The complete documentation of the Netdata agent's REST API is documented in the OpenAPI format [in our GitHub repository](https://raw.githubusercontent.com/netdata/netdata/master/src/web/api/netdata-swagger.yaml).
|
||||
|
||||
You can explore it using the **[Swagger UI](https://learn.netdata.cloud/api)**, or the **[Swagger Editor](https://editor.swagger.io/?url=https://raw.githubusercontent.com/netdata/netdata/master/web/api/netdata-swagger.yaml)**.
|
||||
You can explore it using the **[Swagger UI](https://learn.netdata.cloud/api)**, or the **[Swagger Editor](https://editor.swagger.io/?url=https://raw.githubusercontent.com/netdata/netdata/master/src/web/api/netdata-swagger.yaml)**.
|
||||
|
||||
## Netdata cloud API
|
||||
|
|
@ -1,6 +1,6 @@
|
|||
<!--
|
||||
title: "Netdata badges"
|
||||
custom_edit_url: https://github.com/netdata/netdata/edit/master/web/api/badges/README.md
|
||||
custom_edit_url: https://github.com/netdata/netdata/edit/master/src/web/api/badges/README.md
|
||||
sidebar_label: "Netdata badges"
|
||||
learn_status: "Published"
|
||||
learn_topic_type: "References"
|
|
@ -1,6 +1,6 @@
|
|||
<!--
|
||||
title: "Exporters"
|
||||
custom_edit_url: https://github.com/netdata/netdata/edit/master/web/api/exporters/README.md
|
||||
custom_edit_url: https://github.com/netdata/netdata/edit/master/src/web/api/exporters/README.md
|
||||
sidebar_label: "Exporters"
|
||||
learn_status: "Published"
|
||||
learn_topic_type: "References"
|
|
@ -1,6 +1,6 @@
|
|||
<!--
|
||||
title: "Prometheus exporter"
|
||||
custom_edit_url: https://github.com/netdata/netdata/edit/master/web/api/exporters/prometheus/README.md
|
||||
custom_edit_url: https://github.com/netdata/netdata/edit/master/src/web/api/exporters/prometheus/README.md
|
||||
sidebar_label: "Prometheus exporter"
|
||||
learn_status: "Published"
|
||||
learn_topic_type: "References"
|
|
@ -1,6 +1,6 @@
|
|||
<!--
|
||||
title: "Shell exporter"
|
||||
custom_edit_url: https://github.com/netdata/netdata/edit/master/web/api/exporters/shell/README.md
|
||||
custom_edit_url: https://github.com/netdata/netdata/edit/master/src/web/api/exporters/shell/README.md
|
||||
sidebar_label: "Shell exporter"
|
||||
learn_status: "Published"
|
||||
learn_topic_type: "References"
|
|
@ -1,6 +1,6 @@
|
|||
<!--
|
||||
title: "Query formatting"
|
||||
custom_edit_url: https://github.com/netdata/netdata/edit/master/web/api/formatters/README.md
|
||||
custom_edit_url: https://github.com/netdata/netdata/edit/master/src/web/api/formatters/README.md
|
||||
sidebar_label: "Query formatting"
|
||||
learn_status: "Published"
|
||||
learn_topic_type: "References"
|
||||
|
@ -16,18 +16,18 @@ The following formats are supported:
|
|||
|
||||
| format|module|content type|description|
|
||||
|:----:|:----:|:----------:|:----------|
|
||||
| `array`|[ssv](https://github.com/netdata/netdata/blob/master/web/api/formatters/ssv/README.md)|application/json|a JSON array|
|
||||
| `csv`|[csv](https://github.com/netdata/netdata/blob/master/web/api/formatters/csv/README.md)|text/plain|a text table, comma separated, with a header line (dimension names) and `\r\n` at the end of the lines|
|
||||
| `csvjsonarray`|[csv](https://github.com/netdata/netdata/blob/master/web/api/formatters/csv/README.md)|application/json|a JSON array, with each row as another array (the first row has the dimension names)|
|
||||
| `datasource`|[json](https://github.com/netdata/netdata/blob/master/web/api/formatters/json/README.md)|application/json|a Google Visualization Provider `datasource` javascript callback|
|
||||
| `datatable`|[json](https://github.com/netdata/netdata/blob/master/web/api/formatters/json/README.md)|application/json|a Google `datatable`|
|
||||
| `html`|[csv](https://github.com/netdata/netdata/blob/master/web/api/formatters/csv/README.md)|text/html|an html table|
|
||||
| `json`|[json](https://github.com/netdata/netdata/blob/master/web/api/formatters/json/README.md)|application/json|a JSON object|
|
||||
| `jsonp`|[json](https://github.com/netdata/netdata/blob/master/web/api/formatters/json/README.md)|application/json|a JSONP javascript callback|
|
||||
| `markdown`|[csv](https://github.com/netdata/netdata/blob/master/web/api/formatters/csv/README.md)|text/plain|a markdown table|
|
||||
| `ssv`|[ssv](https://github.com/netdata/netdata/blob/master/web/api/formatters/ssv/README.md)|text/plain|a space separated list of values|
|
||||
| `ssvcomma`|[ssv](https://github.com/netdata/netdata/blob/master/web/api/formatters/ssv/README.md)|text/plain|a comma separated list of values|
|
||||
| `tsv`|[csv](https://github.com/netdata/netdata/blob/master/web/api/formatters/csv/README.md)|text/plain|a TAB delimited `csv` (MS Excel flavor)|
|
||||
| `array`|[ssv](https://github.com/netdata/netdata/blob/master/src/web/api/formatters/ssv/README.md)|application/json|a JSON array|
|
||||
| `csv`|[csv](https://github.com/netdata/netdata/blob/master/src/web/api/formatters/csv/README.md)|text/plain|a text table, comma separated, with a header line (dimension names) and `\r\n` at the end of the lines|
|
||||
| `csvjsonarray`|[csv](https://github.com/netdata/netdata/blob/master/src/web/api/formatters/csv/README.md)|application/json|a JSON array, with each row as another array (the first row has the dimension names)|
|
||||
| `datasource`|[json](https://github.com/netdata/netdata/blob/master/src/web/api/formatters/json/README.md)|application/json|a Google Visualization Provider `datasource` javascript callback|
|
||||
| `datatable`|[json](https://github.com/netdata/netdata/blob/master/src/web/api/formatters/json/README.md)|application/json|a Google `datatable`|
|
||||
| `html`|[csv](https://github.com/netdata/netdata/blob/master/src/web/api/formatters/csv/README.md)|text/html|an html table|
|
||||
| `json`|[json](https://github.com/netdata/netdata/blob/master/src/web/api/formatters/json/README.md)|application/json|a JSON object|
|
||||
| `jsonp`|[json](https://github.com/netdata/netdata/blob/master/src/web/api/formatters/json/README.md)|application/json|a JSONP javascript callback|
|
||||
| `markdown`|[csv](https://github.com/netdata/netdata/blob/master/src/web/api/formatters/csv/README.md)|text/plain|a markdown table|
|
||||
| `ssv`|[ssv](https://github.com/netdata/netdata/blob/master/src/web/api/formatters/ssv/README.md)|text/plain|a space separated list of values|
|
||||
| `ssvcomma`|[ssv](https://github.com/netdata/netdata/blob/master/src/web/api/formatters/ssv/README.md)|text/plain|a comma separated list of values|
|
||||
| `tsv`|[csv](https://github.com/netdata/netdata/blob/master/src/web/api/formatters/csv/README.md)|text/plain|a TAB delimited `csv` (MS Excel flavor)|
|
||||
|
||||
For examples of each format, check the relative module documentation.
|
||||
|
|
@ -1,6 +1,6 @@
|
|||
<!--
|
||||
title: "CSV formatter"
|
||||
custom_edit_url: https://github.com/netdata/netdata/edit/master/web/api/formatters/csv/README.md
|
||||
custom_edit_url: https://github.com/netdata/netdata/edit/master/src/web/api/formatters/csv/README.md
|
||||
sidebar_label: "CSV formatter"
|
||||
learn_status: "Published"
|
||||
learn_topic_type: "References"
|
||||
|
@ -9,7 +9,7 @@ learn_rel_path: "Developers/Web/Api/Formatters"
|
|||
|
||||
# CSV formatter
|
||||
|
||||
The CSV formatter presents [results of database queries](https://github.com/netdata/netdata/blob/master/web/api/queries/README.md) in the following formats:
|
||||
The CSV formatter presents [results of database queries](https://github.com/netdata/netdata/blob/master/src/web/api/queries/README.md) in the following formats:
|
||||
|
||||
| format|content type|description|
|
||||
| :----:|:----------:|:----------|
|
|
@ -1,6 +1,6 @@
|
|||
<!--
|
||||
title: "JSON formatter"
|
||||
custom_edit_url: https://github.com/netdata/netdata/edit/master/web/api/formatters/json/README.md
|
||||
custom_edit_url: https://github.com/netdata/netdata/edit/master/src/web/api/formatters/json/README.md
|
||||
sidebar_label: "JSON formatter"
|
||||
learn_status: "Published"
|
||||
learn_topic_type: "References"
|
||||
|
@ -9,7 +9,7 @@ learn_rel_path: "Developers/Web/Api/Formatters"
|
|||
|
||||
# JSON formatter
|
||||
|
||||
The CSV formatter presents [results of database queries](https://github.com/netdata/netdata/blob/master/web/api/queries/README.md) in the following formats:
|
||||
The CSV formatter presents [results of database queries](https://github.com/netdata/netdata/blob/master/src/web/api/queries/README.md) in the following formats:
|
||||
|
||||
| format | content type | description|
|
||||
|:----:|:----------:|:----------|
|
|
@ -1,6 +1,6 @@
|
|||
<!--
|
||||
title: "SSV formatter"
|
||||
custom_edit_url: https://github.com/netdata/netdata/edit/master/web/api/formatters/ssv/README.md
|
||||
custom_edit_url: https://github.com/netdata/netdata/edit/master/src/web/api/formatters/ssv/README.md
|
||||
sidebar_label: "SSV formatter"
|
||||
learn_status: "Published"
|
||||
learn_topic_type: "References"
|
||||
|
@ -9,7 +9,7 @@ learn_rel_path: "Developers/Web/Api/Formatters"
|
|||
|
||||
# SSV formatter
|
||||
|
||||
The SSV formatter sums all dimensions in [results of database queries](https://github.com/netdata/netdata/blob/master/web/api/queries/README.md)
|
||||
The SSV formatter sums all dimensions in [results of database queries](https://github.com/netdata/netdata/blob/master/src/web/api/queries/README.md)
|
||||
to a single value and returns a list of such values showing how it changes through time.
|
||||
|
||||
It supports the following formats:
|
|
@ -1,6 +1,6 @@
|
|||
<!--
|
||||
title: "Value formatter"
|
||||
custom_edit_url: https://github.com/netdata/netdata/edit/master/web/api/formatters/value/README.md
|
||||
custom_edit_url: https://github.com/netdata/netdata/edit/master/src/web/api/formatters/value/README.md
|
||||
sidebar_label: "Value formatter"
|
||||
learn_status: "Published"
|
||||
learn_topic_type: "References"
|
||||
|
@ -9,7 +9,7 @@ learn_rel_path: "Developers/Web/Api/Formatters"
|
|||
|
||||
# Value formatter
|
||||
|
||||
The Value formatter presents [results of database queries](https://github.com/netdata/netdata/blob/master/web/api/queries/README.md) as a single value.
|
||||
The Value formatter presents [results of database queries](https://github.com/netdata/netdata/blob/master/src/web/api/queries/README.md) as a single value.
|
||||
|
||||
To calculate the single value to be returned, it sums the values of all dimensions.
|
||||
|
||||
|
@ -22,7 +22,7 @@ The Value formatter respects the following API `&options=`:
|
|||
| `min2max` | yes | to return the delta from the minimum value to the maximum value (across dimensions)|
|
||||
|
||||
The Value formatter is not exposed by the API by itself.
|
||||
Instead it is used by the [`ssv`](https://github.com/netdata/netdata/blob/master/web/api/formatters/ssv/README.md) formatter
|
||||
Instead it is used by the [`ssv`](https://github.com/netdata/netdata/blob/master/src/web/api/formatters/ssv/README.md) formatter
|
||||
and [health monitoring queries](https://github.com/netdata/netdata/blob/master/src/health/README.md).
|
||||
|
||||
|
|
@ -1,7 +1,7 @@
|
|||
<!--
|
||||
title: "Health API Calls"
|
||||
date: 2020-04-27
|
||||
custom_edit_url: https://github.com/netdata/netdata/edit/master/web/api/health/README.md
|
||||
custom_edit_url: https://github.com/netdata/netdata/edit/master/src/web/api/health/README.md
|
||||
sidebar_label: "Health API Calls"
|
||||
learn_status: "Published"
|
||||
learn_topic_type: "References"
|
||||
|
@ -76,7 +76,7 @@ You can access the API via GET requests, by adding the bearer token to an `Autho
|
|||
curl "http://NODE:19999/api/v1/manage/health?cmd=RESET" -H "X-Auth-Token: Mytoken"
|
||||
```
|
||||
|
||||
By default access to the health management API is only allowed from `localhost`. Accessing the API from anything else will return a 403 error with the message `You are not allowed to access this resource.`. You can change permissions by editing the `allow management from` variable in `netdata.conf` within the [web] section. See [web server access lists](https://github.com/netdata/netdata/blob/master/web/server/README.md#access-lists) for more information.
|
||||
By default access to the health management API is only allowed from `localhost`. Accessing the API from anything else will return a 403 error with the message `You are not allowed to access this resource.`. You can change permissions by editing the `allow management from` variable in `netdata.conf` within the [web] section. See [web server access lists](https://github.com/netdata/netdata/blob/master/src/web/server/README.md#access-lists) for more information.
|
||||
|
||||
The command `RESET` just returns Netdata to the default operation, with all health checks and notifications enabled.
|
||||
If you've configured and entered your token correctly, you should see the plain text response `All health checks and notifications are enabled`.
|
|
@ -1,7 +1,7 @@
|
|||
<!--
|
||||
title: "Average or Mean"
|
||||
sidebar_label: "Average or Mean"
|
||||
custom_edit_url: https://github.com/netdata/netdata/edit/master/web/api/queries/average/README.md
|
||||
custom_edit_url: https://github.com/netdata/netdata/edit/master/src/web/api/queries/average/README.md
|
||||
learn_status: "Published"
|
||||
learn_topic_type: "References"
|
||||
learn_rel_path: "Developers/Web/Api/Queries"
|
|
@ -1,7 +1,7 @@
|
|||
<!--
|
||||
title: "CountIf"
|
||||
sidebar_label: "CountIf"
|
||||
custom_edit_url: https://github.com/netdata/netdata/edit/master/web/api/queries/countif/README.md
|
||||
custom_edit_url: https://github.com/netdata/netdata/edit/master/src/web/api/queries/countif/README.md
|
||||
learn_status: "Published"
|
||||
learn_topic_type: "References"
|
||||
learn_rel_path: "Developers/Web/Api/Queries"
|
|
@ -1,7 +1,7 @@
|
|||
<!--
|
||||
title: "double exponential smoothing"
|
||||
sidebar_label: "double exponential smoothing"
|
||||
custom_edit_url: https://github.com/netdata/netdata/edit/master/web/api/queries/des/README.md
|
||||
custom_edit_url: https://github.com/netdata/netdata/edit/master/src/web/api/queries/des/README.md
|
||||
learn_status: "Published"
|
||||
learn_topic_type: "References"
|
||||
learn_rel_path: "Developers/Web/Api/Queries"
|
|
@ -1,7 +1,7 @@
|
|||
<!--
|
||||
title: "Incremental Sum (`incremental_sum`)"
|
||||
sidebar_label: "Incremental Sum (`incremental_sum`)"
|
||||
custom_edit_url: https://github.com/netdata/netdata/edit/master/web/api/queries/incremental_sum/README.md
|
||||
custom_edit_url: https://github.com/netdata/netdata/edit/master/src/web/api/queries/incremental_sum/README.md
|
||||
learn_status: "Published"
|
||||
learn_topic_type: "References"
|
||||
learn_rel_path: "Developers/Web/Api/Queries"
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue