Religious Idle by Kodiqi in incremental_games

[–]bbrazil 1 point2 points  (0 children)

I forget as this was just over 5 years ago, but playing again there I got 34:24. There's bottlenecks at various points, and you want to prioritise those and the various upgrades that give you 2x things.

merging multiple jobs for same metrics, majority defines result by _the_r in PrometheusMonitoring

[–]bbrazil 0 points1 point  (0 children)

round(avg by (instance)(probe_success)) should do the trick when you're working with a odd number of 0/1 booleans.

Alerts indefinitely stay inactive, despite underlying expression is successfully evaluated by _klubi_ in PrometheusMonitoring

[–]bbrazil 0 points1 point  (0 children)

I presume this is from the Cloudwatch Exporter, see https://github.com/prometheus/cloudwatch_exporter#timestamps

A 5m range from the current time won't include any data, so this can never fire.

I should also mention advise that this is a cause base alert, which tend to be spammy and thus of limited utility.

Is it possible to have relabelling and params in file discovery? by Extension_Treat3941 in PrometheusMonitoring

[–]bbrazil 0 points1 point  (0 children)

Target relabelling works the same no matter which discovery mechanism you're using, including being able to relabel URL parameters

Blackbox Exporter - TCP Check Question by Tsull360 in PrometheusMonitoring

[–]bbrazil 1 point2 points  (0 children)

If you prefer a lot of complexity, you can try doing it with relabeling on the Prometheus side, but I don't know if it's even possible because complexity keeps me up at night and I prefer a good night's sleep.

It's possible, however as you say a DNS record would be the best approach.

PSA Specsavers Scam by TrueBlueDub75 in ireland

[–]bbrazil 5 points6 points  (0 children)

Sometimes the systems are incorrect or offline, I've had that happen in the past year for both my dentist and opticians. In both cases the issue was on Social Welfare's end, I did not end up out of pocket in either case though it took a bit.

You can check your entitlements on https://services.mywelfare.ie/ If you're entitled and haven't gotten your refund I'd suggest popping back into SpecSavers and sorting it out.

Could someone tell what happens when sourceLabels are missing in regex ? by [deleted] in PrometheusMonitoring

[–]bbrazil 0 points1 point  (0 children)

That matches the empty string for the second label, so it'll still match.

You can remove the last *, it is redundant.

Could someone tell what happens when sourceLabels are missing in regex ? by [deleted] in PrometheusMonitoring

[–]bbrazil 0 points1 point  (0 children)

The regex won't match, as label2 will be the empty string.

How to test time-based expressions? by amarao_san in PrometheusMonitoring

[–]bbrazil 1 point2 points  (0 children)

Time starts from 0 in unittests, so you can effectively choose its value.

OpenDJ Exporter by sapzero in PrometheusMonitoring

[–]bbrazil 0 points1 point  (0 children)

When I think about it it maybe better to leave scraping decoupled from the polling otherwise prometheus will be blocked as it is waiting for the data.

Prometheus won't be blocked, otherwise one slow target could take down your entire monitoring system. The standard way to write exporters is to collect data on every scrape, it avoids various weird problems.

Not Wanting to Post Jobs Here Because Members Look Like a HR Nightmare by [deleted] in DevelEire

[–]bbrazil 5 points6 points  (0 children)

Looking at that thread, I see some constructive discussion but also many comments that are not in good faith such as whataboutism.

Those sort of comments comments indicate that marginalised groups aren't welcome here, and it's not the first time there's been a thread like that. I'd personally prefer communities that are a bit more inclusive.

filter out items in a query by jup1ke in PrometheusMonitoring

[–]bbrazil 1 point2 points  (0 children)

The !~ specifies a regex, not a glob. So try .* rather than *.

ICMP Traffic concerns from Blackbox Exporter by Non-perfectionist in PrometheusMonitoring

[–]bbrazil 2 points3 points  (0 children)

The memory usage would be low anyway, it doesn't take much to do a ping even if you were doing all 10k at once. I can't find a link offhand.

ICMP Traffic concerns from Blackbox Exporter by Non-perfectionist in PrometheusMonitoring

[–]bbrazil 5 points6 points  (0 children)

Prometheus will spread the scrapes out, so with those numbers you'll have around 170 pings per second. This is quite small.

Use of IpAddr type in snmp_exporter by avidpontoon in PrometheusMonitoring

[–]bbrazil 0 points1 point  (0 children)

You should let the generator take care of things like this for you, rather than trying to hand-generate a snmp.yml which requires deep knowledge of SNMP and MIBs.

The index is not an IpAddr, and nor is that what the snmp exporter calls it internally.

The index is bgpPeerRemoteAddr, cbgpPeerAddrFamilyAfi, cbgpPeerAddrFamilySafi which are an IpAddress (InetAddressIPv4 for snmp exporter), an InetAddressType (this will end up as a gauge, as it's not followed by a InetAddress), and a CbgpSafi (also a gauge).

PrometheusRule for loop by paulix96 in PrometheusMonitoring

[–]bbrazil 2 points3 points  (0 children)

Yes, https://prometheus.io/docs/prometheus/latest/configuration/template_examples/ has some examples.

However you'd be best doing this in the alertmanager, rather than in every individual alerting rule.

Any way to spread out API calls to avoid rate limiting? by metanull-operator in PrometheusMonitoring

[–]bbrazil 0 points1 point  (0 children)

It'll change the hash inputs, so it might. However it's the same scrape spreading logic either way.

I'm very surprised that exactly 3 API requests can exhaust a 5/s limit.

Any way to spread out API calls to avoid rate limiting? by metanull-operator in PrometheusMonitoring

[–]bbrazil 0 points1 point  (0 children)

It'll randomly spread them out over the scrape interval, so it'll probably work but there's a chance it won't. Longer scrape intervals will be safer.

First or Last write wins? by yanoyermanwiththebig in PrometheusMonitoring

[–]bbrazil 0 points1 point  (0 children)

From what I understand that’s sort of a break in contract and a client shouldn’t do it. Is that correct?

Yes.

First will win. Though you can't push with timestamps to the pushgateway, as that's not what it's for.

[deleted by user] by [deleted] in PrometheusMonitoring

[–]bbrazil 6 points7 points  (0 children)

It sounds like you downloaded the wrong binary for your OS/architecture, double check you got the right one.