mirror of
				https://github.com/optim-enterprises-bv/vault.git
				synced 2025-10-31 02:28:09 +00:00 
			
		
		
		
	Add support for telemetry option metrics_prefix (#8340)
				
					
				
			When set, instead of starting with `vault_`, metrics will start with `${prefix}_`.
			
			
This commit is contained in:
		| @@ -321,6 +321,7 @@ func testLoadConfigFile(t *testing.T) { | ||||
| 			DogStatsDAddr:           "127.0.0.1:7254", | ||||
| 			DogStatsDTags:           []string{"tag_1:val_1", "tag_2:val_2"}, | ||||
| 			PrometheusRetentionTime: prometheusDefaultRetentionTime, | ||||
| 			MetricsPrefix:           "myprefix", | ||||
| 		}, | ||||
|  | ||||
| 		DisableCache:             true, | ||||
| @@ -554,6 +555,7 @@ func testConfig_Sanitized(t *testing.T) { | ||||
| 			"circonus_check_tags":                    "", | ||||
| 			"circonus_submission_interval":           "", | ||||
| 			"disable_hostname":                       false, | ||||
| 			"metrics_prefix":                         "pfx", | ||||
| 			"dogstatsd_addr":                         "", | ||||
| 			"dogstatsd_tags":                         []string(nil), | ||||
| 			"prometheus_retention_time":              24 * time.Hour, | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 ncabatoff
					ncabatoff