Bitcoin Forum
May 24, 2024, 05:33:40 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: « 1 [2]  All
  Print  
Author Topic: Your full node info page  (Read 5576 times)
shorena (OP)
Copper Member
Legendary
*
Offline Offline

Activity: 1498
Merit: 1520


No I dont escrow anymore.


View Profile WWW
September 10, 2014, 05:37:20 PM
 #21

-snip-

haha, that 1st page is making my brain hurt.  
-snip-
oh, i thought the charts on #2 looked cool.. just not something I could use, since it's still just taking all traffic & I have many things running heh

Thanks Smiley

After I did the tutorial twice I though it should be easy. Maybe cacti [1] is something for you? It builds on top of rrdtool, needs php and mysql and other stuff though, so its a bit overkill for what I need. You could feed it with data directly from bitcoind, thus you have only that traffic as well as other information. And if I am not mistake you can compleltly manage it via the web interface.



[1] http://www.cacti.net/

Im not really here, its just your imagination.
shorena (OP)
Copper Member
Legendary
*
Offline Offline

Activity: 1498
Merit: 1520


No I dont escrow anymore.


View Profile WWW
September 11, 2014, 01:31:25 PM
Last edit: September 11, 2014, 04:20:09 PM by shorena
 #22

Its working Smiley

Apparently I did nothing wrong I was just not patient enough. I just used the same script from last time and made a cronjob so it runs every 5 minutes. After waiting some hours rrdtool generates pictures Smiley



Edit: moved pic to imgur, since I changed it.

To update I use:

Code:
#!/bin/sh
n="$(bitcoind getinfo | grep connections | egrep -o [0-9]*)"
#echo n
rrdtool update connections.rrd N:$n

and the above picture is generated by:

Code:
#!/bin/sh

rrdtool graph /../pic/con24.png
--start -86400 --title "connections 24h" -v "# connections" -w 500
--x-grid MINUTE:30:HOUR:1:HOUR:2:0:%R
DEF:min=connections.rrd:connections:MIN
DEF:avg=connections.rrd:connections:AVERAGE
DEF:max=connections.rrd:connections:MAX
LINE1:min#ff0000:"minimum"
LINE1:avg#00ff00:"average"
LINE1:max#0000ff:"maximum"

Note that the connections.rrd is in the same dir as "canhazpic.sh" and I added linebreaks to make it easier to read.

Its not yet updating via cron as I want to play around some more with the colors and make it look more like this:


Im not really here, its just your imagination.
shorena (OP)
Copper Member
Legendary
*
Offline Offline

Activity: 1498
Merit: 1520


No I dont escrow anymore.


View Profile WWW
September 15, 2014, 04:50:49 AM
 #23

I tamed rrdtool now to do what I want. The below pictures are from this morning. The 24h one is updated every 30 minutes and the 30d one is updated every 12h. Full page is here: http://213.165.91.169/ not sure what to add since I dont want to publish IP addresses or peer informations




Im not really here, its just your imagination.
deepceleron
Legendary
*
Offline Offline

Activity: 1512
Merit: 1032



View Profile WWW
September 15, 2014, 09:24:37 AM
 #24

... not sure what to add since I dont want to publish IP addresses or peer informations

Bitcoin users know that their IP addresses are public if they participate in the peer-to-peer network without specifically choosing their peers. The most offending demonstration: https://blockchain.info/ip-log

If you don't want to show the IPs of connections, you can dump your port 8333 connection IPs through a salted hash to make an identifier; bash example:

Code:
ipaddr="127.0.0.1"
salt="mysecret"
hash=$(echo $ipaddr$salt | sha256sum)
id=${hash:0:8}
echo $id

gives an identifier "b10ea208", nearly as unique as IP addresses.
shorena (OP)
Copper Member
Legendary
*
Offline Offline

Activity: 1498
Merit: 1520


No I dont escrow anymore.


View Profile WWW
September 15, 2014, 09:47:22 AM
 #25

... not sure what to add since I dont want to publish IP addresses or peer informations

Bitcoin users know that their IP addresses are public if they participate in the peer-to-peer network without specifically choosing their peers. The most offending demonstration: https://blockchain.info/ip-log

