Skip to content

Commit

Permalink
fixup! chore: bump yet-another-cloudwatch-exporter to v0.61.0
Browse files Browse the repository at this point in the history
  • Loading branch information
morremeyer committed Sep 17, 2024
1 parent 9cb1e62 commit 44371ec
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 70 deletions.
18 changes: 0 additions & 18 deletions internal/component/prometheus/exporter/cloudwatch/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -318,15 +318,6 @@ func toYACEDiscoveryJob(rj DiscoveryJob) *yaceConf.Job {
// By setting RoundingPeriod to nil, the exporter will align the start and end times for retrieving CloudWatch
// metrics, with the smallest period in the retrieved batch.
RoundingPeriod: nil,
JobLevelMetricFields: yaceConf.JobLevelMetricFields{
// Set to zero job-wide scraping time settings. This should be configured at the metric level to make the data
// being fetched more explicit.
Period: 0,
Length: 0,
Delay: 0,
NilToZero: nilToZero,
AddCloudwatchTimestamp: &addCloudwatchTimestamp,
},
Metrics: toYACEMetrics(rj.Metrics, nilToZero),
}
return job
Expand All @@ -348,15 +339,6 @@ func toYACECustomNamespaceJob(cn CustomNamespaceJob) *yaceConf.CustomNamespace {
// metrics, with the smallest period in the retrieved batch.
RoundingPeriod: nil,
RecentlyActiveOnly: cn.RecentlyActiveOnly,
JobLevelMetricFields: yaceConf.JobLevelMetricFields{
// Set to zero job-wide scraping time settings. This should be configured at the metric level to make the data
// being fetched more explicit.
Period: 0,
Length: 0,
Delay: 0,
NilToZero: nilToZero,
AddCloudwatchTimestamp: &addCloudwatchTimestamp,
},
Metrics: toYACEMetrics(cn.Metrics, nilToZero),
}
}
Expand Down
42 changes: 0 additions & 42 deletions internal/component/prometheus/exporter/cloudwatch/config_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -308,13 +308,6 @@ func TestCloudwatchComponentConfig(t *testing.T) {
},
},
RoundingPeriod: nil,
JobLevelMetricFields: yaceModel.JobLevelMetricFields{
Period: 0,
Length: 0,
Delay: 0,
AddCloudwatchTimestamp: &falsePtr,
NilToZero: &defaultNilToZero,
},
ExportedTagsOnMetrics: []string{"name"},
DimensionsRegexps: []yaceModel.DimensionsRegexp{
{
Expand Down Expand Up @@ -343,13 +336,6 @@ func TestCloudwatchComponentConfig(t *testing.T) {
},
},
RoundingPeriod: nil,
JobLevelMetricFields: yaceModel.JobLevelMetricFields{
Period: 0,
Length: 0,
Delay: 0,
AddCloudwatchTimestamp: &falsePtr,
NilToZero: &defaultNilToZero,
},
ExportedTagsOnMetrics: []string{},
DimensionsRegexps: []yaceModel.DimensionsRegexp{
{
Expand Down Expand Up @@ -383,13 +369,6 @@ func TestCloudwatchComponentConfig(t *testing.T) {
},
},
RoundingPeriod: nil,
JobLevelMetricFields: yaceModel.JobLevelMetricFields{
Period: 0,
Length: 0,
Delay: 0,
AddCloudwatchTimestamp: &falsePtr,
NilToZero: &defaultNilToZero,
},
ExportedTagsOnMetrics: []string{},
DimensionsRegexps: []yaceModel.DimensionsRegexp{
{
Expand Down Expand Up @@ -435,13 +414,6 @@ func TestCloudwatchComponentConfig(t *testing.T) {
},
},
RoundingPeriod: nil,
JobLevelMetricFields: yaceModel.JobLevelMetricFields{
Period: 0,
Length: 0,
Delay: 0,
AddCloudwatchTimestamp: &falsePtr,
NilToZero: &defaultNilToZero,
},
},
},
},
Expand Down Expand Up @@ -546,13 +518,6 @@ func TestCloudwatchComponentConfig(t *testing.T) {
},
},
RoundingPeriod: nil,
JobLevelMetricFields: yaceModel.JobLevelMetricFields{
Period: 0,
Length: 0,
Delay: 0,
AddCloudwatchTimestamp: &falsePtr,
NilToZero: &falsePtr,
},
ExportedTagsOnMetrics: []string{"name"},
DimensionsRegexps: []yaceModel.DimensionsRegexp{
{
Expand Down Expand Up @@ -598,13 +563,6 @@ func TestCloudwatchComponentConfig(t *testing.T) {
},
},
RoundingPeriod: nil,
JobLevelMetricFields: yaceModel.JobLevelMetricFields{
Period: 0,
Length: 0,
Delay: 0,
AddCloudwatchTimestamp: &falsePtr,
NilToZero: &falsePtr,
},
},
},
},
Expand Down
10 changes: 0 additions & 10 deletions internal/static/integrations/cloudwatch_exporter/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -297,16 +297,6 @@ func toYACEDiscoveryJob(job *DiscoveryJob) *yaceConf.Job {
// By setting RoundingPeriod to nil, the exporter will align the start and end times for retrieving CloudWatch
// metrics, with the smallest period in the retrieved batch.
RoundingPeriod: nil,

JobLevelMetricFields: yaceConf.JobLevelMetricFields{
// Set to zero job-wide scraping time settings. This should be configured at the metric level to make the data
// being fetched more explicit.
Period: 0,
Length: 0,
Delay: 0,
NilToZero: nilToZero,
AddCloudwatchTimestamp: &addCloudwatchTimestamp,
},
}
return &yaceJob
}
Expand Down

0 comments on commit 44371ec

Please sign in to comment.