this post was submitted on 26 Jan 2025
124 points (97.0% liked)

Linux

49393 readers
1589 users here now

From Wikipedia, the free encyclopedia

Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).

Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word "Linux" in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.

Rules

Related Communities

Community icon by Alpár-Etele Méder, licensed under CC BY 3.0

founded 5 years ago
MODERATORS
 

I’m hoping to find something that:

  • has a nice dashboard
  • is quick and simple to install
  • is very lightweight and unobtrusive
  • can send alerts via http request
you are viewing a single comment's thread
view the rest of the comments
[–] RegalPotoo@lemmy.world 10 points 4 days ago (2 children)
  • Base ansible role installs Prometheus node exporter, configured with the text file collector
  • VM automations push DNS records so that the Prometheus dns-sd automatically discovers them
  • Ansible roles for add Cron jobs that generate metrics for specific systems and dump them for the text file collector
  • Grafana for dashboards
  • Karma as a UI in front of Prometheus alert manager
[–] Toribor@corndog.social 1 points 3 days ago

Any chance you'd be willing to share playbooks or point me toward any resources you used?

I use Ansible to manage config across all my workstations/servers but I haven't gotten around to automating log shipping yet or aggregating system metrics.

[–] tetris11@lemmy.ml 1 points 4 days ago (1 children)

Cron jobs that generate metrics for specific systems and dump them for the text file collector

Details please

[–] RegalPotoo@lemmy.world 2 points 4 days ago
  • https://github.com/prometheus/node_exporter?tab=readme-ov-file#textfile-collector - which makes node exporter watch a specific directory for files that contain metrics, then re-export them back to the central Prometheus server
  • Some systems have their own metrics endpoints - instead of getting Prometheus to scrape these directly I set up a Cron job to curl these into files for node exporter - this means I don't need extra config in Prometheus to find the endpoints, and don't need to mess with firewall rules
  • Other systems don't directly expose metrics in a format Prometheus can use - in this case I will write/find a script that can do the conversation, then either set it up to write the metrics file directly and run it on a Cron, or run it as a service and another Cron job to do the scrape