Troubleshoot Amazon Managed Service for Prometheus issues
This document provides solutions to common issues you may encounter when configuring or using the Amazon Managed Service for Prometheus data source. For configuration instructions, refer to Configure the Amazon Managed Service for Prometheus data source.
Plugin and interface errors
These errors occur when the plugin is outdated or fails to load in the Grafana interface.
“Plugin not found”, “Datasource not found”, or blank settings tabs
An outdated plugin version is a common cause of interface errors and missing settings.
Symptoms:
- The data source settings tabs are blank or fail to render.
- Errors such as Plugin not found or Datasource not found appear.
- The browser console shows JavaScript errors such as
TypeError: Cannot read properties of undefined.
Solutions:
- Check the installed plugin version. Navigate to Plugins and data > Plugins and select Amazon Managed Service for Prometheus.
- If an update is available, click Update to install the latest version. In Grafana Cloud, plugins update automatically.
- After updating, reload the data source configuration page.
- Confirm your Grafana version meets the plugin’s minimum requirement. For the supported versions, refer to Requirements.
- If the errors persist, restart Grafana and clear your browser cache.
For install, upgrade, and catalog issues, refer to Troubleshoot installation issues.
Authentication errors
These errors occur when AWS credentials are invalid, missing, or don’t have the required permissions, or when the SigV4 authentication option isn’t enabled on your instance.
SigV4 authentication option is missing
In some Grafana Cloud instances, the SigV4 authentication option isn’t enabled by default and must be turned on for your instance.
Symptoms:
- The authentication drop-down shows only options such as Basic auth, Forward OAuth Identity, and No Authentication.
- SigV4 auth doesn’t appear as an authentication method.
- You can’t complete the data source configuration because there’s no way to enter AWS credentials.
Solution:
If the SigV4 option is missing from the authentication drop-down in Grafana Cloud, contact Grafana Support to enable SigV4 authentication for your instance. After Support enables it and the instance restarts, the SigV4 auth option appears in the authentication drop-down.
“Access denied” or “Authorization failed”
These errors indicate that the identity Grafana uses can’t query the workspace.
Symptoms:
- Save & test fails with an authorization error.
- Queries return access denied messages.
- Metrics and labels don’t load in the query editor.
Possible causes and solutions:
Required IAM permissions:
Grant the identity the aps permissions for the features you use. Missing permissions, such as aps:ListRules or aps:DescribeRuleGroupsNamespace, are a common cause of access-denied errors.
Example IAM policy:
{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Action": [
"aps:QueryMetrics",
"aps:GetLabels",
"aps:GetSeries",
"aps:GetMetricMetadata",
"aps:ListRules",
"aps:ListRuleGroupsNamespaces",
"aps:DescribeRuleGroupsNamespace",
"aps:CreateRuleGroupsNamespace",
"aps:PutRuleGroupsNamespace",
"aps:DeleteRuleGroupsNamespace"
],
"Resource": "arn:aws:aps:<REGION>:<ACCOUNT_ID>:workspace/<WORKSPACE_ID>"
}
]
}If you only query metrics and don’t manage rules from Grafana, you can omit the rule and alert manager actions.
“Access denied” when assuming a role
When you use an assume-role configuration, the role’s trust policy must allow the calling identity to assume it. For Grafana Cloud, the calling identity is the Grafana Labs AWS account 008923505280.
Symptoms:
- Save & test fails even though the role has the correct
apspermissions. - Logs mention
AccessDeniedonsts:AssumeRole.
Solutions:
- Verify the trust policy lists the correct principal. For Grafana Cloud, use the Grafana Labs account
008923505280. - Verify the External ID in the data source configuration matches the
sts:ExternalIdcondition in the trust policy. - Verify the Assume Role ARN in the data source matches the role you configured.
Example trust policy:
{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Principal": {
"AWS": "arn:aws:iam::008923505280:root"
},
"Action": "sts:AssumeRole",
"Condition": {
"StringEquals": {
"sts:ExternalId": "<EXTERNAL_ID>"
}
}
}
]
}For a self-managed Grafana instance, replace 008923505280 with the account or IAM user ARN that runs Grafana.
“InvalidClientTokenId” or STS AssumeRole 403 errors
These errors occur when AWS Security Token Service (STS) rejects the credentials used to assume the role.
Symptoms:
- Save & test fails with
InvalidClientTokenIdor an HTTP403from STS. - Logs mention
sts:AssumeRolefailures.
Solutions:
- Verify the base credentials, such as the access key or instance role, are valid and not expired.
- Verify STS is enabled for the region. If you use regional STS endpoints, confirm the region is activated in your AWS account.
- Verify the Assume Role ARN is correct and the role exists in the target account.
- Verify the base identity has
sts:AssumeRolepermission for the target role.
“SignatureDoesNotMatch” or signature errors
This error means AWS rejected the request signature.
Solutions:
- Verify the secret access key is correct and has no leading or trailing whitespace.
- Verify the Default Region matches the workspace region, because SigV4 signs requests per region.
- Verify the Service field is set to
apsunless AWS instructs you to use a different value. - Verify the Grafana server clock is accurate, because a large clock skew invalidates signatures.
Connection errors
These errors occur when Grafana can’t reach the workspace endpoint.
“Connection refused” or timeout errors
These errors indicate a network or endpoint problem rather than an authentication problem.
Symptoms:
- The data source test times out.
- Queries fail with network errors.
- Connection issues are intermittent.
Solutions:
- Verify the Prometheus server URL is the correct workspace query endpoint and includes the workspace path.
- Verify network connectivity from the Grafana server to the workspace endpoint.
- Check that firewall rules allow outbound HTTPS on port 443.
- For Grafana Cloud accessing a private endpoint, configure Private data source connect.
VPC endpoint and PrivateLink access denied
If you reach your workspace through an AWS PrivateLink (VPC) endpoint, the endpoint policy can block requests even when IAM permissions are correct.
Symptoms:
- Requests fail with access-denied errors only when routed through the VPC endpoint.
- The same identity works from a public endpoint but not the private one.
VPC endpoint policy checklist:
- Confirm the VPC endpoint for
com.amazonaws.<REGION>.aps-workspacesexists and is in the Available state. - Confirm the endpoint policy allows the calling principal. For Grafana Cloud, allow the Grafana Labs account
008923505280or the role it assumes. - Confirm the endpoint policy allows the required
apsactions, such asaps:QueryMetricsand the label and series actions. - Confirm the endpoint policy
Resourceincludes your workspace ARN. - Confirm the endpoint’s security group allows inbound HTTPS on port 443 from the source network.
- Confirm DNS resolves the workspace endpoint to the private endpoint addresses.
Query errors
These errors occur when running queries against the workspace.
“No data” or empty results
A query can succeed yet return no data.
Symptoms:
- The query runs without error but returns no data.
- Panels show a No data message.
Possible causes and solutions:
Query timeout
Large or unbounded queries can exceed the query timeout.
Symptoms:
- The query runs for a long time and then fails.
- The error mentions a timeout or query limit.
Solutions:
- Narrow the time range to reduce the data volume.
- Add label filters to reduce the number of series.
- Increase the Query timeout on the data source configuration page.
- Use recording rules to pre-compute expensive expressions.
Template variable errors
These errors occur when using template variables with the data source.
Variables return no values
Empty variables usually point to a connection or permissions problem.
Solutions:
- Verify the data source connection works by running Save & test.
- Verify the variable query uses a valid function such as
label_values(). - Check that parent variables in a chain have valid selections.
- Verify the identity has permission to list labels and series.
Variables are slow to load
Large workspaces can make variable queries slow.
Solutions:
- Set the variable refresh to On dashboard load instead of On time range change.
- Narrow the scope of the variable query with label filters.
- Enable Disable metric lookup if you don’t need metric autocomplete.
Performance issues
These issues relate to slow queries or AWS service limits.
Throttling or rate limit errors
Amazon Managed Service for Prometheus enforces request quotas.
Symptoms:
- Errors mention throttling or rate limits.
- Dashboard panels intermittently fail to load.
Solutions:
- Reduce the dashboard refresh frequency.
- Increase the query step or Min step to request fewer data points.
- Enable query caching in Grafana, available in Grafana Enterprise and Grafana Cloud.
- Request a quota increase from AWS for your workspace.
Alerting errors
These errors occur when Grafana can’t load or manage rules stored in your workspace.
“Unable to fetch alert rules”
This error appears when Grafana can’t retrieve the alerting and recording rules from the workspace ruler.
Symptoms:
- The Grafana Alerting UI shows Unable to fetch alert rules.
- Data-source-managed rules don’t load even though queries work and IAM permissions are correct.
Possible causes and solutions:
Note
The Unable to fetch alert rules error isn’t always a configuration problem. When IAM permissions and the workspace URL are correct, the cause can be platform-side and require escalation to Grafana Support rather than a change on your end.
Enable debug logging
To capture detailed error information for troubleshooting:
Set the Grafana log level to
debugin the configuration file:[log] level = debugReview logs in
/var/log/grafana/grafana.log, or your configured log location.Look for entries from the
grafana-amazonprometheus-datasourceplugin that include request and response details.Reset the log level to
infoafter troubleshooting to avoid excessive log volume.
Get additional help
If you’ve tried these solutions and still encounter issues:
- Check the Grafana community forums for similar issues.
- Review the plugin GitHub issues for known bugs.
- Consult the Amazon Managed Service for Prometheus documentation for service-specific guidance.
- Contact Grafana Support if you’re an Enterprise, Cloud Pro, or Cloud Contracted user.
- When reporting issues, include:
- Grafana version and plugin version.
- Error messages, with sensitive information redacted.
- Steps to reproduce.
- Relevant configuration, with credentials redacted.


