0
0
Fork 0
mirror of https://github.com/netdata/netdata.git synced 2025-04-21 04:10:38 +00:00
netdata_netdata/web/api/formatters/value
Costa Tsaousis ccf0f6b6f4
/api/v1/weights endpoint ()
* /api/v1/weights endpoints

* high resolution anomaly rate in parallel with queries; points and options in /api/v1/weights reflect the truth

* context printing

* merged metric_correlations with weights API; added parameter tier to select the tier to run the query; weight api now returns points per tier; added swagger info about weights api

* moved metric_correlations files to web/api/queries as weights

* added contexts filtering; renamed correlated_dimensions; weights API is always enabled; code cleanup

* allow returning zero results
2022-08-01 21:47:14 +03:00
..
Makefile.am Makefile.am files indentation () 2019-11-11 01:30:00 +02:00
README.md Docs: Removed Google Analytics tags () 2022-02-17 10:37:46 +00:00
value.c /api/v1/weights endpoint () 2022-08-01 21:47:14 +03:00
value.h /api/v1/weights endpoint () 2022-08-01 21:47:14 +03:00

Value formatter

The Value formatter presents results of database queries as a single value.

To calculate the single value to be returned, it sums the values of all dimensions.

The Value formatter respects the following API &options=:

option supported description
percent yes to replace all values with their percentage over the row total
abs yes to turn all values positive, before using them
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 formatter and health monitoring queries.