Skip to content

Commit 4a2396c

Browse files
authored
Merge pull request #1568 from prometheus-community/superq/prom_community
Update for Prometheus Community
2 parents 26c8bf8 + 5976d61 commit 4a2396c

File tree

100 files changed

+1620
-302
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

100 files changed

+1620
-302
lines changed

.golangci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,4 +37,4 @@ linters-settings:
3737
exclude-functions:
3838
- (github.com/go-kit/log.Logger).Log
3939
goimports:
40-
local-prefixes: "github.com/nerdswords/yet-another-cloudwatch-exporter"
40+
local-prefixes: "github.com/prometheus-community/yet-another-cloudwatch-exporter"

.goreleaser.yml

Lines changed: 0 additions & 22 deletions
This file was deleted.

.promu.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
go:
2+
# This must match .circle/config.yml.
3+
version: 1.23
4+
repository:
5+
path: github.com/prometheus-community/yet-another-cloudwatch-exporter
6+
build:
7+
binaries:
8+
- name: yace
9+
path: ./cmd/yace
10+
ldflags: |
11+
-X github.com/prometheus/common/version.Version={{.Version}}
12+
-X github.com/prometheus/common/version.Revision={{.Revision}}
13+
-X github.com/prometheus/common/version.Branch={{.Branch}}
14+
-X github.com/prometheus/common/version.BuildUser={{user}}@{{host}}
15+
-X github.com/prometheus/common/version.BuildDate={{date "20060102-15:04:05"}}
16+
tarball:
17+
files:
18+
- LICENSE
19+
- NOTICE

.tool-versions

Lines changed: 0 additions & 1 deletion
This file was deleted.

CHANGELOG.md

Lines changed: 32 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -32,13 +32,13 @@ Refactoring:
3232

3333
Bugfix release to update the `goreleaser` configuration (again!), please refer to the release notes for `0.61.0` for actual code changes.
3434

35-
https://github.com/nerdswords/yet-another-cloudwatch-exporter/releases/tag/v0.61.0
35+
https://github.com/prometheus-community/yet-another-cloudwatch-exporter/releases/tag/v0.61.0
3636

3737
# 0.61.1
3838

3939
Bugfix release to update the `goreleaser` configuration, please refer to the release notes for `0.61.0` for actual code changes.
4040

41-
https://github.com/nerdswords/yet-another-cloudwatch-exporter/releases/tag/v0.61.0
41+
https://github.com/prometheus-community/yet-another-cloudwatch-exporter/releases/tag/v0.61.0
4242

4343
# 0.61.0
4444

@@ -71,10 +71,10 @@ Refactoring:
7171

7272
**New contributors**
7373

74-
* @luismy made their first contribution in https://github.com/nerdswords/yet-another-cloudwatch-exporter/pull/1341
75-
* @fabiiw05 made their first contribution in https://github.com/nerdswords/yet-another-cloudwatch-exporter/pull/1433
74+
* @luismy made their first contribution in https://github.com/prometheus-community/yet-another-cloudwatch-exporter/pull/1341
75+
* @fabiiw05 made their first contribution in https://github.com/prometheus-community/yet-another-cloudwatch-exporter/pull/1433
7676

77-
**Full Changelog**: https://github.com/nerdswords/yet-another-cloudwatch-exporter/compare/v0.60.0...v0.61.0
77+
**Full Changelog**: https://github.com/prometheus-community/yet-another-cloudwatch-exporter/compare/v0.60.0...v0.61.0
7878

7979
# 0.60.0
8080

@@ -109,15 +109,15 @@ Refactoring:
109109
* @Roberdvs made their first contribution
110110
* @hexionas made their first contribution
111111

112-
**Full Changelog**: https://github.com/nerdswords/yet-another-cloudwatch-exporter/compare/v0.59.0...v0.60.0
112+
**Full Changelog**: https://github.com/prometheus-community/yet-another-cloudwatch-exporter/compare/v0.59.0...v0.60.0
113113

114114
# 0.59.0
115115

116116
**Important news and breaking changes**
117117

