You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The Performance Insights source asks the user to enter an ARN, but this ARN isn't used in the source code. Its only purpose is to carry a region which is used to initialize an API client.
Even more confusing: it's possible to pass an ARN for any AWS service (really any) and the source would still work, casually ignoring the value entered by the user.
spec:
arn: arn:::us-west-2:: # works (!)
Not only this is a bug, but it also provides a poor user experience, because people are left wondering whether they need to use a PI ARN, a RDS ARN... and the answer is none of them. 🤔
Proposed solution
I see 2 possible ways to fix this:
1. Using an actual Performance Insights ARN
The following page suggests that Performance Insights actually uses ARNs to identify real resources (metrics):
Problem
The Performance Insights source asks the user to enter an ARN, but this ARN isn't used in the source code. Its only purpose is to carry a region which is used to initialize an API client.
Even more confusing: it's possible to pass an ARN for any AWS service (really any) and the source would still work, casually ignoring the value entered by the user.
Not only this is a bug, but it also provides a poor user experience, because people are left wondering whether they need to use a PI ARN, a RDS ARN... and the answer is none of them. 🤔
Proposed solution
I see 2 possible ways to fix this:
1. Using an actual Performance Insights ARN
The following page suggests that Performance Insights actually uses ARNs to identify real resources (metrics):
Pros:
serviceType
andidentifier
, which are currently separate attributesCons:
2. Replacing the ARN with a "region" attribute
As mentioned in the problem description, even if we don't currently do anything with the provided ARN, we still need users to provide a region.
Tackling this issue could be as easy as renaming "arn" to "region" without any further code change.
Pros:
Cons:
The text was updated successfully, but these errors were encountered: