mirror of
				https://github.com/prometheus/node_exporter.git
				synced 2025-08-20 18:33:52 -07:00 
			
		
		
		
	Create jsonnet files to create output files
This allows to create YAML files with rules and JSON files with dashboard descriptions. Signed-off-by: beorn7 <beorn@grafana.com>
This commit is contained in:
		
							parent
							
								
									cd2981f1b8
								
							
						
					
					
						commit
						f17829c48b
					
				
							
								
								
									
										1
									
								
								docs/node-mixin/alerts.jsonnet
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										1
									
								
								docs/node-mixin/alerts.jsonnet
									
									
									
									
									
										Normal file
									
								
							| 
						 | 
				
			
			@ -0,0 +1 @@
 | 
			
		|||
std.manifestYamlDoc((import 'mixin.libsonnet').prometheusAlerts)
 | 
			
		||||
							
								
								
									
										6
									
								
								docs/node-mixin/dashboards.jsonnet
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										6
									
								
								docs/node-mixin/dashboards.jsonnet
									
									
									
									
									
										Normal file
									
								
							| 
						 | 
				
			
			@ -0,0 +1,6 @@
 | 
			
		|||
local dashboards = (import 'mixin.libsonnet').grafanaDashboards;
 | 
			
		||||
 | 
			
		||||
{
 | 
			
		||||
  [name]: dashboards[name]
 | 
			
		||||
  for name in std.objectFields(dashboards)
 | 
			
		||||
}
 | 
			
		||||
							
								
								
									
										1
									
								
								docs/node-mixin/rules.jsonnet
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										1
									
								
								docs/node-mixin/rules.jsonnet
									
									
									
									
									
										Normal file
									
								
							| 
						 | 
				
			
			@ -0,0 +1 @@
 | 
			
		|||
std.manifestYamlDoc((import 'mixin.libsonnet').prometheusRules)
 | 
			
		||||
		Loading…
	
		Reference in a new issue