0
0
Fork 0
mirror of https://github.com/netdata/netdata.git synced 2025-04-24 05:13:08 +00:00
Commit graph

69 commits

Author SHA1 Message Date
Ilya Mashchenko
bec641cc99 add family to allmetrics_json resp () 2019-09-27 21:33:34 +00:00
Markos Fountoulakis
65727b6a30
Restore original alignment behaviour of RRDR ()
* Restore original alignment behaviour of RRDR
2019-09-25 00:11:05 +03:00
Promise Akpan
2cd5f08007 Remove Dollar sign from Bash code in documentation and fix remark-lint warnings ()
* remove dollar sign from bash code

* remove dollar sign from sh

* clean up uninstall doc

* remove dollar sign from shell code

* fix remark after removing dollar sign

* fix HAProxy  dollar sign and clean up remark
2019-09-18 17:57:56 +02:00
Jacek Kolasa
788fbb219a
sidebar-info update - DB engine ()
* remove "Netdata is using # MB of memory on HOSTNAME for # hour, # minutes, and # seconds of real-time history."

* Added "memory_mode" key to the get "charts" API call

* don't show db engine tip when user has it already installed

* add back hostname information

* add oxford comma (only for db-engine users)

* update main.js hash

* <b> --> <strong> (but only in sidebar info, main.js)
2019-09-12 15:35:44 +02:00
thiagoftsm
982890f8ea
HTTP response message ()
* health_connection: http_error_pattern

This commit brings an unique pattern for the Netdata webserver errors,
now Netdata uses define for all web error

* http_error_pattern: API v1

This PR also brings the pattern for the web_api_v1.c
2019-09-03 11:23:32 +00:00
Markos Fountoulakis
2a06960117
Variable Granularity support for data collection ()
* Variable Granularity support for data collection in the dbengine.

* Variable Granularity support for data collection in the daemon.

* Added tests to validate the data being queried after having been collected by changing data collection interval

* Fix memory corruption

* Updated database engine documentation about data collection frequency behaviour
2019-08-28 17:33:51 +03:00
Valentin Rakush
62bc37ed5f Add alarm status counter api call ()
##### Summary
This is implementation of a prerequisite for the requested feature  (Generate an overall status badge/chart for the health of category)

##### Component Name
web/api/
health/

##### Details
Provide a new, `alarm_count` API call that returns the total number of alarms for given contexts and alarm states. Default is the total number of raised alarms, for all contexts.
2019-08-23 12:29:20 +02:00
Valentin Rakush
92642269f1 Add alarm variables to the response of chart and data ()
##### Summary
Implements feature  

Now requests like 

http://localhost:19999/api/v1/chart?chart=example.random
http://localhost:19999/api/v1/data?chart=example.random&options=jsonwrap&options=showcustomvars

- return chart variables in their responses. Chart variables include only those with options set to RRDVAR_OPTION_CUSTOM_CHART_VAR
- for /api/v1/data requests chart variables are returned when parameter options=jsonwrap and options=showcustomvars

##### Component Name
[/database](https://github.com/netdata/netdata/tree/master/database/)
[/web/api/formatters](https://github.com/netdata/netdata/tree/master/web/api/formatters)
2019-08-20 11:11:43 +02:00
Promise Akpan
f5006d51e8 Fix Markdown Lint warnings ()
* make remark access all directories

* detailed fix after autofix by remark lint

* cross check autofix for this set of files

* crosscheck more files

* crosschecking and small fixes

* crosscheck autofixed md files
2019-08-15 13:06:39 +02:00
Joel Hans
a726c905bd
Change "netdata" to "Netdata" in all docs ()
* First pass of changing netdata to Netdata

* Second pass of netdata -> Netdata

* Starting work on netdata with no whitespace after

* Pass for netdata with no whitespace at the end

* Pass for netdata with no whitespace at the front
2019-08-13 08:07:17 -07:00
thiagoftsm
3076cfe5d4
Url parser refactoring ()
* URL_parser_review comments 1

* URL_parser_review restoring web_client.c

* URL_parser_review restoring url.h

* URL_parser_review restoring web_client.h

* URL_parser_review restoring inlined.h

* URL_parser_review restoring various

* URL_parser_review commenting!

* URL_parser_review last checks!

* URL_parser_review registry!

* URL_parser_review codacy errors!

* URL_parser_review codacy errors 2!

* URL_parser_review end of request!

* URL_parser_review

* URL_parser_review format fix

* URL_parser_review restoring

* URL_parser_review stopped at 5!

* URL_parser_review formatting!

* URL_parser_review:

Started the map of the query string when it is necessary

* URL_parser_review:

With these adjusts in the URL library we are now able to parser all the escape characters!

* URL_parser_review: code review

Fixes problems and format asked by coworkers!

* URL_parser_review: adjust script

The script was not 100% according the shellcheck specifications, no less important
it was a direct script instead a .in file

* sslstream: Rebase 2

It was necessary to change a function due the UTF-8

* sslstream: Fixing 6426

We had a cast error introduced by other PR, so I am fixing here

* URL_parser_review

Change .gitignore to avoid considering a script file.
2019-07-25 12:30:00 +00:00
Timo
19f1bd14de Utf8 Badge Fix And URL Parser International Support (initial) ()
#### Summary
Fixes 

Additionally it adds support for UTF-8 in URL parser (as it should).
Label sizes now are updated by browser with JavaScript (although guess is still calculated by verdana11_widths with minor improvements)

#### Component Name
API/Badges, LibNetData/URL

#### Additional Information
It was found that not only verdana11_widths need to be updated but the url parser replaces international characters with spaces (one space per each byte of multibyte character).
Therefore I update both to support international chars.
2019-07-24 14:32:08 +02:00
Jelger Haanstra
0cf35dc906 Update docs health monitoring and health management api ()
* Update docs health monitoring and health management api

* Update docs health monitoring and health management api
2019-07-17 12:29:46 +02:00
thiagoftsm
a0f30eb224
DOCFix ()
Fix the documention about Health, we were missing ```
2019-07-09 15:09:04 +00:00
thiagoftsm
c56e086ba3 Easily disable alarms, by persisting the silencers configuration ()
This PR was created to fix , here I am completing the job initiated by Christopher, among the newest features that we are bring we have

JSON inside the core - We are bringing to the core the capacity to work with JSON files, this is available either using the JSON-C library case it is present in the system or using JSMN library that was incorporated to our core. The preference is to have JSON-C, because it is a more complete library, but case the user does not have the library installed we are keeping the JSMN for we do not lose the feature.
Health LIST - We are bringing more one command to the Health API, now with the LIST it is possible to get in JSON format the alarms active with Netdata.
Health reorganized - Previously we had duplicated code in different files, this PR is fixing this (Thanks @cakrit !), the Health is now better organized.
Removing memory leak - The first implementation of the json.c was creating SILENCERS without to link it in anywhere. Now it has been linked properly.
Script updated - We are bringing some changes to the script that tests the Health.
This PR also fixes the race condition created by the previous new position of the SILENCERS creation, I had to move it to daemon/main.c, because after various tests, it was confirmed that the error could happen in different parts of the code, case it was not initialized before the threads starts.

Component Name
health directory
health-cmd

Additional Information
Fixes  and 
2019-07-01 21:07:21 +02:00
thiagoftsm
dd73f3e0cd
Repeating alarm notifications ()
* Alarm_repeat mergin the original!

* Alarm_repeat binary tree!

* Alarm_repeat binary tree finished!

* Alarm_repeat move function and format string

* Alarms bringing a new Binary tree

* Alarms fixing the last two

* Alarm_repeat useless var!

* Alarm fix format and repeat alarm!

* Alarm_backend steps!

* Alarm_repeat stopping to test cloud!

* Alarm_repeat stopping to test cloud 2!

* Alarm_repeat fixing when restart!
2019-07-01 11:55:16 +00:00
Pavlos Emm. Katsoulakis
171d8f5d01 Revert "Easily disable alarms, by persisting the silencers configuration ()"
This reverts commit 60a73e90de.

Emergency rollback of potential culprit as per issue 
Will be re-merging the change after investigation
2019-06-28 08:27:57 +02:00
thiagoftsm
60a73e90de Easily disable alarms, by persisting the silencers configuration ()
* Alarms begin!

* Alarms web interface comments!

* Alarms web interface comments 2!

* Alarms bringing Christopher work!

* Alarms bringing Christopher work!

* Alarms commenting code that will be rewritten!

* Alarms json-c begin!

* Alarms json-c end!

* Alarms missed script!

* Alarms fix json-c parser and change script to test LIST!

* Alarms fix test script!

* Alarms documentation!

* Alarms script step 1!

* Alarms fix script!

* Alarms fix testing script and code!

* Alarms missing arguments to pkg_check_modules

* SSL_backend indentation!

* Alarms, description in Makefile

* Alarms missing extern!

* Alarms compilation!

* Alarms libnetdata/health!

* Alarms fill library!

* Alarms fill CMakeList!

* Alarm fix version!

* Alarm remove readme!

* Alarm fix readme version!
2019-06-27 13:16:28 +02:00
Pavlos Emm. Katsoulakis
0fca36fd59 Revert "New URL parser ()"
This reverts commit 58b7d95a7e.
---
As agreed with @thiago and @cakrit we revert URL parser changes,
to buy the time on a more detailed investigation
---
2019-06-07 18:14:44 +03:00
Pavlos Emm. Katsoulakis
d6f3937b4d Revert "MGMT_fixes change functions ()"
This reverts commit 083378203c.
---
As agreed with @thiago and @cakrit we revert URL parser changes,
to buy the time on a more detailed investigation
---
2019-06-07 18:14:26 +03:00
Pavlos Emm. Katsoulakis
77c1859506 Revert "URL_parser fixing allmetrics! ()"
This reverts commit 1c60c6eb87.
--
As agreed with @thiago and @cakrit we revert URL parser changes,
to buy the time on a more detailed investigation
--
2019-06-07 18:13:04 +03:00
thiagoftsm
083378203c
MGMT_fixes change functions () 2019-06-07 11:57:11 +00:00
thiagoftsm
1c60c6eb87 URL_parser fixing allmetrics! ()
* URL_parser fixing allmetrics!

* URL_parser fixing allmetrics 2!
2019-06-06 20:25:36 +02:00
thiagoftsm
58b7d95a7e
New URL parser ()
* URL_parser 3

* URL_parser rebase 2!

* URL_parameter parsing 3

* URL_parameter parsing 4

* URL_parameter parsing 5

* URL_parser alarms

* URL_parser finish the basic structure

* URL_parser codacity fixes!

* URL_parser scripts!

* URL_parser codacy!

* URL_parser rebase 3!

* URL_parser host fixes!

* URL_parser host fixes 2!

* URL_parser fix spaces!

* URL_parser error message!

* URL_parser Christopher requests!

* URL_parser alarms fixed!

* URL_parser health fixed!

* URL_parser rebase 4!

* URL_parser C fix write format!

* URL_parser fix bugs due cache!
2019-06-06 17:01:39 +00:00
Chris Akritidis
e12af64d75
Update swagger with definition of api/v1/alarm_variables () 2019-05-21 11:31:49 +02:00
Markos Fountoulakis
6ca6d840dd Database engine ()
* Database engine prototype version 0

* Database engine initial integration with netdata POC

* Scalable database engine with file and memory management.

* Database engine integration with netdata

* Added MIN MAX definitions to fix alpine build of travis CI

* Bugfix for backends and new DB engine, remove useless rrdset_time2slot() calls and erroneous checks

* DB engine disk protocol correction

* Moved DB engine storage file location to /var/cache/netdata/{host}/dbengine

* Fix configure to require openSSL for DB engine

* Fix netdata daemon health not holding read lock when iterating chart dimensions

* Optimized query API for new DB engine and old netdata DB fallback code-path

* netdata database internal query API improvements and cleanup

* Bugfix for DB engine queries returning empty values

* Added netdata internal check for data queries for old and new DB

* Added statistics to DB engine and fixed memory corruption bug

* Added preliminary charts for DB engine statistics

* Changed DB engine ratio statistics to incremental

* Added netdata statistics charts for DB engine internal statistics

* Fix for netdata not compiling successfully when missing dbengine dependencies

* Added DB engine functional test to netdata unittest command parameter

* Implemented DB engine dataset generator based on example.random chart

* Fix build error in CI

* Support older versions of libuv1

* Fixes segmentation fault when using multiple DB engine instances concurrently

* Fix memory corruption bug

* Fixed createdataset advanced option not exiting

* Fix for DB engine not working on FreeBSD

* Support FreeBSD library paths of new dependencies

* Workaround for unsupported O_DIRECT in OS X

* Fix unittest crashing during cleanup

* Disable DB engine FS caching in Apple OS X since O_DIRECT is not available

* Fix segfault when unittest and DB engine dataset generator don't have permissions to create temporary host

* Modified DB engine dataset generator to create multiple files

* Toned down overzealous page cache prefetcher

* Reduce internal memory fragmentation for page-cache data pages

* Added documentation describing the DB engine

* Documentation bugfixes

* Fixed unit tests compilation errors since last rebase

* Added note to back-up the DB engine files in documentation

* Added codacy fix.

* Support old gcc versions for atomic counters in DB engine
2019-05-15 08:28:06 +03:00
Vladimir Kobal
0d5fa83e22
Fix segmentation fault ()
* Fix segmentation fault

* Make system info printing safe

* Fix quotes for OS name
2019-05-14 18:35:12 +03:00
Vladimir Kobal
51decad989 Add system info streaming ()
* Add system info streaming

* Fix segmentation fault in unit testing
2019-05-13 14:12:25 +02:00
Chris Akritidis
466f0727eb
Do not cache alarms and info api calls. Extend no-cache headers () 2019-05-13 12:32:13 +02:00
Chris Akritidis
8f36f5bcee
info API minor enhancements
Return 503 instead of 400 when netdata hasnt started yet, move struct definitions in .c, swagger update ()
2019-05-02 13:04:15 +03:00
Chris Akritidis
ca95332d55
Extend netdata info API call ()
* Add array of collector plugins-modules to api/v1/info

* Add system info to api/v1/info, collect data from separate script, use environment vars in anonymous statistics script
2019-04-18 18:17:03 +03:00
Costa Tsaousis
44955f720e
fix incorrect use of isnormal() () 2019-03-21 19:14:14 +02:00
Chris Akritidis
56ac9f5145
Support legacy Prometheus metric names for source average ()
* Support older prometheus metric unit naming and allow removal of units from metrics

* Update swagger

* Added bats tests, improved efficiency of checking units
2019-03-04 18:36:08 +01:00
Chris Akritidis
88c6daad79
Correct version check in UI ()
* Correct version check in UI. Support stable and nightly release channel.
* Use github releases instead of latest versions, get nightlies from GCS
* Prevent cross-origin errors by using the google API
2019-02-20 19:56:44 +01:00
Vladimir Kobal
2f6f8155db
Add message queue statistics ()
* Add IPC message queue charts

* Add obsolete flag for dimensions

* Delete obsolete dimensions from memory

* Remove files for obsolete dimensions, filter requests

* Make empty charts obsolete

* Minimize obsolete dimension checks

* Limit the number of dimensions in memory

* Remove obsolete dimensions on netdata exit

* Update documentation

* Move flag to the end

* Fix typo

* Fix typo
2019-02-11 13:24:24 +02:00
Chris Akritidis
68e5ce8f9a
Bug fix for netdata behind authenticated proxies ()
* Was incorrectly updating the headers when the Authorization header was being sent

* Use X-Auth-Token instead of Authorization header, to allow the management API to work authenticated behind proxies as well
2019-01-18 23:06:51 +01:00
Chris Akritidis
08649bec37
Port ACLs, Management API and Health commands ()
##### Summary
fixes  
fixes 
fixes  
fixes  
fixes  
fixes 

Implements a command API for health which will accept commands via a socket to selectively suppress health checks. 

Allows different ports to accept different request types  (streaming, dashboard, api, registry, netdata.conf, badges, management)

Removes support for multi-threaded and single-threaded web servers.

##### Component Name
health, daemon
2019-01-15 12:49:28 +01:00
Chris Akritidis
415f57c5bf
Ga ()
* Added GA tags to markdowns

* Add GA tags to mds
2018-12-07 11:30:04 +01:00
Chris Akritidis
f1036f74f7
Config docs improvements ()
* WIP to add a new config readme

* WIP

* WIP

* WIP

* WIP

* WIP

* Major rewrite of configuration instructions and minor improvements to the html doc site

* Major rewrite of configuration instructions and minor improvements to the html doc site

* Major rewrite of configuration instructions and minor improvements to the html doc site

* Major rewrite of configuration instructions and minor improvements to the html doc site

* Major rewrite of configuration instructions and minor improvements to the html doc site

* Major rewrite of configuration instructions and minor improvements to the html doc site

* Major rewrite of configuration instructions and minor improvements to the html doc site

* Major rewrite of configuration instructions and minor improvements to the html doc site
2018-12-06 18:16:05 +01:00
Costa Tsaousis
c9a8408f55
fix info api method compilation warnings () 2018-12-04 02:15:02 +02:00
Wei He
920bfa9f89 add api/v1/info endpoint to swagger () 2018-12-02 02:10:33 +02:00
Chris Akritidis
36b8bacf49 Add info from PR 208 ()
Fixes 
2018-11-30 21:09:02 +02:00
Wei He
a6b5ed0fc7 add api/v1/info endpoint ()
* add api/v1/info endpoint
fix 

* implement alarms info

* add list of hosts mirrored

* add lock

* fix mirrored hosts
2018-11-30 13:23:37 +02:00
Costa Tsaousis
ba75ffc056
bugfix: query engine resampling duration () 2018-11-27 15:14:43 +02:00
Costa Tsaousis
cfc740a7a2
strictier use of URL separators; fixes ; fixes () 2018-11-23 01:13:51 +02:00
Chris Akritidis
ac7deb42f8 Documentation links sanity checker ()
* Fix broken links

* Fixed link

* Added links checker

* link updates from the link checker

* Final corrections to allow checklinks to run without errors

* Removed whitespace

* Fixed codacy errors/warnings
2018-11-22 01:44:46 +02:00
Chris Akritidis
7a5335af53 Updates in various READMEs while testing the link checker ()
* Add checklinks.sh to validate links in MD files and fix them for both the repo and html static site

* Add checklinks.sh to validate links in MD files and fix them for both the repo and html static site

* Minor link fixes, based on output from the linkchecker

* About 50% done

* Converted absolute links to relative

* Close to being functional...

* Getting closer...

* Corrected edit files link from htmldoc branch to master

* Replaced absolute links with relative and fixed incorrect heading hierarchy

* Seems to be working. Will do all wiki conversions and then commit the final version

* Wiki links replaced by the link checker for test

* Replacement work fine, but correct location for simple patterns has moved to libnetdata/simple_pattern

* Corrected wiki links in READMEs, but most are in code files

* More simple pattern link replacements

* Want to merge current changes first and then continue with the link checker

* Add checklinks.sh to validate links in MD files and fix them for both the repo and html static site

* Minor link fixes, based on output from the linkchecker

* About 50% done

* Converted absolute links to relative

* Close to being functional...

* Getting closer...

* Corrected edit files link from htmldoc branch to master

* Replaced absolute links with relative and fixed incorrect heading hierarchy

* Seems to be working. Will do all wiki conversions and then commit the final version

* Wiki links replaced by the link checker for test

* Replacement work fine, but correct location for simple patterns has moved to libnetdata/simple_pattern

* Corrected wiki links in READMEs, but most are in code files

* More simple pattern link replacements

* Want to merge current changes first and then continue with the link checker

* ./# converted to #
2018-11-16 10:26:05 +02:00
Chris Akritidis
3aae8f6c2c Htmldoc ()
* First html documentation debug set

* Test 2

* Relative path changed

* Updated comments

* Cleanup, installation draft added

* fixes

* test

* test

* test

* First html documentation debug set

* Test 2

* Relative path changed

* Updated comments

* Cleanup, installation draft added

* fixes

* test

* test

* test

* First set of major cleanup/deduplication

* 2nd major cleanup

* update getting started structure

* Cleanup in using netdata

* Final cleanup/deduplication

* Added initial CONTRIBUTING.md, updated some info related to contributing on the orchestrators

* Removed Why-Netdata (included in new README in master), added link to CONTRIBUTING.md

* First html documentation debug set

* Updated Makefile.am to ignore the new md and htmldoc generation files

* Removing files from rebase

* First html documentation debug set

* Test 2

* Relative path changed

* Updated comments

* Cleanup, installation draft added

* fixes

* test

* test

* test

* First html documentation debug set

* Test 2

* Relative path changed

* Updated comments

* Cleanup, installation draft added

* test

* test

* First set of major cleanup/deduplication

* 2nd major cleanup

* update getting started structure

* Cleanup in using netdata

* Final cleanup/deduplication

* Added initial CONTRIBUTING.md, updated some info related to contributing on the orchestrators

* Removed Why-Netdata (included in new README in master), added link to CONTRIBUTING.md

* First html documentation debug set

* Updated Makefile.am to ignore the new md and htmldoc generation files

* Removing files from rebase

* Fixed Makefile.am

* Same line header and badges

* Fixed broken link

* CPU monitoring is in apps plugin

* Removed obsolete files

* Remove obsolete files

* - Make the Health API part of health/README.md new file web/api/health/README.md
- Make installer/LAUNCH.md part of deamon/README.md
- Move installer/MAINTAINERS.md to packaging/maintainers/README.md
- Move installer/DOCKER.md to docker/README.md
- Move system/README.md to daemon/config/README.md
- Move web/CUSTOM-DASHBOARDS.md to web/gui/custom/README.md
- Move web/CONFLUENCE-DASHBOARDS.md to web/gui/confluence/README.md

* Resolve codacy issue $(..) syntax instead of `..`

* Fix following warnings and add svgs to the data_structures/README.md
  - CHANGELOG.md
  - CODE_OF_CONDUCT.md
  - CONTRIBUTORS.md
  - REDISTRIBUTED.md
  - diagrams/data_structures/README.md
  - docker/README.md
WARNING -  Documentation file 'README.md' contains a link to 'collectors/plugins.d' which does not exist in the documentation directory.
WARNING -  Documentation file 'README.md' contains a link to 'collectors/statsd.plugin' which does not exist in the documentation directory.
WARNING -  Documentation file 'CONTRIBUTING.md' contains a link to 'web/CUSTOM-DASHBOARDS.md' which does not exist in the documentation directory.
WARNING -  Documentation file 'CONTRIBUTING.md' contains a link to 'web/CONFLUENCE-DASHBOARDS.md' which does not exist in the documentation directory.

* Wrong urls in data_structures/README.md svgs

* Fix svg URLs number 2

* Modify the first line of the main README.md, to enable proper static html generation. Executed after copying the file to htmldoc/src

* Added back Why Netdata

* Fixed link to registry in Why-Netdata.md

* Added Why-Netdata to buildyaml and to Makefile.am

* Replaced http links causing mixed content warnings

* Made buildhtml ignore the directory node_modules created by Netlify

* Corrected CONTRIBUTING.MD to CONTRIBUTING.md
2018-11-12 22:34:59 +02:00
George Moschovitis
72bad79230
Minor README file updates ()
* Minor changes in registy/README.md

* Minor improvements to README files within web/ directory

* Minor

* Added minor comments

* Improved web_client_api_request_v1_registry() comment

* Minor

* Minor formatting
2018-11-02 17:17:23 +02:00
infeeeee
9476d1fdda Changed swagger editor url to the correct one ()
https://editor.swagger.io/?url=https://raw.githubusercontent.com/netdata/netdata/master/web/api/netdata-swagger.yaml is the correct url
2018-11-01 10:59:47 +02:00