waku-org / nwaku-compose

Deployment docker-compose files to deploy an nwaku node
13 stars 19 forks source link

Add row count and database size panels #33

Closed fryorcraken closed 8 months ago

fryorcraken commented 8 months ago

Adding some postgres related panels using Prometheus source.

image

I will add panels with PostgreSQL source in follow-up PR.

fryorcraken commented 8 months ago

The one by content topic does not work. will need to remove before merging

fryorcraken commented 8 months ago

Major fail on my side I think, I added panel to my "local library" before adding them to the dashboard and it seems after a restart they disappeared from the library and the dashboard shows "not found". Trying again now..

fryorcraken commented 8 months ago

exposing port 5432 on postgres container was removed with this PR https://github.com/waku-org/nwaku-compose/commit/20f91f42428e3e91ab903aee561f2c1e10ace770 by @vpavlin.

Which means the panel I added won't work as Grafana needs to access postgres to generate them.

  1. Can I revert this specific line?
  2. Is there a way to expose a container's port to other containers but not host network?
fryorcraken commented 8 months ago
2. Is there a way to expose a container's port to other containers but not host network?

Using expose

alrevuelta commented 8 months ago

Can I revert this specific line?

As long as its exposed locally 127.0.0.1 I'm fine with it unless someone else has other concerns.