Add metrics endpoint with http metrics using Prometheus client lib

This commit is contained in:
Markus Muellner authored and Benj Fassbind committed 2022-04-12 14:39:16 +02:00
1 parent 8046fb1eb9
commit 6539e1b856
12 files changed
+561 -40

No files matched your search

+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