remijouannet / graftorio2 Goto Github PK
View Code? Open in Web Editor NEW(fork of graftorio) factorio mod for creating grafana dashboard
License: MIT License
(fork of graftorio) factorio mod for creating grafana dashboard
License: MIT License
Is it possible to get all of the information that's available in the in-game power dashboard through grafana? For example, I see that I can get per entity type (e.g. 'radar', 'pumpjack') consumption stats, but do I detect an underpower situation? The in-game dashboard will show XW/YW (hopefully X=Y).
Similarly, I can see the power being produced on a per entity type (e.g. 'solar panel', 'steam turbine') but how do I detect if I'm getting close to not producing enough to satisfy demand? The in-game dashboard shows maximum production capacity for a given network in addition to how much is currently being used.
Rounding out what I see in the in-game dashboard but cannot find in the grafana metrics is accumulator charge statistics. I see how much power is being consumed/produced by them, but not charge over time.
Having these would be useful in preventing and detecting power issues. Thanks for everything so far!
Hello,
It would be very nice if I could export the signals of all circuit networks as Prometheus metrics. I don't know if maybe this is too much, looking at the code I thought that maybe in the same way that you get power, we might search for circuit connected entities. Do you think this is possible? If so, if you could give me a few pointers (I'm new to factorio modding) I could give it a try and get you a PR.
Thanks!
Hello again. :)
Would you have a look at this repository?
-> https://github.com/TheVirtualCrew/graftorio
There are a few more Prometheus metrics available that are quiet helpful.
for example:
And also a "better" README.MD and some example dashboards.
I currently try to get a few different dashboards working and would like to share them later.
ATM im struggling with some value mismatches between grafana and ingame metrics.
And:
one of your metric description is not correct:
factorio_logistic_network_available_construction_robots
the total number of construction robots in the network (idle and active + in roboports)
should be like that:
factorio_logistic_network_available_logistic_robots
the number of logistic robots available for a job
While watching my stats for module production, I noticed that the graphs showed the opposite of what was happening in game.
The Production graph is pulling from:
rate(factorio_item_production_output{force=~"${Force}",name=~"${Item}"}[$__rate_interval]) * ${TimeScale}
, however, it is clearly displaying the consumption statistic.
I just setup a server with no pausing simulation. Run in bacgroung even no players are connected.
But your mod create this issue when any client can join.
mod-graftorio2 was registered for the following events when the map was saved but has not re-registered them as a result of loading: Custom event (ID 251)
872.675 Error ClientMultiplayerManager.cpp:99: MultiplayerManager failed: "" + multiplayer.script-event-mismatch + "
In Mod Settings in client, I just set "server side saves only" but nothing changed.
Other mods can do it properly but that's not have that fancy dashboards and rate production.
When power pole get destroyed by biter or weapon and ghost entity is created, the ghost entity does not show previously existing connections of copper cable and thus not restoring them when pole is built again
Hey!
How do I automatically start the service in case a server had to reboot?
using a terminal, run docker-compose up inside the extracted directory
If i have a multiplayer server, will this mod sync to all players? Can I block that somehow? I'm not really sure if the instructions also work for multiplayer
I would like to have a graph on my power usage/consumption, is that possible?
Hello,
I do not found how to graph elecricity production/consumption, I using solar panel and want to check in grafana if everything goes right.
Is that me who do not find the good parameter, or do you need to update to add it ? (if update, I could try to help :))
When running this on a server it would be neat to be able to see the current amount of online players. sounds like it should be possible to get this from game.players?
Attached is the console log and the .yml file.
Was just wondering if the project is still active.
Hi,
I was wondering if you have any example for queries for creating dashboards. I have the data going into Grafana but cant work out how to graph how many sciences packs I am making per minute etc.
I know its not really about your mod and more about my ability to use grafana and prometheus but some examples would be awesome to help people along.
Great mod cheers.
While attempting to clone for my two pull requests, I discovered that the colon characters (:
) in several of the dashboard definitions file names are not allowed on windows. The result of this is that the clone succeeds, but the checkout fails - with git restore --staged .
one can "un-delete" the other files, but the only way I found to not include the fake deletion of these dashboard definitions in a commit was to work inside WSL (there at least git restore --staged config
worked to exclude the deletions from the commit, which I could then finish back under windows).
The clone-error for reference:
error: invalid path 'config/grafana/dashboards/Factorio/1.1 - Default: Electricity.json'
fatal: unable to checkout working tree
warning: Clone succeeded, but checkout failed.
You can inspect what was checked out with 'git status'
and retry with 'git restore --source=HEAD :/'
After that both git restore --source=HEAD :/
and git restore --staged .
printed
error: invalid path 'config/grafana/dashboards/Factorio/1.1 - Default: Electricity.json'
for each file with a colon in its name.
I just wanted to make you aware of this, either to rename the files or as documentation of the workaround for other contributors.
Hello everyone! Will this mod work on headless server based on Ubuntu? Or windows only?
Thanks in advance.
https://github.com/remijouannet/graftorio2/blob/master/control.lua#L31-L41 suggests there are a number of train related metrics, yet I can't find any in prometheus:
Mod version is 0.0.13, Factorio is current stable 1.1.30.
In factories that use a lot of trains, the size of game.prom will increase, causing the game to lag.
Can you add an option to disable train stats?
I'm not sure why, but sometimes the factorio_logistic_network_items
has plenty of stuff in it, but science packs stop being written out to game.prom
.
I don't know how to reproduce, I don't know how to trigger it, but I have millions of science packs in logistics chests, and none of them show up in game.prom
. They were working, then they weren't. ¯\_(ツ)_/¯
Hey ho,
Thanks for keeping this MOD alive!
But there is a issue with the default data source Scrape interval
.
data/prometheus_datasource.yml
apiVersion: 1
datasources:
- name: prometheus
[...]
url: http://prometheus:9090
timeInterval: 10
should look like this:
apiVersion: 1
datasources:
- name: prometheus
[...]
url: http://prometheus:9090
jsonData:
timeInterval: '10s'
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.