Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use ReadAuthSettings instead to be backwards compatible #289

Merged
merged 2 commits into from
Nov 19, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,13 @@
# Changelog

## 1.0.3

- Bugfix: use GetAuthSettings for env variable fallback [#289](https://github.com/grafana/grafana-amazonprometheus-datasource/pull/289)
- Bump github.com/grafana/grafana-plugin-sdk-go from 0.251.0 to 0.256.0 in the all-dependencies group [#283](https://github.com/grafana/grafana-amazonprometheus-datasource/pull/283)
- Bump the all-dependencies group across 1 directory with 34 updates [#281](https://github.com/grafana/grafana-amazonprometheus-datasource/pull/281)

## 1.0.2

- Bump dependencies
- github.com/grafana/grafana-aws-sdk from v0.30.0 to v0.31.3
- github.com/grafana/grafana-plugin-sdk-go v0.241.0 to v0.251.0
Expand Down Expand Up @@ -33,15 +40,19 @@
- Update links to documentation in the Config Editor

## 1.0.1

- Fix sigv4 auth in Cloud

## 1.0.0

- Initial public release

## 0.3.0

- Rename plugin & repo

## 0.2.0 (Private release for testing)

- Initial private release of the Amazon Managed Prometheus plugin, a wrapper around [the core Prometheus datasource](https://grafana.com/docs/grafana/latest/datasources/prometheus/) that uses Amazon-specific authentication.

## 0.1.0 (Unreleased)
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "grafana-amazonprometheus-datasource",
"version": "1.0.2",
"version": "1.0.3",
"description": "A plugin for Amazon Managed Prometheus",
"scripts": {
"build": "webpack -c ./.config/webpack/webpack.config.ts --env production",
Expand Down
2 changes: 1 addition & 1 deletion pkg/datasource.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ func NewDatasource(ctx context.Context, dsInstanceSettings backend.DataSourceIns
plog := backend.NewLoggerWith("logger", "tsdb.amazon-prometheus")
plog.Debug("Initializing")

authSettings, _ := awsds.ReadAuthSettingsFromContext(ctx)
authSettings := awsds.ReadAuthSettings(ctx)
return &Datasource{
Service: promlib.NewService(sdkhttpclient.NewProvider(), plog, extendClientOpts),
authSettings: *authSettings,
Expand Down