Skip to content

Commit

Permalink
Index kube-burner version information along with workload metadata in…
Browse files Browse the repository at this point in the history
…fo (kube-burner#258)

Signed-off-by: Raul Sevilla <[email protected]>
  • Loading branch information
rsevilla87 authored Mar 1, 2023
1 parent c5353b3 commit 9ee4980
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pkg/burner/metadata.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ import (
"github.com/cloud-bulldozer/kube-burner/log"
"github.com/cloud-bulldozer/kube-burner/pkg/config"
"github.com/cloud-bulldozer/kube-burner/pkg/indexers"
"github.com/cloud-bulldozer/kube-burner/pkg/version"
)

type jobSummary struct {
Expand All @@ -33,6 +34,7 @@ type jobSummary struct {
ElapsedTime float64 `json:"elapsedTime"`
JobConfig config.Job `json:"jobConfig"`
Metadata map[string]interface{} `json:"metadata"`
Version string `json:"version"`
}

const jobSummaryMetric = "jobSummary"
Expand All @@ -47,6 +49,7 @@ func indexjobSummaryInfo(configSpec config.Spec, indexer *indexers.Indexer, uuid
MetricName: jobSummaryMetric,
Timestamp: timestamp,
Metadata: metadata,
Version: fmt.Sprintf("%v@%v", version.Version, version.GitCommit),
},
}
if configSpec.GlobalConfig.WriteToFile {
Expand Down

0 comments on commit 9ee4980

Please sign in to comment.