Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    Prometheus/Node_Exporter On PFSense

    Scheduled Pinned Locked Moved Problems Installing or Upgrading pfSense Software
    13 Posts 9 Posters 9.8k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • C
      Cmdrd
      last edited by

      I'm wondering if anyone has managed to get the Node_Exporter module installed and working on PFSense in order to monitor the system from Prometheus. It looks like it's in the Ports repo of FreeBSD, but that's about it.

      Thanks!

      1 Reply Last reply Reply Quote 0
      • N
        nikkon
        last edited by

        I wonder the same.
        I'll try to make an install and see if works and what additional pkg's do we need

        pfsense 2.3.4 on Supermicro A1SRi-2758F + 8GB ECC + SSD

        Happy PfSense user :)

        1 Reply Last reply Reply Quote 0
        • P
          PiBa
          last edited by

          I did make a little 'concept' a while back. That didnt have much requirements, and worked at least a bit.. ( http://piba-nl.mooo.com/files/  install the 2 relevant files with 'pkg add' if your interested..)

          But as i don't use Prometheus, and didn't know the proper 'requirements' for a good full purpose prometheus package. Like should it have several of the prometheus modules like the haproxy one included.?. Should it have a prometheus relay to securely connect to a remote server.. Thinking about such things and all possible other modules and their requirements, i kinda dropped the idea to continue with it.. If anyone would like to continue with it i can put the sources of my initial concept package online in my git repository.

          1 Reply Last reply Reply Quote 0
          • J
            jdokoupil
            last edited by

            Do you still have those concept files? The link seems to be dead. I'm interested in picking this up and working on it.

            1 Reply Last reply Reply Quote 0
            • P
              PiBa
              last edited by

              @jdokoupil, link is available again.. The webserver its running on needs a kick in its but from time to time.. And isnt used for much else so i pay little/no attention to it running properly..

              1 Reply Last reply Reply Quote 0
              • J
                jdokoupil
                last edited by

                Thanks, got the files. I'll post some results if I find something.

                1 Reply Last reply Reply Quote 0
                • C
                  ChrisS
                  last edited by

                  Hi,

                  I build an pfsense (2.4 latest) setup and I'm trying to monitor it via prometheus.
                  The installation of the freebsd 11 port via pkg add works fine. Service starts and some metrics are exposed.

                  Basic Metrics like: CPU Cores, CPU Utiliziation , Memory , Disk I/O seem not to work.
                  The collectors are enabled.

                  I tried to mount /proc manually, but cpuinfo is not available, like on linux systems.

                  Are there some hints what is going wrong there?

                  1 Reply Last reply Reply Quote 0
                  • cukalC
                    cukal
                    last edited by

                    Yes, I got it running with Prometheus & Grafana outputting metrics like https://pastebin.com/AaLfyNUa
                    What do you see in the /metric page of the node_exporter?

                    1 Reply Last reply Reply Quote 0
                    • L
                      lancetriusis
                      last edited by

                      @PiBa said in Prometheus/Node_Exporter On PFSense:

                      http://piba-nl.mooo.com/files/

                      Hi @PiBa @cukal ,

                      Any chance you can re-enable that server or have another link where I could download that node_exporter for Pfsense ?

                      Thanks

                      1 Reply Last reply Reply Quote 0
                      • JeGrJ
                        JeGr LAYER 8 Moderator
                        last edited by

                        Don't bother, it will be an official package of the default repository on pfSense 2.5:

                        b99c7981-e3ff-4d54-a3eb-9d5920bc7be6-image.png

                        No need to manually install it, package manager can do it for ya. If you don't have an extremely complicated setup or the need for it to run 24/7 you could upgrade to 2.5-devel and try it out yourself :)

                        Don't forget to upvote 👍 those who kindly offered their time and brainpower to help you!

                        If you're interested, I'm available to discuss details of German-speaking paid support (for companies) if needed.

                        1 Reply Last reply Reply Quote 1
                        • L
                          lancetriusis
                          last edited by lancetriusis

                          Hi @JeGr ,

                          Thanks for a quick response. Do you know when its due to become part of official package on pfSense 2.5 ? I may not be able to upgrade pfSense version until its official and not in development.

                          1 Reply Last reply Reply Quote 0
                          • JeGrJ
                            JeGr LAYER 8 Moderator
                            last edited by

                            That screen is from my home-lab firewall running 2.5-snapshots and the package is already there so I'm assuming it will be there with 2.5-final as well. I don't know if it has any hard dependencies blocking it porting backwards to 2.4.x though as it's using python3.7. But I can remember the Telegraf package going a slightly similar route first popping up in devel-builds only and then being back-ported to stable as well. Perhaps @jimp knows who is in charge of the package and if there are plans for it to be available in 2.4.x, too.

                            Don't forget to upvote 👍 those who kindly offered their time and brainpower to help you!

                            If you're interested, I'm available to discuss details of German-speaking paid support (for companies) if needed.

                            1 Reply Last reply Reply Quote 1
                            • C
                              cgill2777
                              last edited by

                              Has anybody gotten node exporter to work on 2.4.5 and have steps? Would love to scrape pfsense with prometheus. Thx!

                              1 Reply Last reply Reply Quote 0
                              • First post
                                Last post
                              Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.