Add metrics endpoint with http metrics using Prometheus client lib

This commit is contained in:
Markus Muellner
2022-03-15 20:52:47 +01:00
committed by Benj Fassbind
parent 8046fb1eb9
commit 6539e1b856
12 changed files with 561 additions and 40 deletions
+2
View File
@@ -33,6 +33,7 @@ type ConfigStructure struct { // nolint: maligned
SwiftPublishRoots map[string]SwiftPublishRoot `json:"SwiftPublishEndpoints"`
AzurePublishRoots map[string]AzurePublishRoot `json:"AzurePublishEndpoints"`
AsyncAPI bool `json:"AsyncAPI"`
EnableMetricsEndpoint bool `json:"enableMetricsEndpoint"`
}
// FileSystemPublishRoot describes single filesystem publishing entry point
@@ -107,6 +108,7 @@ var Config = ConfigStructure{
SwiftPublishRoots: map[string]SwiftPublishRoot{},
AzurePublishRoots: map[string]AzurePublishRoot{},
AsyncAPI: false,
EnableMetricsEndpoint: false,
}
// LoadConfig loads configuration from json file