plaintextpackets/netprobe_lite

Package display container separatly

cdix opened this issue · 7 comments

cdix commented

Is there a way to put the display (graphics) container in a separate compose bundle. That way I can run the probe in background without the overhead of the graphics. Then can start and stop the graphics to view results. I’m running this on a pi4/ubuntu server and need to conserve resources.

I don't see why there would be an issue doing that. Just create a second compose, clean up the two separate compose files so each has just what you need, declare the network as External in each.

You can, you'd need to:

  1. Disable grafana in compose.yml (just comment out the block)
  2. In the prometheus config in compose.yml, you need to add a port mapping like Grafana has, e.g.:
      - '3001:3000'

Then the app will be running and storing metrics in prometheus. You can then connect to the data source on the port you mapped using an external Grafana or other visualization tool.

cdix commented

Any luck?

Working great with the following:

  • Comment out Grafana in compose.yml

  • Add ports to Prometheus in compose.yml:

ports:
    - '9090:9090'
  • Add Prometheus data source to Grafana:

    • <your-netprobe-prometheus-ip-address>:9090
    • Everything else default (No authentication, POST etc)
  • Import Grafana dashboard:

      "datasource": {
        "type": "prometheus",
        "uid": "<your-prometheus-data-source-id>"
      }
cdix commented

Awesome - will close this one for now