add prometheus metricdata backend

This commit is contained in:
Pay Giesselmann
2022-12-08 13:51:44 +01:00
parent ded5cda6ba
commit c3749f0f36
4 changed files with 888 additions and 0 deletions

View File

@@ -55,6 +55,8 @@ func Init(disableArchive bool) error {
mdr = &CCMetricStore{}
case "influxdb":
mdr = &InfluxDBv2DataRepository{}
case "prometheus":
mdr = &PrometheusDataRepository{}
case "test":
mdr = &TestMetricDataRepository{}
default:
@@ -156,6 +158,7 @@ func LoadData(job *schema.Job,
}
prepareJobData(job, jd, scopes)
return jd, ttl, size
})