[pkg-go] Bug#921739: amtool: error: comment required by config

Martín Ferrari tincho at tincho.org
Sat Feb 9 12:06:50 GMT 2019


Hi Santiago,

On 08/02/2019 17:35, Santiago Vila wrote:

> File /usr/share/doc/prometheus-alertmanager/README.md.gz suggests doing this:
> 
> amtool silence add alertname=Test_Alert
> 
> but this is what I get:
> 
> amtool: error: comment required by config

I don't know how that is configured, but you just need to add a comment
to the silence like '--comment="testing silences"'

> Trying to see what's wrong, I tried using amtool 0.16.1, downloaded
> from github:
> 
> $ /tmp/amtool silence add alertname=Test_Alert
> amtool: error: required flag --alertmanager.url not provided
> 
> Ok, apparently it needs the url of the current alertmanager instance,
> let's try this then:

Yes, the debian binary comes with a sane default which is not present in
upstream.

> I would love to use the web UI, but it's gone:
> 
>  The Debian package of the alertmanager does not include a web
>  application.
> 
> Is this a Debian-specific change? If yes, could we have the web UI back?
> In my opinion, it was better than nothing.

The problem is that upstream switched to Elm for generating the UI, and
that would have required preparing and uploading dozens of new packages,
and I did not have the resources for that.

Somebody offered to write a script to download the pre-compiled UI and
install it locally, but never happened.

-- 
Martín Ferrari (Tincho)



More information about the Pkg-go-maintainers mailing list