• 0 Posts
  • 12 Comments
Joined 2 years ago
cake
Cake day: June 19th, 2023

help-circle


    • 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




  • Depends on what you need:

    • As cheap as possible, but actually want a VM: OCI free tier will be way bigger than you will probably need
    • Happy paying money but still want to learn about Linux things: I’ve had good experiences with Scaleway
    • I just want something I can set up and not think about: don’t use a VPS. Architect your site as a pure-static site, stick it in an S3 bucket. You’ll probably be within the free tier unless you do absolutely bonkers traffic, and once it’s running you can leave it alone for literal years without worrying about patches or upgrades