Releases: prometheus-community/yet-another-cloudwatch-exporter
v0.61.2
Bugfix release to update the goreleaser configuration (again!), please refer to the release notes for 0.61.0 for actual code changes.
v0.61.1
Bugfix release to update the goreleaser
configuration, please refer to the release notes for 0.61.0
for actual code changes.
v0.61.0
Important news and breaking changes
- This release adds support for AWS account aliases (by @thepalbi). If the role used by YACE has
"iam:ListAccountAliases"
permission, the account alias (if any) is added as a label to theaws_account_info
metric.
Bugfixes and features
Features:
- Add AWS/EC2CapacityReservations to the services list by @luismy
- Add support for MediaPackage metrics by @theunissenne
- Add AWS/AppRunner as supported service by @fabiiw05
Bugs:
- Fix association with gwlb by @vainiusd
Refactoring:
- Add support for batching by time params by @kgeckhart
Dependencies
- Bump alpine from 3.19.1 to 3.20.1
- Bump github.com/aws/aws-sdk-go from 1.53.1 to 1.54.7
- Bump github.com/aws/aws-sdk-go-v2/service/ec2 from 1.161.4 to 1.162.0 in the aws-sdk-v2 group
- Bump github.com/prometheus/common from 0.53.0 to 0.54.0
- Bump golangci/golangci-lint-action from 5.3.0 to 6.0.1
- Bump goreleaser/goreleaser-action from 5 to 6
- Bump the aws-sdk-v2 group
New contributors
Full Changelog: v0.60.0...v0.61.0
v0.60.0
0.60.0
Bugfixes and features
Features:
Bugs:
- Fix all value for function_name variable in lambda dashboard by @thepalbi
- Fix rounding period deprecation notice by @cristiangreco
Docs:
- README: update config example by @cristiangreco
- Fix ElastiCache metric namespace typo on README by @Roberdvs
Refactoring:
- getmetricdata: Move batching to an iterator by @kgeckhart
Dependencies
- Bump github.com/aws/aws-sdk-go from 1.51.21 to 1.53.1
- Bump github.com/aws/aws-sdk-go-v2/service/ec2 from 1.156.0 to 1.160.0
- Bump github.com/prometheus/client_golang from 1.19.0 to 1.19.1
- Bump github.com/prometheus/common from 0.52.3 to 0.53.0
- Bump github.com/urfave/cli/v2 from 2.27.1 to 2.27.2
- Bump golangci/golangci-lint-action from 4.0.0 to 5.3.0
- Bump the aws-sdk-v2 group with 13 updates
New contributors
Full Changelog: v0.59.0...v0.60.0
v0.59.0
Important news and breaking changes
This release brings a bunch of breaking changes:
- 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 forroundingPeriod
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. This has the potential to produce data which will look inaccurate when compared against CloudWatch itself driving a lot of confusion. See #1290 for further context. - Setting
delay
at the metric level is deprecated, a warning will be logged at startup. Thisdelay
configuration has existed for a long time but was never utilized. Deprecating it and eventually removing it was chosen to simplify the configuration. See #1290 (comment) for further context. - For discovery jobs, the
type
field and the keys ofexportedTagsOnMetrics
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. - Some metric names have been changed to avoid duplicating the namespace. This includes:
aws_es_esreporting_failed_request_sys_err_count
isaws_es_reporting_failed_request_sys_err_count
aws_es_esreporting_failed_request_user_err_count
isaws_es_reporting_failed_request_user_err_count
aws_es_esreporting_request_count
isaws_es_reporting_request_count
aws_es_esreporting_success_count
isaws_es_reporting_success_count
aws_kafka_kafka_app_logs_disk_used
isaws_kafka_app_logs_disk_used
aws_kafka_kafka_data_logs_disk_used
isaws_kafka_data_logs_disk_used
aws_rds_rdsto_aurora_postgre_sqlreplica_lag
isaws_rds_to_aurora_postgre_sqlreplica_lag
aws_glue_glue_.*
isaws_glue_.*
These breaking changes will allow making the configuration easier to understand and less error prone, and also to build better documentation around supported services.
Bugfixes and features
Features:
- Add AWS/SecretsManager to the services list by @taraspos
- Support partner events buses by @HristoStoyanovYotpo
discovery.exportedTagsOnMetrics
: validate that keys match one of the job types defined by @cristiangreco
Refactoring:
- Update comment in factory.go by @andriikushch
- getmetricdata: move window calculator to processor by @kgeckhart
- promutil: clean up prom metric names that duplicate parts of the namespace by @tristanburgess
- promutil: rewrite sanitisation funcs for memory optimisation by @cristiangreco
- Do not allow using aliases as job types in discovery jobs by @cristiangreco
Dependencies
- Bump github.com/aws/aws-sdk-go from 1.51.16 to 1.51.21
- Bump github.com/aws/aws-sdk-go-v2 group
- Bump github.com/prometheus/common from 0.52.2 to 0.52.3
New contributors
- @taraspos made their first contribution in #1330
- @HristoStoyanovYotpo made their first contribution in #1359
Full Changelog: v0.58.0...v0.59.0
v0.58.0
0.58.0
Bugfixes and features
Features:
- Simplify CloudWatch API call counters by @kgeckhart
Bugs:
- Fixed issue with generated Prometheus metric name when working with AWS namespaces which have a leading special character, like
/aws/sagemaker/TrainingJobs
by @tristanburgess
Refactoring:
- Add abstraction for
GetMetricsData
processing by @kgeckhart GetMetricData
: refactor QueryID generation and result mapping by @kgeckhart- Refactored out the name-building part of
promutil.BuildNamespaceInfoMetrics()
andpromutil.BuildMetrics()
intopromutil.BuildMetricName()
by @tristanburgess - Set initial maps size in promutil/migrate by @cristiangreco
Dependencies
- Bump github.com/aws/aws-sdk-go from 1.50.30 to 1.51.16
- Bump github.com/prometheus/common from 0.49.0 to 0.52.2
- Bump golang.org/x/sync from 0.6.0 to 0.7.0
- Bump the aws-sdk-v2 group with 14 updates
New contributors
- @tristanburgess made their first contribution in #1351
Full Changelog: v0.57.1...v0.58.0
v0.57.1
Important news and breaking changes
- Reverted a change from 0.57.0 to fix scraping of ApiGateway resources.
Bugfixes and features
Bugs:
- ApiGateway: bugfix to restore FilterFunc for correct mapping of resources by @cristiangreco
Dependencies
What's Changed
- Bump github.com/aws/aws-sdk-go from 1.50.26 to 1.50.30
- Bump github.com/prometheus/client_golang from 1.18.0 to 1.19.0
- Bump github.com/prometheus/common from 0.48.0 to 0.49.0
- Bump github.com/stretchr/testify from 1.8.4 to 1.9.0
- Bump the aws-sdk-v2 group
Full Changelog: v0.57.0...v0.57.1
v0.57.0
Important news and breaking changes
- New job setting
includeContextOnInfoMetrics
can be used to include contextual information (account_id, region, and customTags) on "info" metrics and cloudwatch metrics. This can be particularly useful when cloudwatch metrics might not be present or when using "info" metrics to understand where your resources exist. - No more need to add the
apigateway:GET
permissions for ApiGateway discovery jobs, as that API is not being used anymore.
Bugfixes and features
Features:
- Add serverless ElastiCache support by @pkubicsek-sb
- Add GWLB support by @vainiusd
- Add support for KMS metrics by @daharon
- Optionally include context labels (account, region, customTags) on info metrics with
includeContextOnInfoMetrics
by @kgeckhart - Improve usability and performance of searchTags by @kgeckhart
- Add metric yace_cloudwatch_getmetricdata_metrics_total by @keyolk
Bugs:
- Fix race condition in scraper registry usage by @cristiangreco
- Restore default behaviour of returning nil/absent metrics as NaN by @nhinds
- Remove filtering of ApiGateway namespace resources by @cristiangreco
Refactoring:
- Refactor dimensions regexp usage for discovery jobs by @cristiangreco
- Simplify associator usage by @kgeckhart
- Update build tools and CI to go 1.22 by @cristiangreco
- Restructure fields on CloudwatchData by @kgeckhart
Dependencies
- Bump alpine from 3.19.0 to 3.19.1
- Bump github.com/aws/aws-sdk-go from 1.49.19 to 1.50.26
- Bump github.com/aws/smithy-go from 1.19.0 to 1.20.1
- Bump github.com/prometheus/common from 0.45.0 to 0.48.0
- Bump golang from 1.21 to 1.22
- Bump golangci/golangci-lint-action from 3.7.0 to 4.0.0
- Bump the aws-sdk-v2 group
New contributors
- @vainiusd made their first contribution in #1093
- @daharon made their first contribution in #1306
- @keyolk made their first contribution in #939
Full Changelog: v0.56.0...v0.57.0
v0.56.0
Important news and breaking changes
- Release v0.55.0 didn't include binaries artifact due to an issue with the release pipeline.
- The
list-metrics-callback
andmax-dimensions-associator
feature flags have been removed: their behaviour is now the new default.
Bugfixes and features
Features:
- Add new CloudWatch API concurrency limiter by @thepalbi
- Remove feature flag
list-metrics-callback
by @cristiangreco - Remove feature flag
max-dimensions-associator
by @cristiangreco - Add support for AWS/Bedrock metrics by @thepalbi
- Add support for AWS/Events by @raanand-dig
- Add support for AWS/DataSync by @wkneewalden
- Add support for AWS/IPAM by @pkubicsek-sb
Bugs:
- Remove unsupported MWAA resource filter by @matej-g
- DDoSProtection: Include regionless protectedResources in us-east-1 by @kgeckhart
- aws sdk v2: ensure region is respected for all aws clients by @kgeckhart
- SageMaker: Associator buildLabelsMap to lower case EndpointName to match ARN by @GGonzalezGomez
- Update goreleaser action by @cristiangreco
Refactoring:
- Decouple config models from internal models by @cristiangreco
- Change config Validate() signature to include model conversion by @cristiangreco
Dependencies
- Bump actions/setup-go from 4 to 5
- Bump alpine from 3.18.3 to 3.19.0
- Bump docker/setup-buildx-action from 2 to 3
- Bump docker/setup-qemu-action from 2 to 3
- Bump github.com/aws/aws-sdk-go from 1.45.24 to 1.49.19
- Bump github.com/aws/smithy-go from 1.17.0 to 1.19.0
- Bump github.com/prometheus/client_golang from 1.16.0 to 1.18.0
- Bump github.com/prometheus/common from 0.44.0 to 0.45.0
- Bump github.com/urfave/cli/v2 from 2.25.7 to 2.27.1
- Bump golang.org/x/sync from 0.3.0 to 0.6.0
- Bump goreleaser/goreleaser-action from 4 to 5
- Bump the aws-sdk-v2 group dependencies
New contributors
Full Changelog: v0.55.0...v0.56.0
v0.55.0
Important news and breaking changes
- jobs of type
customNamespace
, which were deprecated inv0.51.0
, are now un-deprecated due to customers' feedback - new feature flag
always-return-info-metrics
: return info metrics even if there are no CloudWatch metrics for the resource. This is useful if you want to get a complete picture of your estate, for example if you have some resources which have not yet been used.
Bugfixes and features
Features:
- Un-deprecate custom namespace jobs by @cristiangreco
- scrape: Return resources even if there are no metrics by @iainlane
- kinesisanalytics application: add tags support by @raanand-dig
- Add support for AWS/ClientVPN by @hc2p
- Add support for QLDB by @alexandre-alvarengazh
Bugs:
- main: Initialise logger when exiting if needed by @iainlane
Docs:
- Create sqs.yml example file by @dverzolla
Refactoring:
- Update code to go 1.21 by @cristiangreco
- aws sdk v2 use EndpointResolverV2 by @kgeckhart
- move duplicated fields from CloudwatchData to a new JobContext by @kgeckhart
Dependencies
- Bump github.com/aws/aws-sdk-go from 1.44.328 to 1.45.7
- Bump the aws-sdk-v2 group with 2 updates
- Bump actions/checkout from 3 to 4 by
New Contributors
Full Changelog: v0.54.1...v0.55.0