Getting Started with Amazon Managed Service for Prometheus guide helm deployment error

0

Hi,

trying to follow the: Getting Started with Amazon Managed Service for Prometheus guide

https://aws.amazon.com/blogs/mt/getting-started-amazon-managed-service-for-prometheus/?sc_channel=EL&sc_campaign=Demo_Deep_Dive_2021_vid&sc_medium=YouTube&sc_content=Video8861&sc_detail=MANAGEMENT_GOVERNANCE&sc_country=US

But getting an error on the Deploying Prometheus server helm deployment step.

I have the variables set up, amp setup. but when running

helm install prometheus-for-amp prometheus-community/prometheus -n prometheus -f ./amp_ingest_override_values.yaml \
--set serviceAccounts.server.annotations."eks\.amazonaws\.com/role-arn"="${IAM_PROXY_PROMETHEUS_ROLE_ARN}" \
--set server.remoteWrite[0].url="https://aps-workspaces.${AWS_REGION}.amazonaws.com/workspaces/${WORKSPACE_ID}/api/v1/remote_write" \
--set server.remoteWrite[0].sigv4.region=${AWS_REGION}

I get the error:

zsh: no matches found: server.remoteWrite[0].url=https://aps-workspaces.eu-west-2.amazonaws.com/workspaces/ws-xxx/api/v1/remote_write

When i go to AMP i can see the http path is correct (the console gives a v1/query instead of v1/remote_write though.

Any idea how troubleshoot?

1개 답변
1
수락된 답변

It looks like the shell is unable to parse the command. You can try to escape the square brackets in server.remoteWrite[0].url and see if it works.

Change server.remoteWrite[0].url to server.remoteWrite\[0\].url

Another approach is to hardcode the URL in your amp_ingest_override_values.yaml file and remove the --set server.remoteWrite[0].url flag from your command.

server:
  remoteWrite:
    -
      url: https://aps-workspaces.eu-west-2.amazonaws.com/workspaces/ws-xxx/api/v1/remote_write
      queue_config:
        max_samples_per_send: 1000
        max_shards: 200
        capacity: 2500

I hope this helps!

profile pictureAWS
지원 엔지니어
답변함 2년 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인