If you don't want to show the IPs of connections, you can dump your port 8333 connection IPs through a salted hash to make an identifier; bash example:

Code:
ipaddr="127.0.0.1"
salt="mysecret"
hash=$(echo $ipaddr$salt | sha256sum)
id=${hash:0:8}
echo $id

gives an identifier "b10ea208", nearly as unique as IP addresses.


Privacy is not a concern in that regard. I dont think IP addresses are personal information anyway. Behind most IP's are several users, sometimes companies with 1000's of employees and if someone wanted to hide his/her IP address there are services like tor. But IP addresses connected to is nothing I can make a picture of with rrdtool and I dont want to add php/mysql. Im perfectly fine with a number of connections in that regard. Frankly I think a list of IP addresses isnt that interesting to look at. A full dump of getpeerinfo (see other sites linked above) is a different matter, but I will restrict the information shown to number of bits/connections etc.
# of connections by version might be something to consider, but that would require a very sophisticated script. Get different versions, check if data base for version exists if so update with current count, if not make a new one and add a cronjob to update the resulting picture as well as the html page. Depending on the name of the version used that could probably result in problems along the way.

Im not really here, its just your imagination.
statoshi
Newbie
*
Offline Offline

Activity: 25
Merit: 66


View Profile WWW
November 06, 2014, 01:54:04 PM
 #26

My full node metrics: http://statoshi.info

I'm running a fork of Bitcoin Core that emits metrics to Statsd, which are then collected by Graphite and rendered with flot graphs by Grafana.

https://medium.com/@lopp/announcing-statoshi-realtime-bitcoin-node-statistics-61457f07ee87

https://github.com/jlopp/statoshi
shorena (OP)
Copper Member
Legendary
*
Offline Offline

Activity: 1498
Merit: 1520


No I dont escrow anymore.


View Profile WWW
November 08, 2014, 07:33:56 PM
 #27

My full node metrics: http://statoshi.info

Very nice, Now I want to get another server running to play with your fork.
There is a strange button on the webpage though, lower right corner: "add a row". When I click it (chrome) it adds an empty row. Not sure what thats about
...ooh, wow. Nevermind I got it.

What is the minimum in terms of disk, cpu and ram you would recommend?

I'm running a fork of Bitcoin Core that emits metrics to Statsd, which are then collected by Graphite and rendered with flot graphs by Grafana.

https://medium.com/@lopp/announcing-statoshi-realtime-bitcoin-node-statistics-61457f07ee87

https://github.com/jlopp/statoshi

 Shocked

Im not really here, its just your imagination.
statoshi
Newbie
*
Offline Offline

Activity: 25
Merit: 66


View Profile WWW
November 08, 2014, 11:46:19 PM
 #28

Yes, Grafana is highly customizable and all of the graphs are editable. You can even build your own charts from scratch, though I have it locked down so that you need the admin password in order to permanently store them. If you compose a chart on statoshi.info that you think would be useful for the general public, feel free to save it as a JSON payload and send it to me; I'll add it as a permanent chart.

As for machine specs, I'm running on a single core VPS with 30 GB of disk (that I'll need to bump up soon) with 4 GB of RAM, though bitcoind only uses about 1.5 GB. My node uses ~150 GB of (mostly upstream) bandwidth per month. I hope to eventually make it easier for people to install the entire software stack required to run a Statoshi instance; at the moment it requires a fair amount of Linux admin skills to install & configure.
tnkflx
Sr. Member
****
Offline Offline

Activity: 349
Merit: 250


View Profile
December 13, 2014, 12:28:59 AM
 #29

Shorena, how do you get the stats from bitcoind?

| Operating electrum.be & us.electrum.be |
shorena (OP)
Copper Member
Legendary
*
Offline Offline

Activity: 1498
Merit: 1520


No I dont escrow anymore.


View Profile WWW
December 13, 2014, 04:07:21 AM
 #30

Shorena, how do you get the stats from bitcoind?

I just "ask" bitcoind what I want to know. Had to start a reindex yesterday because the DB got corrupted, thus they currently look bad.

Code:
n="$(bitcoind getinfo | grep connections | egrep -o [0-9]*)"
rrdtool update connections.rrd N:$n

Im not really here, its just your imagination.
Pages: « 1 [2]  All
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!