118118
This release brings a bunch of breaking changes:
119-
* Setting `roundingPeriod` for discovery jobs is deprecated, a warning will be logged at startup. This is being deprecated in favor of always using the metric period. The implementation for `roundingPeriod` can result in inconsistent Start and EndTime between batches. This negates its intent to ensure Start and EndTimes align with the metric period for [CloudWatch best practices](https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_GetMetricData.html). This has the potential to produce data which will look inaccurate when compared against CloudWatch itself driving a lot of confusion. See https://github.com/nerdswords/yet-another-cloudwatch-exporter/issues/1290 for further context.
120-
* Setting `delay` at the metric level is deprecated, a warning will be logged at startup. This `delay` configuration has existed for a long time but was never utilized. Deprecating it and eventually removing it was chosen to simplify the configuration. See https://github.com/nerdswords/yet-another-cloudwatch-exporter/issues/1290#issuecomment-1948904375 for further context.
119+
* Setting `roundingPeriod` for discovery jobs is deprecated, a warning will be logged at startup. This is being deprecated in favor of always using the metric period. The implementation for `roundingPeriod` can result in inconsistent Start and EndTime between batches. This negates its intent to ensure Start and EndTimes align with the metric period for [CloudWatch best practices](https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_GetMetricData.html). This has the potential to produce data which will look inaccurate when compared against CloudWatch itself driving a lot of confusion. See https://github.com/prometheus-community/yet-another-cloudwatch-exporter/issues/1290 for further context.
120+
* Setting `delay` at the metric level is deprecated, a warning will be logged at startup. This `delay` configuration has existed for a long time but was never utilized. Deprecating it and eventually removing it was chosen to simplify the configuration. See https://github.com/prometheus-community/yet-another-cloudwatch-exporter/issues/1290#issuecomment-1948904375 for further context.
121121
* For discovery jobs, the `type` field and the keys of `exportedTagsOnMetrics` must be the AWS namespace rather than the alias (the README contains an up-to-date list of namespaces). Aliases are not allowed anymore. An error will be thrown at startup in an invalid namespace or an alias is used.
122122
* Some metric names have been changed to avoid duplicating the namespace. This includes:
123123
- `aws_es_esreporting_failed_request_sys_err_count` is `aws_es_reporting_failed_request_sys_err_count`
@@ -153,10 +153,10 @@ Refactoring:
153153

154154
**New contributors**
155155

156-
* @taraspos made their first contribution in https://github.com/nerdswords/yet-another-cloudwatch-exporter/pull/1330
157-
* @HristoStoyanovYotpo made their first contribution in https://github.com/nerdswords/yet-another-cloudwatch-exporter/pull/1359
156+
* @taraspos made their first contribution in https://github.com/prometheus-community/yet-another-cloudwatch-exporter/pull/1330
157+
* @HristoStoyanovYotpo made their first contribution in https://github.com/prometheus-community/yet-another-cloudwatch-exporter/pull/1359
158158

159-
**Full Changelog**: https://github.com/nerdswords/yet-another-cloudwatch-exporter/compare/v0.58.0...v0.59.0
159+
**Full Changelog**: https://github.com/prometheus-community/yet-another-cloudwatch-exporter/compare/v0.58.0...v0.59.0
160160

161161
# 0.58.0
162162

@@ -183,9 +183,9 @@ Refactoring:
183183

184184
**New contributors**
185185

186-
* @tristanburgess made their first contribution in https://github.com/nerdswords/yet-another-cloudwatch-exporter/pull/1351
186+
* @tristanburgess made their first contribution in https://github.com/prometheus-community/yet-another-cloudwatch-exporter/pull/1351
187187

188-
**Full Changelog**: https://github.com/nerdswords/yet-another-cloudwatch-exporter/compare/v0.57.1...v0.58.0
188+
**Full Changelog**: https://github.com/prometheus-community/yet-another-cloudwatch-exporter/compare/v0.57.1...v0.58.0
189189

190190

