Skip to content

Commit

Permalink
Export Harvester Performance Metrics
Browse files Browse the repository at this point in the history
  • Loading branch information
michelia committed Jan 14, 2022
1 parent cae0308 commit c2a4e33
Show file tree
Hide file tree
Showing 3 changed files with 3,537 additions and 6 deletions.
17 changes: 11 additions & 6 deletions pkg/config/cos.go
Original file line number Diff line number Diff line change
Expand Up @@ -517,13 +517,18 @@ func genBootstrapResources(config *HarvesterConfig) (map[string]string, error) {

bootstrapConfs[templateName] = rendered
}
// It's not a template but I still put it here for consistency
templateName := "12-monitoring-dashboard.yaml"
templBytes, err := templFS.ReadFile(filepath.Join(templateFolder, "rancherd-"+templateName))
if err != nil {
return nil, err

// These are not templates but I still put them here for consistency
for _, templateName := range []string{
"12-monitoring-dashboard.yaml",
"14-monitoring-harvester-exporter.yaml",
} {
templBytes, err := templFS.ReadFile(filepath.Join(templateFolder, "rancherd-"+templateName))
if err != nil {
return nil, err
}
bootstrapConfs[templateName] = string(templBytes)
}
bootstrapConfs[templateName] = string(templBytes)

return bootstrapConfs, nil
}
Loading

0 comments on commit c2a4e33

Please sign in to comment.