Register for the iXsystems Community to get an ad-free experience and exclusive discounts in our eBay Store.

Prometheus on SCALE?

SuperQ

Neophyte
Joined
Mar 29, 2021
Messages
6
Hey all, I'm a Prometheus developer, and I've been following this project for a little while. I finally got some time to setup a test system.

I saw that the system currently uses collectd to manage metric data storage. I was wondering if there would be any interest in using Prometheus as part of the SCALE setup?

This would fit in nicely, as it's the most common monitoring system used on Kubernetes. All of the Kubernetes components implement Prometheus metrics endpoints, so it would be a natural fit for SCALE.
 

Kris Moore

SVP of Engineering
Administrator
Moderator
iXsystems
Joined
Nov 12, 2015
Messages
804
@SuperQ - That could indeed be interesting. Would Prometheus need to be loaded into the base system somehow, or can it be deployed containerized in some fashion?
 

ornias

Neophyte Sage
Joined
Mar 6, 2020
Messages
1,461
@SuperQ Good question indeed...

For TrueCharts, Prometheus support is planned for 21.06 (aka: I'm going to start working on it the comming month).
This would include metrics exports for quite a few of our apps :)

That being said: I totally forgot to document it for 21.06 >.<

@Kris Moore Prometheus works fine being containerised, it's used like that quite often ;-)

---

Edit:

Documented the current TrueCharts goals related to Prometheus and metrics in general:
 
Last edited:

SuperQ

Neophyte
Joined
Mar 29, 2021
Messages
6
Containerized or not, either works perfectly well.

Prometheus itself will need a persistent volume somewhere, as it needs to store the time-series data (like the collectd RRD does).

The only thing that I don't recommend shipping as a container is the node_exporter. It's far easier to package as a normal systemd unit service.
 

ornias

Neophyte Sage
Joined
Mar 6, 2020
Messages
1,461
@SuperQ Agreed on the adding the ability to export node information to Prometheus.
You could either add it yourself in a PR or open a Jira suggestion for that ^^
 

SuperQ

Neophyte
Joined
Mar 29, 2021
Messages
6
Sure, I can open a PR. What would be the right place to open one?
 

ornias

Neophyte Sage
Joined
Mar 6, 2020
Messages
1,461
truenas/webui is for the webui (if it requires any form of user interaction to add, thats where you can add the UI element)
truenas/middleware is for the middleware and configuration (so this repo includes some setup scripting)
truenas/scale-build contains the install/update media (including where you can define packages to install during setup)
 

SuperQ

Neophyte
Joined
Mar 29, 2021
Messages
6
Thanks. I've submitted the first PR to scale-build to add the package. I'll look into the middleware/webui next to see how difficult it will be to have it update the defaults file and trigger service restarts.
 

ornias

Neophyte Sage
Joined
Mar 6, 2020
Messages
1,461
Thanks. I've submitted the first PR to scale-build to add the package. I'll look into the middleware/webui next to see how difficult it will be to have it update the defaults file and trigger service restarts.
Awesome to see people put their time where their mouth is! :D
I've put some review feedback in for you :)
 

ronnok

Newbie
Joined
Nov 24, 2021
Messages
1
I see a PR go merged into scale-build. But I'm not seeing anything for the UI or any documentation on how to use this functionality. Any references would be appreciated.
 

StavrosMadK

Member
Joined
Dec 26, 2020
Messages
128
I see a PR go merged into scale-build. But I'm not seeing anything for the UI or any documentation on how to use this functionality. Any references would be appreciated.
The only PR I can find in scale-build is `Closed` and not `Merged`. Also there is info inside for the reason it did close and not merged :)

If there is still another PR that I'm missing I'd like to see it!
 

truecharts

Member
Joined
Aug 19, 2021
Messages
150
@SuperQ We just released our first effort at a Prometheus App for TrueNAS SCALE.

Node Exporter will be added next as well :smile:
 
Top