-
Notifications
You must be signed in to change notification settings - Fork 88
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Question <Connector1> in Configuring Prometheus #62
Comments
Hi @Alexvianet :) |
thanks i got it |
@Gkrlo I Got [Microsoft Teams] [HTTP Server] |
Hi @Alexvianet, We're working on this issue, that is related to #61. Stay tuned :) |
Hi @Alexvianet, Prom2teams v2.0.3 was just released. Please check if it solves this issue and if not so, provide us with feedback. Regards, |
Hi yep it fix errors in log but i have not still received anything to teams
…On Wed, Apr 11, 2018, 14:23 José Noguera ***@***.***> wrote:
Hi @Alexvianet <https://github.com/Alexvianet>,
Prom2teams v2.0.3 was just released. Please check if it solves this issue
and if not so, provide us with feedback.
Regards,
Jose
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#62 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AQrHRaylwlBgdYFftR3AvrwRIwIMJPqLks5tnee1gaJpZM4TN3nR>
.
|
Hmmm... Just tried again and works perfectly for me. How are you setting up Prom2teams? Did you update your Prom2teams version? Here's my testing version: '3'
services:
prom2teams:
image: idealista/prom2teams
hostname: prom2teams
ports:
- "8089:8089"
environment:
- PROM2TEAMS_CONNECTOR=myconnectorurlwithoutquotes And then: curl -X POST --header 'Content-Type: application/json' --header 'Accept: application/json' -d '{"status":"Resolved","alerts":[{"annotations":{"summary":"Disk usage alert on CS30.evilcorp","description":"disk usage 93% on rootfs device"},"endsAt":"2017-05-09T07:01:37.803Z","generatorURL":"my.prometheusserver.url","startsAt":"2017-05-09T07:01:37.803Z","status":"Resolved","labels":{"fstype":"rootfs","mounterpoint":"/","instance":"cs30.evilcorp","device":"rootfs","job":"fsociety","alertname":"DiskSpace","severity":"severe"}}],"receiver":"test_webhook","externalURL":"my.prometheusalertmanager.url","version":"4"}' 'http://localhost:8089/v2/Connector' |
I use it in prometheus VM i have unzip 2.0.3.zip and run prom2teams with
and my config/prom2teams-config.ini
|
when i run Tour Curl, I got: <title>404 Not Found</title>Not FoundThe requested URL was not found on the server. If you entered the URL manually please check your spelling and try again. and |
I am on 99% sure that i fuckuped some where) |
Try removing the quotes from the connector and restart Prom2teams. Plus, it looks like that your webhook url is incomplete. I don't know if that was on purpose (if so, well done :) ) |
i have cut it in insecure stuff =) |
what config U have on Prometheus side ?
without any templates |
There seems to be a misunderstanding here. Prom2teams is meant to be used with https://github.com/idealista/prom2teams#configuring-prometheus For instance:
Try it this way and let us know if it works |
receivers:
[{"name":"slack-receiver","webhook_configs":[{"send_resolved":true,"url":"
http://localhost:8089/v2/Connector"}]}]
This is my alertmanager config
There is webhook_configs type
…On Wed, Apr 11, 2018, 17:19 José Noguera ***@***.***> wrote:
There seems to be a misunderstanding here. Prom2teams is meant to be used
with webhook_config:
https://github.com/idealista/prom2teams#configuring-prometheus
https://prometheus.io/docs/alerting/configuration/#%3Creceiver%3E
https://prometheus.io/docs/alerting/configuration/#%3Cwebhook_config%3E
For instance:
receivers:
- name: 'My Prom2Teams server'
webhook_configs:
- url: http://prom2teams:8089/v2/connector
send_resolved: true
Try it this way and let us know if it works
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#62 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AQrHRQd_U9eXcGVivV29UuUBPjnbQtoXks5tnhECgaJpZM4TN3nR>
.
|
Ooops, sorry. Not enough caffeine in my system yet 😆 So I read in a previous message that it is working now? |
With curl yes but nothing from alertmanager
…On Wed, Apr 11, 2018, 17:28 José Noguera ***@***.***> wrote:
Ooops, sorry. Not enough caffeine in my system yet 😆
So I read in a previous message that it is working now?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#62 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AQrHReyad0xpeL6vAj9dE8aK7XQNxXr2ks5tnhLhgaJpZM4TN3nR>
.
|
can U send me your alertmanager template, ill be very grateful |
Finally works now thanks a lot |
How it worked, could you pls confirm? |
Hey to this issue, I want to use prom2teams and my config.ini looks like this: [Microsoft Teams] [Log] My alertmanager bit looks like this:
For this bit, I get a error with alertmanager, stating it cannot parse the url. That's fine I guess. Changing to: Can somebody help me? |
can U provide some example of this url:
in prom2teams i have:
Host: localhost
Port: 8089
Connector:
https://outlook.office.com/webhook/XXXXXXXXXXXXX@XXXXXXXXX/IncomingWebhook/XXXXXXXX
So in Prometheus Configuration i have to add:
url: 0.0.0.0:8089/v2/https://outlook.office.com/webhook/XXXXXXXXXXXXX@XXXXXXXXX/IncomingWebhook/XXXXXXXX
or
0.0.0.0:8089/v2/webhook/XXXXXXXXXXXXX@XXXXXXXXX/IncomingWebhook/XXXXXXXX
The text was updated successfully, but these errors were encountered: