-- **datasource_type**: specify the metric source for the request, can be `container` or `host`. Most metrics, for example `cpu.used.percent` or `memory.bytes.used`, are reported by hosts and containers. By default, metrics reported by the host are used, but if the request contains a grouping key in the metric list/filter which is container-specific (e.g. `container.name`), then the container source is used. In cases where grouping keys are missing or grouping keys apply to both hosts and containers (e.g. `tag.Name`), the datasource_type can be explicitly set to avoid any ambiguity and allow the user to select precisely what kind of data should be used for the request. [examples/get_data_datasource.py](examples/get_data_datasource.py) contains a few examples that should clarify the use of this argument.
0 commit comments