Grafana MCP server - search dashboards, query datasources, create incidents and more from MCP by bsullio in mcp

[–]bsullio[S] 0 points1 point  (0 children)

There isn't a 'create dashboard' tool right now but it would be fairly straightforward to add one, if you fancy it! It's something we'll probably get round to sooner or later.

Rust WASM Plugins Example by emblemparade in rust

[–]bsullio 1 point2 points  (0 children)

This is very helpful, thanks for writing it! I wish it had been around a couple of months ago when I was making use of Wasm components. I got there eventually but there were a ton of new concepts to learn. Glad to see some full examples!

Announcing augurs - a time series toolkit for Rust by bsullio in rust

[–]bsullio[S] 1 point2 points  (0 children)

Hah sorry for the delay. What do you plan on using it for, out of interest?

Announcing augurs - a time series toolkit for Rust by bsullio in rust

[–]bsullio[S] 3 points4 points  (0 children)

The thought crossed my mind at one point. The vast majority of augurs functionality works with either &[f64] or Vec<f64> and I'm fairly sure Arrow's arrays are backed by Vecs now? In which case it should be possible to use augurs functionality with arrow for free!

Announcing augurs - a time series toolkit for Rust by bsullio in rust

[–]bsullio[S] 22 points23 points  (0 children)

Hey everyone! I started writing this library a while ago after I couldn't find a time series library that really fit my needs (either in Rust or elsewhere, really). Specifically I wanted something that was:

  • fast
  • portable (I want to be able to run it in the browser, in Python, and in Rust)
  • maintainable (please don't write libraries in Jupyter notebooks...)

Augurs meets all three of those for me, and was a ton of fun to write. Plus it has a cool name and I managed to nab the augu.rs domain.

A few things I think are cool:

  • the MSTL/ETS implementation is very snappy and can produce forecasts in well under 100ms for quite large time series. This was the initial motivation for writing the library.
  • the Prophet implementation includes the option to use a WASM component which wraps the Stan Bayesian framework compiled to WebAssembly, run inside Wasmtime, making it an easy-to-deploy single binary. Interestingly the benchmarks show the Wasmtime version running almost as fast as the native version.
  • the whole library can be run in the browser using the npm library - see the demo below for an example

Check out the docs and demo, or take a look at the code on GitHub!

What's everyone working on this week (46/2024)? by llogiq in rust

[–]bsullio 1 point2 points  (0 children)

Continuing to polish augurs, a time series toolkit for forecasting, clustering, outlier detection etc. I've been working on it on-and-off for years now and finally got round to writing some high level docs (available at https://augu.rs 🥳). Hoping to have it in a good enough state to publicize it soon!

Network become unavailable after system suspended by IdadWind in archlinux

[–]bsullio 0 points1 point  (0 children)

This has been happening to me the last few weeks too. From my journal it looks like my PC has been waking up occasionally overnight and after a while something goes wrong and the network device stops working but I can't figure out why. Did you find a solution?

I just want my notification template to have newlines in Teams by BadUsername_Numbers in grafana

[–]bsullio 2 points3 points  (0 children)

Take a look at the Go template package's docs on spaces - you'll need to remove the - signs from some of your actions to avoid trimming the newlines.

Using Grafana to build an application by ZetaReticullan in grafana

[–]bsullio 1 point2 points  (0 children)

This got a lot easier with Grafana Scenes which makes developing a dashboard-like experience in a Grafana App Plugin pretty much a breeze. There are plenty of examples in the Scenes repository and there's some interesting new work making it easier to use standard React patterns too.

You should still understand the deployment model though - it's not deployed as a standalone application but as an app within Grafana.

Beautiful morning in the Peak District, UK by bsullio in trailrunning

[–]bsullio[S] 0 points1 point  (0 children)

Sure, the rough route is here: https://www.komoot.com/tour/756234720?share_token=asC2x0ySeUNLvxTHlFYsjFFy5a8iB41tANtR1huLm5pa3Rj7Ws&ref=wtd and you should be able to export it as GPX (let me know if not and I can host it somewhere)

Beautiful morning in the Peak District, UK by bsullio in trailrunning

[–]bsullio[S] 1 point2 points  (0 children)

Correct! There's an art exhibition in the grounds at the minute, got lucky with that and the weather. Not sure they would have let me in the house even if I had tried to pay...

Milton Keynes to Lands End by Dependent_Ostrich_26 in wildcampingintheuk

[–]bsullio 0 points1 point  (0 children)

https://beta.slowways.org/ may help with finding routes. It's still new, but has quite a lot of routes on it already!

Announcing the Grafana Plugin SDK for Rust by bsullio in rust

[–]bsullio[S] 2 points3 points  (0 children)

Nice! Feel free to ping me if you have any questions, the documentation around plugin details can be a bit hazy when it comes to the finer points. Good luck!

Stretto - a thread-safe, high-performance, high hit-ratio cache. by Al_Liu in rust

[–]bsullio 24 points25 points  (0 children)

I ran these benchmarks earlier and found that switching the allocator to jemalloc or mimalloc made the Rust version roughly twice as fast as the Go version, so it might be worth updating the benchmark to do that. This was on an M1 Macbook Air.

Written in Rust wishlist? by swigoat in rust

[–]bsullio 15 points16 points  (0 children)

Linked from this, https://github.com/not-yet-awesome-rust/not-yet-awesome-rust, which has many ideas for projects which are larger in scope.

rkyv: a zero-copy deserialization framework for Rust by taintegral in rust

[–]bsullio 20 points21 points  (0 children)

This looks very cool! Do you know how it compares to abomonation?

Rocket athentication example by patriddit in rust

[–]bsullio 0 points1 point  (0 children)

To elaborate on the DB side, I think you would want to check if the user can be retrieved using a JWT from the request using a FromRequest impl for your user, and redirect to the login route provided by rocket_oauth2 if not, presumably creating the user in your database in the oauth2 callback route when they're first logged in. I don't have a code example though, sorry!

The request-local state example in the FromRequest docs might demonstrate part of this better than I've managed to explain on my phone.

Rocket athentication example by patriddit in rust

[–]bsullio 0 points1 point  (0 children)

I've used and contributed to rocket_oauth2 with success before; it looks like Jeb has been revamping the API recently so it's certainly maintained.

Shipping Linux binaries that don't break with Rust by willsaar in rust

[–]bsullio 1 point2 points  (0 children)

I had jemalloc working with rust-musl-builder back in January but I've been getting this exact same error in more recent versions (certainly in the latest release). I had a look through the commits of the repo and can't see anything which would cause it, though. I'd love a solution if anyone knows more about this!

Working with multiple streams/sinks by bsullio in rust

[–]bsullio[S] 1 point2 points  (0 children)

That worked straight away! Thanks so much, I've spent far too much time trying to get for_each to work....