netprobe_lite icon indicating copy to clipboard operation
netprobe_lite copied to clipboard

Package display container separatly

Open cdix opened this issue 1 year ago • 4 comments

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.

cdix avatar Apr 27 '24 03:04 cdix

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.

Jeppedy avatar Apr 27 '24 05:04 Jeppedy

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.

plaintextpackets avatar Apr 27 '24 14:04 plaintextpackets

Ok I’ll try that. Grafana see seems to make a substantial load on the pi, which is fine when I’m reviewing the data. I only need to look at it now and again so this should help.Thanks.“You can’t look down on someone without taking your eyes off God” Andy OdenhalRegards,Jay ♱On Apr 27, 2024, at 1:13 AM, Jeppedy @.***> wrote: 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.

—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you authored the thread.Message ID: @.***>

cdix avatar Apr 28 '24 04:04 cdix

Any luck?

plaintextpackets avatar Apr 28 '24 16:04 plaintextpackets

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>"
      }
    

MJ12358 avatar Apr 29 '24 18:04 MJ12358

Can confirm - works.

Thanks for the help - I’m only a casual Docker user so I didn’t want to jump in unaided

On Apr 29, 2024, at 2:29 PM, MJ12358 @.***> wrote:

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:

:9090 Everything else default (No authentication, POST etc) Import Grafana dashboard config:

Download from repo https://github.com/plaintextpackets/netprobe_lite/blob/master/config/grafana/dashboards/netprobe.json Modify data source uid (this occurs some 23 times in that file): "datasource": { "type": "prometheus", "uid": "" } — Reply to this email directly, view it on GitHub https://github.com/plaintextpackets/netprobe_lite/issues/12#issuecomment-2083387618, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABBK3WR3J72VFTKV653PANLY72GO5AVCNFSM6AAAAABG3XVVZWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAOBTGM4DONRRHA. You are receiving this because you authored the thread.

cdix avatar Apr 29 '24 21:04 cdix

Awesome - will close this one for now

plaintextpackets avatar Apr 30 '24 01:04 plaintextpackets