191191
# 0.57.1
@@ -208,7 +208,7 @@ Bugs:
208208
* Bump github.com/stretchr/testify from 1.8.4 to 1.9.0
209209
* Bump the aws-sdk-v2 group
210210

211-
**Full Changelog**: https://github.com/nerdswords/yet-another-cloudwatch-exporter/compare/v0.57.0...v0.57.1
211+
**Full Changelog**: https://github.com/prometheus-community/yet-another-cloudwatch-exporter/compare/v0.57.0...v0.57.1
212212

213213
# v0.57.0
214214

@@ -250,11 +250,11 @@ Refactoring:
250250

251251
**New contributors**
252252

253-
* @vainiusd made their first contribution in https://github.com/nerdswords/yet-another-cloudwatch-exporter/pull/1093
254-
* @daharon made their first contribution in https://github.com/nerdswords/yet-another-cloudwatch-exporter/pull/1306
255-
* @keyolk made their first contribution in https://github.com/nerdswords/yet-another-cloudwatch-exporter/pull/939
253+
* @vainiusd made their first contribution in https://github.com/prometheus-community/yet-another-cloudwatch-exporter/pull/1093
254+
* @daharon made their first contribution in https://github.com/prometheus-community/yet-another-cloudwatch-exporter/pull/1306
255+
* @keyolk made their first contribution in https://github.com/prometheus-community/yet-another-cloudwatch-exporter/pull/939
256256

257-
**Full Changelog**: https://github.com/nerdswords/yet-another-cloudwatch-exporter/compare/v0.56.0...v0.57.0
257+
**Full Changelog**: https://github.com/prometheus-community/yet-another-cloudwatch-exporter/compare/v0.56.0...v0.57.0
258258

259259
# v0.56.0
260260

@@ -306,7 +306,7 @@ Refactoring:
306306
* @wkneewalden
307307
* @pkubicsek-sb
308308

309-
**Full Changelog**: https://github.com/nerdswords/yet-another-cloudwatch-exporter/compare/v0.55.0...v0.56.0
309+
**Full Changelog**: https://github.com/prometheus-community/yet-another-cloudwatch-exporter/compare/v0.55.0...v0.56.0
310310

311311
# v0.55.0
312312

@@ -349,7 +349,7 @@ Refactoring:
349349
* @hc2p
350350
* @alexandre-alvarengazh
351351

352-
**Full Changelog**: https://github.com/nerdswords/yet-another-cloudwatch-exporter/compare/v0.54.1...v0.55.0
352+
**Full Changelog**: https://github.com/prometheus-community/yet-another-cloudwatch-exporter/compare/v0.54.1...v0.55.0
353353

354354

355355
# v0.54.1
@@ -364,7 +364,7 @@ Bugs:
364364
* Bump golangci/golangci-lint-action from 3.6.0 to 3.7.0
365365
* Bump github.com/aws/aws-sdk-go from 1.44.327 to 1.44.328
366366

367-
**Full Changelog**: https://github.com/nerdswords/yet-another-cloudwatch-exporter/compare/v0.54.0...v0.54.1
367+
**Full Changelog**: https://github.com/prometheus-community/yet-another-cloudwatch-exporter/compare/v0.54.0...v0.54.1
368368

369369
# v0.54.0
370370

@@ -407,7 +407,7 @@ Updates:
407407
* Bump github.com/aws/smithy-go from 1.13.5 to 1.14.2
408408
* Bump github.com/aws/aws-sdk-go and aws-sdk-go-v2 to latest versions
409409

410-
**Full Changelog**: https://github.com/nerdswords/yet-another-cloudwatch-exporter/compare/v0.53.0...v0.54.0
410+
**Full Changelog**: https://github.com/prometheus-community/yet-another-cloudwatch-exporter/compare/v0.53.0...v0.54.0
411411

412412
# v0.53.0
413413

@@ -433,7 +433,7 @@ Bugs:
433433
* Bump github.com/prometheus/common from 0.43.0 to 0.44.0
434434
* Bump github.com/urfave/cli/v2 from 2.25.6 to 2.25.7
435435

