frodenas / alertmanager-resource Goto Github PK
View Code? Open in Web Editor NEWConcourse Alertmanager resource
License: Apache License 2.0
Concourse Alertmanager resource
License: Apache License 2.0
After the update of alertmanager to v0.13.0, the amtool seems to be no longer accepting the '--author' flag as it is. Whenever we call the resource, it returns the following error:
amtool: error: unknown long flag '--author'
It might be that the command (silence add
) has to precede the flags?
when you provide a url that is invalid or that doesn't have the username/password when needed
you get a jq error invalid numeric literal
so https://github.com/frodenas/alertmanager-resource/blob/master/assets/out#L25-L30
will generate a empty string
that will fail on line https://github.com/frodenas/alertmanager-resource/blob/master/assets/out#L59
a check for the url that you get a 200 would make sense and improve the error message
Hi.
My alertmanager is set to be using basic auth and I setup pipeline as following:
jobs:
- name: job-hello-world
public: true
plan:
- get: time
trigger: true
- put: silence-test-alerts
resource: am
params:
operation: silence
matchers: "service=cf"
expires: 30m
resources:
- name: am
type: alertmanager-resource
source:
url: http://admin:[email protected]:9093/
- name: time
type: time
source:
interval: 1m
resource_types :
- name: alertmanager-resource
type: docker-image
source:
repository: frodenas/alertmanager-resource
but concourse(amtool) prints error.
0e207f34e107: Pull complete
154c7d3824e9: Pull complete
d1fdece7f9a9: Pull complete
Digest: sha256:64d9a5163223cedb990a20e07fa171aaf9e90925ddea5d55a62732ead65745cd
Status: Downloaded newer image for frodenas/alertmanager-resource@sha256:64d9a5163223cedb990a20e07fa171aaf9e90925ddea5d55a62732ead65745cd
Successfully pulled frodenas/alertmanager-resource@sha256:64d9a5163223cedb990a20e07fa171aaf9e90925ddea5d55a62732ead65745cd.
amtool: error: Get http://172.21.185.33:9093/api/v1/silences?filter=: dial tcp 172.21.185.33:9093: getsockopt: connection refused
I can get a response successfully by curl.
$ curl http://admin:[email protected]:9093/api/v1/silences
{"status":"success","data":[]}
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.