[prometheus-users] Re: {\"message\":\"Not Found\"}\n" - mail Alertmanager (and prometheus-msteams)

2023-03-07 Thread Kolja Krückmann
023 at 08:48:37 UTC Kolja Krückmann wrote: > > I just checked and prom is using the correct yml. I just missed that I > actually changed the alertmanager to localhost:9093 - thats why my error > sais localhost:9093 not 127.0.0.1:9093 > > > > Furthermore, I actually don't kn

[prometheus-users] Re: {\"message\":\"Not Found\"}\n" - mail Alertmanager (and prometheus-msteams)

2023-03-07 Thread Kolja Krückmann
for the relabeling part - because I actually don't know anything about regex and so on) Brian Candler schrieb am Montag, 6. März 2023 um 16:35:12 UTC+1: > On Monday, 6 March 2023 at 12:33:21 UTC Kolja Krückmann wrote: > > # Alertmanager configuration > alerting: > alertmanage

[prometheus-users] {\"message\":\"Not Found\"}\n" - mail Alertmanager (and prometheus-msteams)

2023-03-06 Thread Kolja Krückmann
Hi y'all I'm currently trying to get my alerting to work via email. When running my prom.exe I get the following error quite often: ts=2023-03-06T10:32:02.804Z caller=notifier.go:532 level=error component=notifier alertmanager=http://localhost:9093/api/v2/alerts count=30 msg="Error sending

Re: [prometheus-users] file_cd_config - label for each target

2023-04-27 Thread Kolja Krückmann
stance: "A" >> - targets: >> - [...second list of targets...] >> labels: >> instance: "B" >> - targets: >> - [...third list of targets...] >> labels: >> instance: "C" >> >> >> On Tue, A

Re: [prometheus-users] file_cd_config - label for each target

2023-04-28 Thread Kolja Krückmann
le but I'm not quite getting there. Either the Endpoint URL is missing the target IP or the label is missing the name of the endpoint. Kolja Krückmann schrieb am Freitag, 28. April 2023 um 08:38:59 UTC+2: > nevermind - sorry for the question, should have just googled learn regular > expres

Re: [prometheus-users] file_cd_config - label for each target

2023-04-28 Thread Kolja Krückmann
ce >> replacement: '${1}' >> >> This would be useful if the same exporter were running on different ports >> on different hosts (fairly uncommon I think). >> >> Also, you risk a collision of metrics if targets list includes the same >> host

Re: [prometheus-users] file_cd_config - label for each target

2023-04-28 Thread Kolja Krückmann
nevermind - sorry for the question, should have just googled learn regular expression. I'm fine for now. Kolja Krückmann schrieb am Freitag, 28. April 2023 um 08:35:21 UTC+2: > Thanks so much! > > Can you tell me where I could kinda "learn" regex? I find it very >

[prometheus-users] file_cd_config - label for each target

2023-04-18 Thread Kolja Krückmann
Hi y'all I'm trying to get a label for each target in my file_sd_config my prom.yml is: (redacted) # my global config global: scrape_interval: 1m # Set the scrape interval to every 15 seconds. Default is every 1 minute. evaluation_interval: 30s # Evaluate rules every 15 seconds. The default

Re: [prometheus-users] file_cd_config - label for each target

2023-05-02 Thread Kolja Krückmann
dress" - "name" "ip-adress" where does the label actually come from? Brian Candler schrieb am Freitag, 28. April 2023 um 14:55:10 UTC+2: > On Friday, 28 April 2023 at 13:13:22 UTC+1 Kolja Krückmann wrote: > > > - job_name: 'Ping (ICMP)' > me

[prometheus-users] Blackbox icmp probe relabel_configs

2023-02-01 Thread Kolja Krückmann
Hi there, hope you're doing well. I'm fairly new to prom and having a bit of trouble with all the configs. I installed the Blackbox exporter for testing on a Windows Client. What I just want to do is a simple ping to the blackbox node and see in my dashboard if the client is up or down. my

[prometheus-users] Blackbox relabel_configs

2023-02-01 Thread Kolja Krückmann
Hi there, hope y'all doing fine. I'm fairly new to prom and having a bit of trouble with all of the configs. Currently I want to use the blackbox_exporter to ping the endpoints. I just want to know if they are up and healthy or down/off. But I just can't figure out how to relabel correctly in

Re: [prometheus-users] file_cd_config - label for each target

2023-04-28 Thread Kolja Krückmann
; Then you should get metrics like this: > > probe_success{job="blackbox",instance="google-pri",module="icmp"} 1 > > On Friday, 28 April 2023 at 09:49:21 UTC+1 Kolja Krückmann wrote: > >> Hi y'all, now i got my metrics running (Thanks Brian) >&g

Re: [prometheus-users] file_cd_config - label for each target

2023-04-28 Thread Kolja Krückmann
- source_labels: [module] target_label: __param_module - target_label: __address__ replacement: 127.0.0.1:9115 # Blackbox exporter Kolja Krückmann schrieb am Freitag, 28. April 2023 um 14:10:00 UTC+2: > Hi Brian, thanks for your quick response. > > Actually I

[prometheus-users] Re: tls_config /tls_server_config

2023-06-15 Thread Kolja Krückmann
[EDIT] My goal is to connect to prometheus-website (from a client not the host itself) via https, because I want to embed the website in a powerpoint. Unfortunatly the Add-in from ppt only allows https: websites Kolja Krückmann schrieb am Donnerstag, 15. Juni 2023 um 10:58:56 UTC+2: > Hi

[prometheus-users] tls_config /tls_server_config

2023-06-15 Thread Kolja Krückmann
Hi all, I want to run prometheus as https. I searched through the whole doc and this google.group. Unfortunatly I still don't understand how I use the certificates and how to exactly get all them files (.key, .ca, .cert) I know so far, that I should use openssl for creating said files but what

[prometheus-users] change mail template on windows

2023-06-05 Thread Kolja Krückmann
Hi y'all I'm trying to change the way the mail from my alertmanger looks and behaves. My goal is to have the subject list the alertname and the targets detected by that alert. (I need it like that for future todo's) My first problem is, i dont have any templates in my files. Do I need to clone

[prometheus-users] Re: change mail template on windows

2023-06-08 Thread Kolja Krückmann
[EDIT] Also I want to split the firing and resolved alerts. Kolja Krückmann schrieb am Donnerstag, 8. Juni 2023 um 14:48:40 UTC+2: > Hi all, I tried it now for two days straight and I just don't get it > working. > > First of all where do I actually find the expressions I can u

[prometheus-users] Re: change mail template on windows

2023-06-08 Thread Kolja Krückmann
u will find an example showing how to > do that here: > > https://prometheus.io/docs/alerting/latest/notification_examples/#ranging-over-all-received-alerts > > Additional references: > https://prometheus.io/docs/alerting/latest/notifications/#data > > https://prometheus.io

[prometheus-users] Re: change mail template on windows

2023-06-09 Thread Kolja Krückmann
said. Can someone help me fix my issue? Kind regards, Kolja Kolja Krückmann schrieb am Donnerstag, 8. Juni 2023 um 15:03:14 UTC+2: > [EDIT] > Also I want to split the firing and resolved alerts. > Kolja Krückmann schrieb am Donnerstag, 8. Juni 2023 um 14:48:40 UTC+2: > >> H

[prometheus-users] Re: change mail template on windows

2023-06-09 Thread Kolja Krückmann
: subject: 'Resolved: {{ .GroupLabels.alertname }} - Instances: {{ range .Alerts }}{{ .Labels.instance }}, {{ end }}' Kolja Krückmann schrieb am Donnerstag, 8. Juni 2023 um 15:03:14 UTC+2: > [EDIT] > Also I want to split the firing and resolved alerts. > Kolja Krückmann schrieb am Donn

[prometheus-users] Re: change mail template on windows

2023-06-06 Thread Kolja Krückmann
instances affected by that alert. Kind regards. Kolja [image: mail.png] Kolja Krückmann schrieb am Montag, 5. Juni 2023 um 09:21:22 UTC+2: Hi y'all I'm trying to change the way the mail from my alertmanger looks and behaves. My goal is to have the subject list the alertname and the targets detected

[prometheus-users] Re: change mail template on windows

2023-06-18 Thread Kolja Krückmann
ch_re part from resolved is from good ol' friend chatgpt Brian Candler schrieb am Samstag, 17. Juni 2023 um 00:48:14 UTC+2: > You'll need to show the rest of your alertmanager config. "Receivers" by > themselves don't do anything; you have to refer to them in routing rules. >

[prometheus-users] Re: tls_config /tls_server_config

2023-06-16 Thread Kolja Krückmann
ant here. > > On Thursday, 15 June 2023 at 10:06:39 UTC+1 Kolja Krückmann wrote: > >> [EDIT] >> >> My goal is to connect to prometheus-website (from a client not the host >> itself) via https, because I want to embed the website in a powerpoint. >> Unfortunatly t

[prometheus-users] Re: change mail template on windows

2023-06-16 Thread Kolja Krückmann
nd_resolved: true" receiver doesn't only send > resolved messages: it will send on firing *and* on resolved. Hence the > subject "Resolved: ..." is likely to be very misleading. > > On Friday, 9 June 2023 at 13:42:13 UTC+1 Kolja Krückmann wrote: > >> Got it

[prometheus-users] Re: change mail template on windows

2023-06-16 Thread Kolja Krückmann
}}{{ .Labels.instance }}, {{ end }}' - name: 'email_resolved' email_configs: - to: 'syswa...@xxx.com' send_resolved: true headers: subject: 'Resolved: {{ .GroupLabels.alertname }} - Instances: {{ range .Alerts.Resolved }}{{ .Labels.instance }}, {{ end }}' Kolja Krückmann schrieb am Freitag

[prometheus-users] Re: change mail template on windows

2023-06-18 Thread Kolja Krückmann
messages though: > > https://www.robustperception.io/running-into-burning-buildings-because-the-fire-alarm-stopped > > On Sunday, 18 June 2023 at 12:11:31 UTC Kolja Krückmann wrote: > >> Hi Brian, thanks here are the routes to the receivers: >> >> ro

[prometheus-users] Re: Alerting with result of expression

2023-05-10 Thread Kolja Krückmann
Small correction here: I want to have the expression "windows_logical_disk_free_bytes{volume="C:"}/1000/1000/1000" (if this is the actual GB of free disk space (or do I need to device by 1024?)) in my alerting mail. And not as above the percentage. Kolja Krückmann schrieb

[prometheus-users] Alerting with result of expression

2023-05-10 Thread Kolja Krückmann
Hi y'all I'm looking for a possibility to add the "result" of an expression to the alerting description. My expression is to alert when the c:\ Drive is below 10%. Now I want to add the actual value of the expression: ((windows_logical_disk_free_bytes{volume="C:"} /

[prometheus-users] Re: Alerting with result of expression

2023-05-10 Thread Kolja Krückmann
users/c/wHLxUPtrb-A/m/idIcdJIrBgAJ > > Another approach you could consider: > https://groups.google.com/g/prometheus-users/c/0ncUqLm0LhU/m/mAiwaADXAgAJ > This looks at how quickly the filesystem is filling up, and tells you how > long before it expects to be full. > > On Wednesday