mirror of
https://github.com/netdata/netdata.git
synced 2025-04-28 14:42:31 +00:00
![]() After https://github.com/netdata/netdata/pull/12209 per-chart configuration was used for (a) enabling/disabling a chart, and (b) renaming dimensions. Regarding the first use case: We already have component-specific configuration options|flags to finely control how a chart should behave. Eg. "send charts matching" in streaming, "charts to skip from training" in ML, etc. If we really need the concept of a disabled chart, we can add a host-level simple pattern to match these charts. Regarding the second use case: It's not obvious why we'd need to provide support for remapping dimension names through a chart-specific configuration from the core agent. If the need arises, we could add such support at the right place, ie. a exporter/streaming config section. This will allow each flag to act indepentendly from each other and avoid managing flag-state manually at various places, eg: ``` if(unlikely(!rrdset_flag_check(st, RRDSET_FLAG_ENABLED))) { rrdset_flag_clear(st, RRDSET_FLAG_UPSTREAM_SEND); rrdset_flag_set(st, RRDSET_FLAG_UPSTREAM_IGNORE); } ... ``` |
||
---|---|---|
.. | ||
badges | ||
exporters | ||
formatters | ||
health | ||
queries | ||
tests | ||
Makefile.am | ||
netdata-swagger.json | ||
netdata-swagger.yaml | ||
README.md | ||
web_api_v1.c | ||
web_api_v1.h |
API
Netdata REST API
The complete documentation of the Netdata API is available at the Swagger Editor.
If your prefer it over the Swagger Editor, you can also use Swagger UI. This however does not provide all the information available.