Antolius

@antolius
200 Followers
255 Following
1.6K Posts

Developer, open-source enthusiast, sci-fi fan, all-around geek.

#sff #scifi #dev #sre #java #vala #foss #linux #ttrpg #dnd #gemini #web0 #fedi22

Pronounshe/him
Gemini podgemini://josipantolis.from.hr
GitHubhttps://github.com/Antolius
BookWyrmhttps://bookwyrm.social/user/Antolius

@jaredwhite this is frustrating, yes. But it is also why documents such as The Stallman report https://stallman-report.org/ are so valuable. It becomes the default answer to all such questions, regardless if they are in good faith or not. We can just answer and move on.

I'm not beep enough in the ruby community to know what would be the best version of such a document for the "3 letter acronym asshole of the hour" though.

The Stallman report

October 14th, 2024 Richard Stallman (aka “RMS”) is the founder of GNU and the Free Software Foundation and present-day voting member of the Free Software Foundation (FSF) board of directors and “Chief GNUisance” of the GNU project. He is responsible for innumerable contributions to the free software movement, setting its guiding principles, organizing political action, and directly contributing to a flourishing free software ecosystem. The majority of Stallman’s political activity has been of priceless value to society at large.

The Stallman report
I tooted long enough to see myself become the villain.
What a day to discover I'm out of coffee. 😣

@benhamill Nice!

You got me thinking, and looks like typing !mdn: 502 also works, provided one is using #DuckDuckGo as default search engine. I did not know this, and now I can see myself using this daily!

@jaredwhite it is kinda true. I'm going to ad-block it either way. 🙈

The inevitability narative is the questionable part, of course.

Excited for the #lunarEclipse this evening. I wounded what part of fediverse will get to see it. 🤔

@jake4480 in the right chat group 🤔

You might be onto something. 😅

Is it a sweet spot or a sweat spot? It's choices like this that keep me up at night, & in a perpetual "typing" status in chat apps while I maniacally double check my spelling against a dictionary.
@thisismissem I adapter the use-case a little bit to the data that's available in the demo.promlabs.com site. In your case the host part would be the same, but label names might be different. Additionally, in this example that value of the up metric is 1 so I could multiply it with the demo_num_cpus to get just the second metric's value. In real world case this might be different too.

@thisismissem Depending on what you need label_replace could help. e.g. given 2 metrics:

up{instance="demo-service-0:10000"} = 1
demo_num_cpus{instance="demo-service-1:10001"} = 4

you can do:

label_replace(up{instance="demo-service-0:10000"}, "instance", "$1-1:10001", "instance", "(.*)-0:10000") * on (instance) demo_num_cpus

and get out:

{instance="demo-service-1:10001"} = 4

Example on promlabs demo site:

https://demo.promlabs.com/query?g0.expr=label_replace%28up%7Binstance%3D%22demo-service-0%3A10000%22%7D%2C+%22instance%22%2C+%22%241-1%3A10001%22%2C+%22instance%22%2C+%22%28.*%29-0%3A10000%22%29+*+on+%28instance%29+demo_num_cpus&g0.show_tree=0&g0.tab=table&g0.range_input=1h&g0.res_type=auto&g0.res_density=medium&g0.display_mode=lines&g0.show_exemplars=0

Prometheus Time Series Collection and Processing Server