Browse Source

prom continue

main
Alexey Velikiy 3 years ago
parent
commit
593bf774e0
  1. 1
      src/datasources.rs
  2. 26
      src/datasources/prometheus.rs

1
src/datasources.rs

@ -1 +1,2 @@
pub mod grafana; pub mod grafana;
pub mod prometheus;

26
src/datasources/prometheus.rs

@ -0,0 +1,26 @@
use std::ptr::NonNull;
use async_trait::async_trait;
use crate::{
metric::{Metric, MetricResult},
types,
};
struct Prometheus {
}
impl Prometheus {
pub fn new() -> Prometheus {
Prometheus{}
}
}
#[async_trait]
impl Metric for Prometheus {
async fn query_chunk(&self, from: u64, to: u64, step: u64) -> types::Result<MetricResult> {
return None;
}
}
Loading…
Cancel
Save