Giter Club home page Giter Club logo

Comments (8)

iwex avatar iwex commented on July 30, 2024

Hey! There some errors in run_mtail, watch command doesn't allow to run mtail in a single sh file.
I made some scripts for my own harvesters - you can check it here https://github.com/iwex/chiascripts/blob/main/monitoring/init.sh
You can copy it, but change paths to your own values.

from chiamonitor.

ytx1991 avatar ytx1991 commented on July 30, 2024

If you are using ssh, make sure run the command with nohup.
e.g.
nohup ./run_mtail.sh &

Also make sure the mtail binary file has right permission to execute. It requires 3.0.0 rc45 version.

from chiamonitor.

ytx1991 avatar ytx1991 commented on July 30, 2024

You can check your farmer host 9090 port first. It should show the Prometheus portal and you should be able to query the data like total_plots

from chiamonitor.

iwex avatar iwex commented on July 30, 2024

Also, you can check http://ptometheus_ip:9090/metrics and find your chia services

from chiamonitor.

cattivik66 avatar cattivik66 commented on July 30, 2024

I have pretty much the same issue, probably some kind of configuration is missing.
http://chiafarmer:9090/targets can be reached, and shows two targets up (chia and prometheus endpoints up).

Second thing is the run_mtail.sh script:
The first line watch -n 30 ~/chia-blockchain/venv/bin/chia farm summary prevents executing the second line ./mtail --progs ./ --logs .chia/mainnet/log/debug.log --logs .chia/mainnet/log/farmer_summary.log --poll_interval 3000ms

In addition, I see mtail needs to look at ~/.chia/mainnet/log/farmer_summary.log but this file does not exists.
So I opened two screen session and executed on the first one watch -n 30 ~/chia-blockchain/venv/bin/chia farm summary > .chia/mainnet/log/farmer_summary.log and on the second ./mtail --progs ./ --logs .chia/mainnet/log/debug.log --logs .chia/mainnet/log/farmer_summary.log --poll_interval 3000ms

In that way I have the grafana dashboard partially working: I have total plots, challenges per harvester, etc but missing earned xch, expected xch, netspace, etc

So I think we need to change something on the config.yaml of chia to generate ~/.chia/mainnet/log/farmer_summary.log
That could be the logging option under full_node.

from chiamonitor.

unintended-consequences avatar unintended-consequences commented on July 30, 2024

Hey! There some errors in run_mtail, watch command doesn't allow to run mtail in a single sh file.
I made some scripts for my own harvesters - you can check it here https://github.com/iwex/chiascripts/blob/main/monitoring/init.sh
You can copy it, but change paths to your own values.

This helped a lot. For anyone else, you need to change paths in EVERY script in the repository AND change the user in watch-farmer.service too!

from chiamonitor.

VercauterenK avatar VercauterenK commented on July 30, 2024

I have pretty much the same issue, probably some kind of configuration is missing.
http://chiafarmer:9090/targets can be reached, and shows two targets up (chia and prometheus endpoints up).

Second thing is the run_mtail.sh script:
The first line watch -n 30 ~/chia-blockchain/venv/bin/chia farm summary prevents executing the second line ./mtail --progs ./ --logs .chia/mainnet/log/debug.log --logs .chia/mainnet/log/farmer_summary.log --poll_interval 3000ms

In addition, I see mtail needs to look at ~/.chia/mainnet/log/farmer_summary.log but this file does not exists.
So I opened two screen session and executed on the first one watch -n 30 ~/chia-blockchain/venv/bin/chia farm summary > .chia/mainnet/log/farmer_summary.log and on the second ./mtail --progs ./ --logs .chia/mainnet/log/debug.log --logs .chia/mainnet/log/farmer_summary.log --poll_interval 3000ms

In that way I have the grafana dashboard partially working: I have total plots, challenges per harvester, etc but missing earned xch, expected xch, netspace, etc

So I think we need to change something on the config.yaml of chia to generate ~/.chia/mainnet/log/farmer_summary.log
That could be the logging option under full_node.

I have the same problem did you managed to fix it?

from chiamonitor.

VercauterenK avatar VercauterenK commented on July 30, 2024

Hey! There some errors in run_mtail, watch command doesn't allow to run mtail in a single sh file.
I made some scripts for my own harvesters - you can check it here https://github.com/iwex/chiascripts/blob/main/monitoring/init.sh
You can copy it, but change paths to your own values.

This helped a lot. For anyone else, you need to change paths in EVERY script in the repository AND change the user in watch-farmer.service too!

Hi,

Did you fix the missing data like earned xch, expected xch, netspace, etc
I can't get that part running

from chiamonitor.

Related Issues (20)

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.