Skip to content

Commit

Permalink
Add project to Datadog metrics
Browse files Browse the repository at this point in the history
  • Loading branch information
eversC committed Sep 20, 2019
1 parent 08804fb commit 2226a20
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
7 changes: 4 additions & 3 deletions pkg/config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,10 @@ type CloudProvider struct {

//Datadog type
type Datadog struct {
MetricEnv string
MetricTeam string
MetricName string
MetricEnv string
MetricTeam string
MetricName string
MetricProject string
}

//Filter type
Expand Down
1 change: 1 addition & 0 deletions pkg/rotate/rotatekeys.go
Original file line number Diff line number Diff line change
Expand Up @@ -471,6 +471,7 @@ func postMetric(keys []keys.Key, apiKey string, datadog config.Datadog) (err err
`"type":"count",` +
`"tags":[` +
`"team:` + datadog.MetricTeam + `",` +
`"project:` + datadog.MetricProject + `",` +
`"environment:` + datadog.MetricEnv + `",` +
`"key:` + key.Name + `",` +
`"provider:` + key.Provider.Provider + `",` +
Expand Down

0 comments on commit 2226a20

Please sign in to comment.