Replies: 2 comments
-
My question is actual, i can simplify it |
Beta Was this translation helpful? Give feedback.
0 replies
-
There is troubles in my alertmanager configuration |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello
i was deploy karma in k8s, my configmap is
apiVersion: v1 kind: ConfigMap metadata: name: karma-config namespace: monitoring data: karma.yaml: | alertmanager: servers: - name: default uri: http://kube-prometheus-stack-alertmanager.monitoring.svc:9093
When i running karma, i got error:
level=info msg="Reading configuration file" path=/etc/karma/karma.yaml level=info msg="Version: v0.120-389-g191371fa" level=info msg="Configured Alertmanager source" cluster=default name=default proxy=false readonly=false uri=http://kube-prometheus-stack-alertmanager.monitoring.svc:9093 level=info msg="Initial Alertmanager collection" level=info msg="Pulling latest alerts and silences from Alertmanager" level=info msg="Collecting alerts and silences" alertmanager=default level=info msg="GET request" timeout=40 uri=http://kube-prometheus-stack-alertmanager.monitoring.svc:9093/metrics level=error msg="Request failed" error="request to http://kube-prometheus-stack-alertmanager.monitoring.svc:9093/metrics failed with 404 Not Found" alertmanager=default uri=http://kube-prometheus-stack-alertmanager.monitoring.svc:9093 level=error msg="Collection failed" error="[GET /silences] getSilences (status 404): {}" alertmanager=default try=1/2
Then i try specify nodeport ip in configmap:
apiVersion: v1 kind: ConfigMap metadata: name: karma-config namespace: monitoring data: karma.yaml: | alertmanager: servers: - name: default uri: 10.233.12.205:9093
But i still have error
level=info msg="Reading configuration file" path=/etc/karma/karma.yaml level=info msg="Version: v0.120-389-g191371fa" level=info msg="Configured Alertmanager source" cluster=default name=default proxy=false readonly=false uri=http://10.233.12.205:9093 level=info msg="Initial Alertmanager collection" level=info msg="Pulling latest alerts and silences from Alertmanager" level=info msg="Collecting alerts and silences" alertmanager=default level=info msg="GET request" timeout=40 uri=http://10.233.12.205:9093/metrics level=error msg="Request failed" error="request to http://10.233.12.205:9093/metrics failed with 404 Not Found" alertmanager=default uri=http://10.233.12.205:9093 level=error msg="Collection failed" error="[GET /silences] getSilences (status 404): {}" alertmanager=default try=1/2
If i curl, i got this
[kuberadm@master-1 karma]$ curl http://10.233.12.205:9093 Found [kuberadm@master-1 karma]$ curl http://10.233.12.205:9093/metrics 404 page not found [kuberadm@master-1 karma]$ curl http://10.233.12.205:9093/#/metrics Found
How i can change uri to http://10.233.12.205:9093/#/ in configmap?
When i try to change uri, karma send /get to http://10.233.12.205:9093/metrics#/
alertmanager:v0.26.0
Beta Was this translation helpful? Give feedback.
All reactions