parent
							
								
									846fca77c1
								
							
						
					
					
						commit
						d908078ee6
					
				
					 51 changed files with 4649 additions and 276 deletions
				
			
		
							
								
								
									
										20
									
								
								grafana/dashboards.tf
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										20
									
								
								grafana/dashboards.tf
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,20 @@ | |||
| 
 | ||||
| resource "grafana_folder" "HomeAssistant" { | ||||
|   title = "Home Assistant" | ||||
| } | ||||
| 
 | ||||
| resource "grafana_dashboard" "HomeEnergy" { | ||||
|   for_each    = fileset("${path.module}/dashboards/HASS", "*.json") | ||||
|   config_json = file("${path.module}/dashboards/HASS/${each.key}") | ||||
|   folder      = grafana_folder.HomeAssistant.id | ||||
| } | ||||
| 
 | ||||
| resource "grafana_folder" "Kubernetes" { | ||||
|   title = "Kubernetes" | ||||
| } | ||||
| 
 | ||||
| resource "grafana_dashboard" "Kubernetes" { | ||||
|   for_each    = fileset("${path.module}/dashboards/kubernetes", "*.json") | ||||
|   config_json = file("${path.module}/dashboards/kubernetes/${each.key}") | ||||
|   folder      = grafana_folder.Kubernetes.id | ||||
| } | ||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue