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.
16 lines
369 B
16 lines
369 B
pub struct Config { |
|
pub prom_url: String, |
|
pub query: String, |
|
pub port: u16, |
|
} |
|
|
|
// TODO: use actual config and env variables |
|
impl Config { |
|
pub fn new() -> Config { |
|
Config { |
|
port: 8000, |
|
prom_url: "http://localhost:9090".to_owned(), |
|
query: "rate(go_memstats_alloc_bytes_total[5m])".to_owned(), |
|
} |
|
} |
|
}
|
|
|