Skip to content

Commit f5f9fb2

Browse files
authored
Feat: add amazonprometheus to grafana assume role support list (#299)
1 parent a07c551 commit f5f9fb2

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

cspell.config.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
"hmac",
1919
"grabpl",
2020
"spellcheck",
21+
"amazonprometheus",
2122
"zizmor"
2223
]
2324
}

src/components/ConnectionConfig.tsx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,11 @@ import { assumeRoleInstructionsStyle } from './ConnectionConfig.styles';
1414
import { ConfigSection, ConfigSubSection } from '@grafana/plugin-ui';
1515

1616
export const DEFAULT_LABEL_WIDTH = 28;
17-
const DS_TYPES_THAT_SUPPORT_TEMP_CREDS = ['cloudwatch', 'grafana-athena-datasource'];
17+
const DS_TYPES_THAT_SUPPORT_TEMP_CREDS = [
18+
'cloudwatch',
19+
'grafana-athena-datasource',
20+
'grafana-amazonprometheus-datasource',
21+
];
1822
const toOption = (value: string) => ({ value, label: value });
1923
const isAwsAuthType = (value: any): value is AwsAuthType => {
2024
return typeof value === 'string' && awsAuthProviderOptions.some((opt) => opt.value === value);

0 commit comments

Comments
 (0)