Skip to content

Commit

Permalink
rename script-output subfolder
Browse files Browse the repository at this point in the history
  • Loading branch information
afex committed May 2, 2018
1 parent 12ae707 commit 257f34d
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 4 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
data/grafana
data/prometheus
*.zip
2 changes: 1 addition & 1 deletion control.lua
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,6 @@ script.on_event(defines.events.on_tick, function(event)
end
end

game.write_file("metrics/game.prom", prometheus.collect(), false)
game.write_file("graftorio/game.prom", prometheus.collect(), false)
end
end)
5 changes: 3 additions & 2 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,9 @@ services:
image: prom/node-exporter
command: --collector.textfile.directory=/textfiles
volumes:
- ${APPDATA}\Factorio\script-output\metrics:/textfiles # Windows
# - ~/Library/Application Support/factorio/script-output/metrics/:/textfiles # OS X
- ${APPDATA}\Factorio\script-output\graftorio:/textfiles # Windows
# - ~/Library/Application Support/factorio/script-output/graftorio/:/textfiles # OS X
# - /opt/factorio/script-output/graftorio:/textfiles # Linux
ports:
- 9100
prometheus:
Expand Down
2 changes: 1 addition & 1 deletion info.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "graftorio",
"version": "0.0.1",
"version": "0.0.2",
"title": "graftorio",
"author": "afex",
"description": "visualize metrics from your factorio game in grafana",
Expand Down

0 comments on commit 257f34d

Please sign in to comment.