[Twisted-Python] How to test metrics
![](https://secure.gravatar.com/avatar/433365de0f787faa3ed3e6dd1da5884f.jpg?s=120&d=mm&r=g)
Dec. 27, 2001
1:44 a.m.
0. make sure postgres and pypgsql are installed (apt-get install python-pgsql). 1. run "createdb twisted" 2. using psql, create the tables listed in the schemas in twisted/enterprise/dbpassport.py and twisted/metrics/metricsdb.py 3. $ cat twisted/enterprise/populate.sql | psql twisted $ cat twisted/metrics/populate.sql | psql twisted 4. $ twisted -n -y doc/examples/metrics.tac 5. $ PYTHONPATH=. python twisted/metrics/test-client.py 6. Point your browser at http://locahost:8485/ Perhaps there should be a doc/examples/metrics/ and the populate.sql and test-client.py, test-os.py and metrics.tac should be there?
8451
Age (days ago)
8451
Last active (days ago)
0 comments
1 participants
participants (1)
-
Itamar Shtull-Trauring