Add metric renaming map and mock-repo

This commit is contained in:
Lou Knauer
2022-01-24 10:06:25 +01:00
parent 6743d94b0e
commit ae3e03f9b9
4 changed files with 111 additions and 36 deletions

View File

@@ -14,6 +14,11 @@ type MetricDataRepository struct {
Kind string `json:"kind"`
Url string `json:"url"`
Token string `json:"token"`
// If metrics are known to this MetricDataRepository under a different
// name than in the `metricConfig` section of the 'cluster.json',
// provide this optional mapping of local to remote name for this metric.
Renamings map[string]string `json:"metricRenamings"`
}
// Return a list of socket IDs given a list of hwthread IDs.