Hastic standalone https://hastic.io
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

17 lines
369 B

pub struct Config {
pub prom_url: String,
pub query: String,
3 years ago
pub port: u16,
}
3 years ago
// TODO: use actual config and env variables
impl Config {
pub fn new() -> Config {
Config {
3 years ago
port: 8000,
prom_url: "http://localhost:9090".to_owned(),
query: "rate(go_memstats_alloc_bytes_total[5m])".to_owned(),
}
}
}