crane
crane copied to clipboard
Support data source with influxDB protocol
if no one else, pls assigned to me.
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