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 Antwort
1
Akzeptierte Antwort

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
SUPPORT-TECHNIKER
beantwortet vor 2 Jahren

Du bist nicht angemeldet. Anmelden um eine Antwort zu veröffentlichen.

Eine gute Antwort beantwortet die Frage klar, gibt konstruktives Feedback und fördert die berufliche Weiterentwicklung des Fragenstellers.

Richtlinien für die Beantwortung von Fragen