436-
**Full Changelog**: https://github.com/nerdswords/yet-another-cloudwatch-exporter/compare/v0.52.0...v0.53.0
436+
**Full Changelog**: https://github.com/prometheus-community/yet-another-cloudwatch-exporter/compare/v0.52.0...v0.53.0
437437

438438
# v0.52.0
439439

@@ -499,7 +499,7 @@ Updates:
499499
* Bump golang.org/x/sync from 0.1.0 to 0.3.0
500500
* Bump golangci/golangci-lint-action from 3.4.0 to 3.6.0
501501

502-
**Full Changelog**: https://github.com/nerdswords/yet-another-cloudwatch-exporter/compare/v0.51.0...v0.52.0
502+
**Full Changelog**: https://github.com/prometheus-community/yet-another-cloudwatch-exporter/compare/v0.51.0...v0.52.0
503503

504504
# v0.51.0
505505

@@ -540,7 +540,7 @@ Refactoring:
540540
* Bump github.com/aws/aws-sdk-go from 1.44.235 to 1.44.249
541541
* Bump github.com/prometheus/common from 0.41.0 to 0.42.0
542542

543-
**Full Changelog**: https://github.com/nerdswords/yet-another-cloudwatch-exporter/compare/v0.50.0...v0.51.0
543+
**Full Changelog**: https://github.com/prometheus-community/yet-another-cloudwatch-exporter/compare/v0.50.0...v0.51.0
544544

545545
# v0.50.0
546546

@@ -571,7 +571,7 @@ Refactoring:
571571
* Bump github.com/aws/aws-sdk-go from 1.44.215 to 1.44.235
572572
* Bump github.com/urfave/cli/v2 from 2.25.0 to 2.25.1
573573

574-
**Full Changelog**: https://github.com/nerdswords/yet-another-cloudwatch-exporter/compare/v0.49.2...v0.50.0
574+
**Full Changelog**: https://github.com/prometheus-community/yet-another-cloudwatch-exporter/compare/v0.49.2...v0.50.0
575575

576576
# v0.49.2
577577

@@ -616,14 +616,14 @@ Internal refactoring:
616616
* Bump github.com/urfave/cli/v2 from 2.24.3 to 2.25.0
617617
* Bump golang.org/x/sync from 0.0.0-20220722155255-886fb9371eb4 to 0.1.0
618618

619-
**Full Changelog**: https://github.com/nerdswords/yet-another-cloudwatch-exporter/compare/v0.48.0-alpha...v0.49.0
619+
**Full Changelog**: https://github.com/prometheus-community/yet-another-cloudwatch-exporter/compare/v0.48.0-alpha...v0.49.0
620620

621621
# v0.48.0-alpha
622622

623623
**Bugfixes and features**:
624624
* Revert "Publish helm chart before releasing binaries".
625625

626-
**Full Changelog**: https://github.com/nerdswords/yet-another-cloudwatch-exporter/compare/v0.47.0-alpha...v0.48.0-alpha
626+
**Full Changelog**: https://github.com/prometheus-community/yet-another-cloudwatch-exporter/compare/v0.47.0-alpha...v0.48.0-alpha
627627

628628
# v0.47.0-alpha
629629

@@ -638,7 +638,7 @@ Internal refactoring:
638638
* Bump github.com/aws/aws-sdk-go from 1.44.192 to 1.44.194
639639
* Bump github.com/urfave/cli/v2 from 2.24.2 to 2.24.3
640640

641-
**Full Changelog**: https://github.com/nerdswords/yet-another-cloudwatch-exporter/compare/v0.46.0-alpha...v0.47.0-alpha
641+
**Full Changelog**: https://github.com/prometheus-community/yet-another-cloudwatch-exporter/compare/v0.46.0-alpha...v0.47.0-alpha
642642

643643
# 0.46.0-alpha
644644

@@ -653,7 +653,7 @@ Internal refactoring:
653653
**Dependencies**:
654654
* Bump github.com/aws/aws-sdk-go from 1.44.189 to 1.44.192
655655

