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 
			
		
		
		
	These scripts hold some learnings on how to compare changes to the metric profile of the exporter. In future we'll teach travis to build this against master automatically and post a comment back to a PR with what's been changed. For now we just want to store them.
		
			
				
	
	
		
			12 lines
		
	
	
		
			330 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
	
	
			
		
		
	
	
			12 lines
		
	
	
		
			330 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
	
	
#!/bin/bash
 | 
						|
# Script to determine added and removed metrics.
 | 
						|
# Not currently used in CI but useful for inspecting complicated changes.
 | 
						|
 | 
						|
type=$1
 | 
						|
version=$2
 | 
						|
old_version=$3
 | 
						|
new_version=$4
 | 
						|
 | 
						|
comm -23 $old_version $new_version > .metrics.${type}.${version}.removed
 | 
						|
comm -13 $old_version $new_version > .metrics.${type}.${version}.added
 |