Code Monkey home page Code Monkey logo

chrony-graph's Introduction

This is for graphing logs from chrony. See the branch "ntpd" for ntpd/ntpsec graphs

Packages needed:

perl-DateTime
liberation-sans-fonts
gnuplot (needs Cairo/Pango support for best graphs)
bc

To setup:

cp bin/copy-to-website.example bin/copy-to-website
# edit bin/copy-to-website to copy the files to your website
cp titles.example titles
# edit titles to have the IPs and hostnames of your remote clocks
cp -a runX run1
# edit run1/index.html.tmpl to show the graphs for the IPs of the remote clocks
# edit bin/run if your logdir is different: LOGDIR=/var/log/chrony

To run (under screen/tmux):

cd run1 ; ../bin/loop
# edit run1/notes to keep notes

Optional scripts:

run1/startime - echo the unix timestamp to start at
run1/custom-plot - generate some custom plots
bin/copy-logfiles - download the logfiles from elsewhere, see copy-logfiles.example

chrony-graph's People

Contributors

ddrown avatar inkdot7 avatar marcelwaldvogel avatar mlichvar avatar

Stargazers

 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  avatar

chrony-graph's Issues

Adding thousands separators to the graphs

Some of the numbers get very big, when measured in µs; I have had several seconds of errors in some cases. Then, keeping track of number of zeros in the ytics is hard.

Therefore, adding some form of thousands separators to the graph would be useful.

I already did try a few things, including switching to the %'f format and adding lines to graph-header:

  • set locale "en_US.UTF-8" (apparently applies only to day/month names) and
  • set decimalsign locale (mentions thousands separator, but does not seem to influence it)

Is this something that needs to be pushed upstream to gnuplot or is that something that can be fixed in chrony-graph?

BUG: missing optional scripts in runX/run1

Hi @ddrown, thanks for sharing these scripts.

While reading through the README.md I saw that it makes reference to two scripts, run1/starttime and run1/custom-plot, which are not present in this repository. Perhaps they fell victim to a missing git add command, or were removed at some point? If these scripts are available it would be nice if they could be added to the repo.

Thanks!

Linlog cuts off extremes

I like the linlog layout, thanks @inkdot7!

However, it should ensure that a ytic beyond the maximum is set, to make the value visible. For example, in the following graph, the downward peak goes to -16 seconds (the time it took for the Raspi to reboot/resync time).

grafik

In the next graph, the ±RTT/2 lines are not visible at all and entirely cut off.

grafik

I expect that the outermost part becomes logarithmic; RTT/2 is ~100 ms.

It would be really great if these minor glitches could be improved.

No LICENSE file

Without a license it isn't possible to use the software, which is a shame because it makes such nice graphs.

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.