You've already forked postgres_exporter
							
							
				mirror of
				https://github.com/prometheus-community/postgres_exporter.git
				synced 2025-11-03 07:53:12 +03:00 
			
		
		
		
	
		
			
				
	
	
		
			24 lines
		
	
	
		
			564 B
		
	
	
	
		
			Makefile
		
	
	
	
	
	
			
		
		
	
	
			24 lines
		
	
	
		
			564 B
		
	
	
	
		
			Makefile
		
	
	
	
	
	
JSONNET_FMT := jsonnetfmt -n 2 --max-blank-lines 2 --string-style s --comment-style s
 | 
						|
 | 
						|
default: build
 | 
						|
 | 
						|
all: fmt lint build clean
 | 
						|
 | 
						|
fmt:
 | 
						|
	find . -name 'vendor' -prune -o -name '*.libsonnet' -print -o -name '*.jsonnet' -print | \
 | 
						|
		xargs -n 1 -- $(JSONNET_FMT) -i
 | 
						|
 | 
						|
lint:
 | 
						|
	find . -name 'vendor' -prune -o -name '*.libsonnet' -print -o -name '*.jsonnet' -print | \
 | 
						|
		while read f; do \
 | 
						|
			$(JSONNET_FMT) "$$f" | diff -u "$$f" -; \
 | 
						|
		done
 | 
						|
 | 
						|
	mixtool lint mixin.libsonnet
 | 
						|
 | 
						|
build:
 | 
						|
	mixtool generate all mixin.libsonnet
 | 
						|
 | 
						|
clean:
 | 
						|
	rm -rf dashboards_out alerts.yaml rules.yaml
 |