i tried to install the prom2teams in windows 2016 , it's throwing below
error
Collecting uwsgi==2.0.20
Using cached uwsgi-2.0.20.tar.gz (804 kB)
Preparing metadata (setup.py) ... error
error: subprocess-exited-with-error
× python setup.py egg_info did not run successfully.
│ exit code: 1
╰─> [8 lines of output]
Traceback (most recent call last):
File "<string>", line 2, in <module>
File "<pip-setuptools-caller>", line 34, in <module>
File
"C:\Users\vsm754\AppData\Local\Temp\pip-install-g0rnnpoc\uwsgi_a3f780df2bae4b2c9c94a3749a636e98\setup.py",
line 3, in <module>
import uwsgiconfig as uc
File
"C:\Users\vsm754\AppData\Local\Temp\pip-install-g0rnnpoc\uwsgi_a3f780df2bae4b2c9c94a3749a636e98\uwsgiconfig.py",
line 8, in <module>
uwsgi_os = os.uname()[0]
AttributeError: module 'os' has no attribute 'uname'. Did you mean:
'name'?
[end of output]
note: This error originates from a subprocess, and is likely not a
problem with pip.
error: metadata-generation-failed
× Encountered error while generating package metadata.
╰─> See above for output.
note: This is an issue with the package mentioned above, not pip.
did we have any other alternative, if yes- could you please provide me an
example because it's really important to our POC.
On Friday, June 24, 2022 at 3:23:37 AM UTC-4 Brian Candler wrote:
> > i am getting 400 status code for webhook
>
> That means you are invoking the webhook wrongly - 400 means bad request
> sent by client. The body of the 400 message probably tells you what you're
> doing wrong.
>
> The JSON body that Alertmanager POSTs is fixed, and defined here:
> https://prometheus.io/docs/alerting/latest/configuration/#webhook_config
>
> I am guessing that the webhook receiver that you're sending to needs its
> data in a different format.
>
> If you google for "alertmanager teams" then the first hit is this:
>
> https://medium.com/javarevisited/react-faster-alertmanager-to-teams-fa888bcd7c01
>
> They are using a third-party package called "prom2teams
> <https://github.com/idealista/prom2teams>" to convert an alertmanager
> webhook into a form that Teams will accept.
>
> On Friday, 24 June 2022 at 05:25:34 UTC+1 [email protected] wrote:
>
>> Hi Team,
>>
>> i am sending multiple alerts one is email alert and another is to msteam
>> channel using webhook.
>>
>> My configuration in alertmanger .yml
>>
>> route:
>> group_by: ['alertname']
>> group_wait: 30s
>> group_interval: 5m
>> repeat_interval: 1h
>> receiver: 'ms_teams'
>> routes:
>> - receiver: "ms_teams"
>> group_wait: 10s
>> match_re:
>> severity: critical|warning
>> continue: true
>>
>> - receiver: "send_email"
>> group_wait: 10s
>> match_re:
>> severity: critical
>> continue: true
>>
>> receivers:
>> - name: "ms_teams"
>> webhook_configs:
>> - url:
>> 'https://<mycmp>/webhookb2/094e8920-b8d3-49ee-a7d4-8576b636ecbb@44b79a67-d972-49ba-9167-8eb05f754a1a/IncomingWebhook/76c301af46724afcb5d27366adc7e31e/71493bd4-0176-499c-bc34-1064b9e3e72e'
>> send_resolved: true
>>
>> - name: "send_email"
>> email_configs:
>> - to: <my cmp email id>
>> from : <sample email id>
>> smarthost: <my smtp config>
>> require_tls: false
>> send_resolved: true
>>
>> if i test the email individual i am getting email alert but when i
>> include with the webhook is not working and i am getting 400 status code
>> for webhook and it is impacting the email alert too.
>>
>> FYI.. i tested this webhook from Grafana notification channel, it's
>> working and able to get the alerts to msteams.
>>
>> Please check the above config and let me know if i miss any thing.
>>
>> Regards,
>> Venkat
>>
>>
--
You received this message because you are subscribed to the Google Groups
"Prometheus Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/prometheus-users/94c0b597-dd06-410a-80a8-22a9005c98d9n%40googlegroups.com.