Skip to content

Commit

Permalink
Initial import
Browse files Browse the repository at this point in the history
  • Loading branch information
dagwieers committed Oct 26, 2004
1 parent d62f6b6 commit 3f6cb6d
Show file tree
Hide file tree
Showing 9 changed files with 1,089 additions and 0 deletions.
1 change: 1 addition & 0 deletions AUTHORS
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Dag Wieers <dag@wieers.com>
340 changes: 340 additions & 0 deletions COPYING

Large diffs are not rendered by default.

22 changes: 22 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
* 0.4
- Added interrupt stats
- Order of the stats adhere the order of the options
- Interval more precise, using signals instead of sleep
- Modular rewrite using classes
- Added -D, -I and -N options to customize list
- Allow to specify 'total' for -D and -N to get aggregated numbers
- Added --vmstat option, vmstat alike output
- Implemented a basic interface and disk 'discovery' function
- Replaced hardcoded 4096 by resource.getpagesize()
- Initial public release

* 0.3
- Added load stats
- Added memory stats
- Output now fits into space and adds unit
- Converted all values to bytes

* 0.2
- Added disk io
- Added proc stats
- Important layout changes
10 changes: 10 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
prefix = /usr
sysconfdir = /etc
bindir = $(prefix)/bin
mandir = $(datadir)/man

all: install

install:
# -[ ! -f $(DESTDIR)$(sysconfdir)/dstat.conf ] && install -D -m0644 dstat.conf $(DESTDIR)$(sysconfdir)/dstat.conf
install -D -m0755 dstat $(DESTDIR)$(bindir)/dstat
23 changes: 23 additions & 0 deletions README
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
Dstat is a versatile replacement for vmstat, iostat and ifstat. Dstat
overcomes some of the limitations and adds some extra features.

Dstat allows you to view all of your system resources instantly,
you can eg. compare disk usage in combination with interrupts from
your IDE controller, or compare the network bandwidth numbers
directly with the disk throughput (in the same interval).

Dstat also cleverly gives you the most detailed information in
columns and clearly indicates in what magnitude and unit the output
is displayed. Less confusion, less mistakes.

Dstat is also unique in letting you aggregate block device throughput
for a certain diskset or network bandwidth for a group of interfaces,
ie. you can see the throughput for all the block devices that make up
a single filesystem or storage system.

You can customize your dstat output from /etc/dstat.conf and you can
write your own dstat modules to plug into the dstat output.

Dstat's output, in its current form, is not very useful to be post-
processed by other tools. It's mostly meant for allowing humans to
interprete real-time data as easy as possible.
23 changes: 23 additions & 0 deletions TODO
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
### Usability
+ Use /etc/dstat.conf to influence output
+ Add --config option
+ Add -o/--output option
+ Make -I eth0,acpi or -I ide0,yenta work
+ Show header when out of display instead of 22 lines (see term ?)
+ Maybe add colors to indicate units better (may become ugly)
+ Allow to force to given magnitude

### Extensions
+ Add all stats to seperate modules and allow people to plugin their own modules

### Statistics
+ Add application stats ( -a or -A pid,cmd)
+ Add ip stats (icmp, tcp, udp)
+ Add ntp stats
+ Add user stats (number of users logged on)
+ Add --diff option to print intermediate results (ie. when delay = 5, you see 1sec updates in other color)
+ Look into interfacing with bind, sendmail, postfix, squid, amavisd,
+ Look into interfacing with laus

### Bugs
+ Implement protection against counter rollovers
Loading

0 comments on commit 3f6cb6d

Please sign in to comment.