[prometheus-users] Advice on where/how to write a new niche-ish blackbox exporter probe?

2024-12-13 Thread Stewart Webb
Hi folks, At my workplace we have been working recently with Fluentbit and its Fluent Forward protocol, which is an efficient binary msgpack protocol for transmitting string or key-value logs with timestamps - see https://github.com/fluent/fluentd/wiki/Forward-Protocol-Specification-v1.5 . I'v

Re: [prometheus-users] Re: Offset alert never clearing

2024-12-13 Thread Chris Siebenmann
> This is incredibly helpful, thanks for taking the time to write it. I > don't think there is anything like this level of description of how > expr works in the docs, but I may have missed it. To be clear here, and to help locate it in the documentation, this isn't a special behaviour of alert ru

Re: [prometheus-users] Re: Offset alert never clearing

2024-12-13 Thread Colm McCartan
This is incredibly helpful, thanks for taking the time to write it. I don't think there is anything like this level of description of how expr works in the docs, but I may have missed it. You also correctly anticipated that the missing-time-series scenario was an issue for me in this work, so than

[prometheus-users] Re: Help needed for using Node Exporter for parsing CSV file

2024-12-13 Thread 'Brian Candler' via Prometheus Users
> do we have any existing node exporter which can read csv file? No. But if you write a simple script to read the csv file and write it back out in openmetrics format, then you can use node_exporter's textfile collector. For example: total_bytes{interface_name="abc"} 600 incoming_bytes{interfac

[prometheus-users] Re: Offset alert never clearing

2024-12-13 Thread 'Brian Candler' via Prometheus Users
> I do not really understand how expr works in prom rules - is it something that simply evaluates to either 1 or 'true' as a go bool type? No. It's not boolean logic at all. PromQL works with *vectors*: a vector contains zero or more values, each with a distinct set of labels. An alert fires wh

[prometheus-users] Re: Offset alert never clearing

2024-12-13 Thread cam
This took about a week to appear on the list? Meantime, I have come up with the following.. - alert: outboundSocketCountChange expr: *(*(count({__name__=~"tcpsocket(.+)Inbound"} offset 30s) - count({__name__=~"tcpsocket(.+)Inbound"})) != bool 0*) == 1* labels: severity: critical

[prometheus-users] Help needed for using Node Exporter for parsing CSV file

2024-12-13 Thread Navjyot Ramteke
Hi All, We have a linux process which writes variables/statistics periodically into .csv file. We need to feed/save these variables/statistics in prometheus so that it can be viewed on Grafana. Our process periodically writes a new file in a folder(linux virtual machine). Folder: sta

[prometheus-users] Offset alert never clearing

2024-12-13 Thread cam
Hello all, I have a rule which is trying to count time series that match a certain regexp and spot when this changes, to raise an alert more or less immediately (i.e. no for clause). This is counting a custom socket count metric that we need to catch any changes in. - alert: outboundSocketCo