656-
**Full Changelog**: https://github.com/nerdswords/yet-another-cloudwatch-exporter/compare/helm-chart-0.11.0...v0.46.0-alpha
656+
**Full Changelog**: https://github.com/prometheus-community/yet-another-cloudwatch-exporter/compare/helm-chart-0.11.0...v0.46.0-alpha
657657

658658
# 0.45.0-alpha
659659

@@ -674,7 +674,7 @@ Internal refactoring:
674674
* Bump github.com/urfave/cli/v2 from 2.23.7 to 2.24.2
675675
* Bump golangci/golangci-lint-action from 3.3.1 to 3.4.0
676676

677-
**Full Changelog**: https://github.com/nerdswords/yet-another-cloudwatch-exporter/compare/v0.44.0-alpha...v0.45.0-alpha
677+
**Full Changelog**: https://github.com/prometheus-community/yet-another-cloudwatch-exporter/compare/v0.44.0-alpha...v0.45.0-alpha
678678

679679
# 0.44.0-alpha
680680

@@ -702,7 +702,7 @@ Internal refactoring:
702702
* Bump helm/chart-releaser-action from 1.4.1 to 1.5.0
703703
* Bump helm/kind-action from 1.2.0 to 1.5.0
704704

705-
**Full Changelog**: https://github.com/nerdswords/yet-another-cloudwatch-exporter/compare/v0.43.0-alpha...v0.44.0-alpha
705+
**Full Changelog**: https://github.com/prometheus-community/yet-another-cloudwatch-exporter/compare/v0.43.0-alpha...v0.44.0-alpha
706706

707707
# 0.43.0-alpha
708708

CONTRIBUTE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
## Steps to Contribute
44

55
* We use [golangci-lint](https://github.com/golangci/golangci-lint) for linting the code. Make it sure to install it first.
6-
* Check out repository running `git clone https://github.com/nerdswords/yet-another-cloudwatch-exporter.git`
6+
* Check out repository running `git clone https://github.com/prometheus-community/yet-another-cloudwatch-exporter.git`
77
* For linting, please run `make lint`
88
* For building, please run `make build`
99
* For running locally, please run `./yace`

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@
186186
same "printed page" as the copyright notice for easier
187187
identification within third-party archives.
188188

189-
Copyright 2021 NERDSWORDS
189+
Copyright 2024 The Prometheus Authors
190190

191191
Licensed under the Apache License, Version 2.0 (the "License");
192192
you may not use this file except in compliance with the License.

Makefile

Lines changed: 18 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,22 @@
1-
.DEFAULT_GOAL := build
1+
# Copyright 2024 The Prometheus Authors
2+
# Licensed under the Apache License, Version 2.0 (the "License");
3+
# you may not use this file except in compliance with the License.
4+
# You may obtain a copy of the License at
5+
#
6+
# http://www.apache.org/licenses/LICENSE-2.0
7+
#
8+
# Unless required by applicable law or agreed to in writing, software
9+
# distributed under the License is distributed on an "AS IS" BASIS,
10+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11+
# See the License for the specific language governing permissions and
12+
# limitations under the License.
213

3-
GIT_BRANCH ?= $(shell git rev-parse --abbrev-ref HEAD)
4-
GIT_REVISION ?= $(shell git rev-parse --short HEAD)
5-
VERSION ?= $(GIT_BRANCH)-$(GIT_REVISION)
6-
GO_LDFLAGS := -X main.version=${VERSION}
14+
# Needs to be defined before including Makefile.common to auto-generate targets
15+
DOCKER_ARCHS ?= amd64 armv7 arm64
16+
DOCKER_REPO ?= prometheuscommunity
717

8-
build:
9-
go build -v -ldflags "$(GO_LDFLAGS)" -o yace ./cmd/yace
18+
include Makefile.common
1019

11-
test:
12-
go test -v -bench=^$$ -race -count=1 ./...
20+
STATICCHECK_IGNORE =
1321

14-
lint:
15-
golangci-lint run -v -c .golangci.yml
22+
DOCKER_IMAGE_NAME ?= yet-another-cloudwatch-exporter

0 commit comments

Comments
 (0)