Giter Club home page Giter Club logo

graftorio2's People

Contributors

afex avatar aritas1 avatar formattoday avatar ipatalas avatar kariton avatar marimelon avatar quit avatar remijouannet avatar roidelapluie avatar swantzter avatar trigrab avatar zincfox avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

graftorio2's Issues

Refined power metrics

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!

Exporting signals from circuit networks

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!

merge improvements and new metrics from another ``graftorio`` fork

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:

  • factorio_evolution
  • factorio_mods
  • factorio_seed
  • factorio_research_queue

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

Production/Consumption Data inverted - 1.2 - Default: Items - Factorio

While watching my stats for module production, I noticed that the graphs showed the opposite of what was happening in game.

image
image

The Production graph is pulling from:
image
rate(factorio_item_production_output{force=~"${Force}",name=~"${Item}"}[$__rate_interval]) * ${TimeScale}, however, it is clearly displaying the consumption statistic.

Multiplayer Mode

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.

Automaticly run on restart

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

How does this work on servers?

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

Electricity production/consumption

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 :))

enhancment: player count

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?

Sample dashboards

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.

Cannot checkout repository on windows

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.

sometimes `factorio_logistic_network_items` does not include science packs

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. ¯\_(ツ)_/¯

graftorio2 unrecoverable error

image
so i got this when trying to load my factorio world. only change was removing a few veheicle mods that shouldnt have been an issue.

Prometheus Datasource ``timeInterval`` not respected

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'

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.