Package display container separatly
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:
- Disable grafana in compose.yml (just comment out the block)
- 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.
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: @.***>
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:
- Download from repo
- Modify data source uid (this occurs some 23 times in that file):
"datasource": { "type": "prometheus", "uid": "<your-prometheus-data-source-id>" }
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.
Awesome - will close this one for now