crane icon indicating copy to clipboard operation
crane copied to clipboard

Support data source with influxDB protocol

Open yufeiyu opened this issue 3 years ago • 2 comments

yufeiyu avatar Jan 26 '22 11:01 yufeiyu

if no one else, pls assigned to me.

Belyenochi avatar Feb 23 '22 03:02 Belyenochi

hi @yufeiyu, I observed that we now support two data sources, Prom and Mock. Do we want to support obtaining data from data sources that conform to the InfluxDB protocol (so that we can directly use the abstraction of the influxDB protocol and no longer need DataSourcePromConfig). now:

// DataSource is the datasource of the predictor, such as prometheus, nodelocal, etc.
DataSource string
// DataSourcePromConfig is the prometheus datasource config
DataSourcePromConfig providers.PromConfig
// DataSourceMockConfig is the mock data provider
DataSourceMockConfig providers.MockConfig

after:

// DataSource is the datasource of the predictor, such as prometheus, nodelocal, etc.
DataSource string
// DataSourceInfluxDBConfig is the prometheus datasource config
DataSourceInfluxDBConfig providers.InfluxDBConfig
// DataSourceMockConfig is the mock data provider
DataSourceMockConfig providers.MockConfig

Belyenochi avatar Feb 23 '22 06:02 Belyenochi