Skip to content

Commit

Permalink
feat: Add sample persistant dashboards with local datasource reference
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel-K-Ivanov authored and mikirov committed Aug 2, 2024
1 parent 2fa4b82 commit 3a6d08f
Show file tree
Hide file tree
Showing 4 changed files with 613 additions and 0 deletions.
1 change: 1 addition & 0 deletions crates/cli/src/docker_init.rs
Original file line number Diff line number Diff line change
Expand Up @@ -273,6 +273,7 @@ pub fn handle_docker_init(config_path: String, output_dir: String) -> Result<()>
networks: Networks::Simple(vec![METRICS_NETWORK.to_owned()]),
depends_on: DependsOnOptions::Simple(vec!["cb_prometheus".to_owned()]),
environment: Environment::List(vec!["GF_SECURITY_ADMIN_PASSWORD=admin".to_owned()]),
volumes: vec![Volumes::Simple("./grafana/dashboards:/etc/grafana/provisioning/dashboards".to_owned()), Volumes::Simple("./grafana/datasources:/etc/grafana/provisioning/datasources".to_owned())],
// TODO: re-enable logging here once we move away from docker logs
logging: Some(LoggingParameters { driver: Some("none".to_owned()), options: None }),
..Service::default()
Expand Down
Loading

0 comments on commit 3a6d08f

Please sign in to comment.