graftorio icon indicating copy to clipboard operation
graftorio copied to clipboard

Add support/instructions for a remote database/grafana instance

Open zacps opened this issue 6 years ago • 1 comments

I run a grafana instance on another machine and would like to be able to send stats to that without hosting another database/grafana instance locally.

zacps avatar Aug 21 '19 07:08 zacps

Not sure this is still relevant but anyway.

The docker compose file declares a local directory must be mounted to the docker "service" called Exporter. An OKish way to do this is to mount the path on the remote machine. Let's say they're both running Windows. The Factorio mod for this writes the metric data to the directory ${APPDATA}\Factorio\script-output\graftorio

You could share that directory in Windows and then mount it as a drive in Windows on the other machine - X drive for example.

Then run docker compose you will have to have changed the mount path in the docker-compose file from

    volumes:
      - ${APPDATA}\Factorio\script-output\graftorio:/textfiles # Windows
    volumes:
      - X:\:/textfiles # Windows

Shout if that doesn't make sense.

just1689 avatar Feb 25 '20 07:02 just1689