Amtool throwing an error as 'scheme required for webhook url' in RHOCP 4

Solution Verified - Updated -

Issue

  • Getting an error as scheme required for webhook url in amtool:

    $ oc exec alertmanager-user-workload-0 -- amtool config routes test severity=critical --alertmanager.url http://localhost:9093
    amtool: error: scheme required for webhook url
    
    command terminated with exit code 1
    

Environment

  • Red Hat OpenShift Container Platform (RHOCP)
    • 4.16.20

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content