Homelab Monitoring Made Easy - Part 2: Creating Dashboards For Docker, Crowdsec, and Sophos XG

Поделиться
HTML-код
  • Опубликовано: 19 окт 2024

Комментарии • 23

  • @HunterGeophysicsAustralia
    @HunterGeophysicsAustralia 2 месяца назад +1

    Yet another brilliant video, thanks Jim! I note there are a lot of possible data sources for Grafana, including Google Sheets, MySQL, and MQTT. I'm going to try adding my existing Sheets, MySQL, and MQTT datasets into Grafana. Should make things a lot easier to monitor, having it all in one place.

    • @Jims-Garage
      @Jims-Garage  2 месяца назад

      @@HunterGeophysicsAustralia thanks 👍 pretty much the only limitations of grafana are your imagination. It's an awesome product.

    • @HunterGeophysicsAustralia
      @HunterGeophysicsAustralia 2 месяца назад

      @@Jims-Garage amusingly, I couldn’t get any of them to work today, for various reasons (Sheets didn’t seem worth the hassle. MySQL - couldn’t figure out how to create a new user for my phpMyAdmin instance (which a colleague set up years ago), and also the DB is old and no longer being used, so again, not worth the effort. MQTT - couldn’t figure out what topics are what in Home Assistant). I’ll figure it out eventually… 😊

  • @Coltography
    @Coltography 5 месяцев назад +1

    Thank you for this. Surprised how easy it was to get crowdsec into grafana (total noob here) and hoping to make it more animated/visually appealing for a 24/7 dashboard screen im setting up

    • @Jims-Garage
      @Jims-Garage  5 месяцев назад +1

      That's great to hear

  • @rodolfoperez4156
    @rodolfoperez4156 Месяц назад +1

    Great video as always. Happen to have setup grafana oncall? Would love it for a part 3 😃

    • @Jims-Garage
      @Jims-Garage  Месяц назад

      Thanks. I haven't looked into that. Something to consider for future.

  • @woreibi
    @woreibi Год назад +1

    Great 2nd part video Jim. I'm wondering if crowedsec docker container comes bundled with Prometheus agent ? By opening port 6060 on it and be able to pull all that info a Prometheus agent must be listening on that port inside crowedsec container I suppose.
    Amazing work as always.

    • @Jims-Garage
      @Jims-Garage  Год назад

      Thanks! Not quite what's happening, let me explain. In the video we configure a Prometheus scrape_config, that's the clue. That is basically turning Prometheus into Telegraf. Prometheus is accessing the metrics API on crowdsec and scraping the data into its database.

  • @issamzgybi9761
    @issamzgybi9761 2 месяца назад +1

    Hello Jim, I hope you're doing well. I was wondering if you could assist me with something. I have a Sophos firewall using the home version, and I'm looking to monitor it with Grafana. I don't have much experience with Docker, but I do have a Proxmox server, and I would prefer to set everything up on a virtual machine. Could you please guide me on how to do this?
    Thank you so much for the video-you're amazing!

    • @Jims-Garage
      @Jims-Garage  2 месяца назад

      Thanks. Sure, you need to enable SMNP (simple message network protocol) in Sophos. Then point your scraper of choice (e.g., Telegraf) to point at the Sophos endpoint. From there you should have all of the variables you need to create a grafana dashboard.

  • @simongajdosik5105
    @simongajdosik5105 9 месяцев назад +1

    Awesome video as always, but I have question regarding Crowdsec. In the prometheus config there is port 6060 for CS. Crowdsec api is running on 8080 by default, right? Tried it with 8080 and 6060 with docker ip, public ip and nothing worked. Would you mind pointing me please, how should I proceed further? Thank you very much and much appreciate your answer!

    • @Jims-Garage
      @Jims-Garage  9 месяцев назад

      Create a Discord ticket if you can and paste all of the configs, it should hopefully be a simple port conflict that can be resolved.

  • @kevinwakhisi7001
    @kevinwakhisi7001 Год назад +1

    I have tried fixing an issue where telegraf does not permissions ...did it for a long time but fixed it your Tuts are awesome and cheers

    • @Jims-Garage
      @Jims-Garage  Год назад

      Thanks, nice one 😁

    • @kevinwakhisi7001
      @kevinwakhisi7001 11 месяцев назад +1

      @@Jims-Garage Do you have Traefik Dashboard setup

    • @Jims-Garage
      @Jims-Garage  11 месяцев назад

      @@kevinwakhisi7001 yes, all of my videos show how to enable the Traefik dashboard (docker and kubernetes)

    • @hughboi5794
      @hughboi5794 11 месяцев назад

      I'm also having issues with telegraf not having permissions for docker socket. How did you fix it?

    • @ulfbackman7501
      @ulfbackman7501 8 месяцев назад

      I ran this: "stat -c '%g' /var/run/docker.sock" and replaced that GID in the composefile under telegraf: "user: telegraf:995" @@hughboi5794

  • @andresrevilla7932
    @andresrevilla7932 9 месяцев назад

    Hi .. Thanks for the great video .. I am stuck .😞 on the crowdsec to prometheus config .. the line - targets: ["192.168.7.114:6060"] .. I change the ip with my server local ip .. no luck .
    I have tested as in your video, that i get stuff from myip:6060/metrics .. but when using it on the prometheus config i get state DOWN ... I think the problem could be that networks are on different subnets ... ? My crowdsec is on the proxy network and the monitor is on the monitor-network.... But it should work with my local server internal address .. and is not working ..
    Amazing stuff and one of the most complete tutorials .. You're great .. thanks...

    • @HunterGeophysicsAustralia
      @HunterGeophysicsAustralia 2 месяца назад

      Did you remember to add port 6060 to the Crowdsec docker-compose file and reload that container?