https://github.com/elldritch/frpc
Export circuit network values from Factorio to Grafana.
https://github.com/elldritch/frpc
factorio monitoring
Last synced: 6 months ago
JSON representation
Export circuit network values from Factorio to Grafana.
- Host: GitHub
- URL: https://github.com/elldritch/frpc
- Owner: elldritch
- Created: 2020-01-20T01:00:49.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2021-05-03T08:47:54.000Z (about 5 years ago)
- Last Synced: 2025-06-01T00:44:21.209Z (about 1 year ago)
- Topics: factorio, monitoring
- Language: Go
- Homepage:
- Size: 72.3 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 9
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# fRPC

fRPC is a mod that adds RPC capabilities to Factorio. It provides two new buildings that interact with the circuit network:
- _Sensors_ read values from the circuit network and expose them as metrics on the fRPC HTTP server.
- _Receivers_ broadcast values onto the circuit network from inputs provided to routes on the fRPC HTTP server.
```
sudo docker build -t frpc-factorio:0.0.1 .
```
```
sudo docker run \
-d -it \
-p 34197:34197/udp \
-p 27015:27015/tcp \
-p 8000:8000 \
--mount type=bind,source="$(pwd)"/data/map-gen-settings.json,target=/factorio/config/map-gen-settings.json \
--mount type=bind,source="$(pwd)"/data/map-settings.json,target=/factorio/config/map-settings.json \
--mount type=bind,source="$(pwd)"/data/server-settings.json,target=/factorio/config/server-settings.json \
-v "$(pwd)"/saves:/factorio/saves \
-e ENABLE_SERVER_LOAD_LATEST=false \
-e SAVE_NAME=name-of-your-save \
--name frpc-factorio \
frpc-factorio:0.0.1
```
```
docker run \
-v /tmp/agent:/etc/agent \
-v $(pwd)/path/to/agent/config.yml:/etc/agent-config/agent.yaml \
--entrypoint "/bin/agent -config.file=/etc/agent-config/agent.yaml -prometheus.wal-directory=/etc/agent/data" \
grafana/agent:v0.13.1
```