I've setup an Insights server on a VM and I'm wanting to have it display data from an instance of psm on a perforce server we use for trying out new things.
Our test p4d server is an older server that has Centos 5.0 installed. After a bit of hoop jumping to get the correct version of ruby installed, running down dependencies on libyaml, ruby-irb, & ruby-rdoc, I've made it to a point where I can install and start psm.
When I start psm, I'm seeing text like this,
Perforce service manager version 2013.3.759718.beta Loading configuration from /psm/config.yml Starting structured log monitoring for main Starting webapp on port 4440 Database is /psm/monitordb.sqlite..., rotated DAILY Logging to /var/local/log/psm/ == Sinatra/1.3.3 has taken the stage on 4440 for development with backup from Thin >> Thin web server (v1.5.0 codename Knife) >> Maximum connections set to 1024 >> Listening on 0.0.0.0:4440, CTRL+C to stop
My config.yml looks like this,
servers: main: structured_log_location: /p4logdir/beta/
I'm pretty sure the ip:port in the line "Listening on 0.0.0.0:4440, CTRL+C to stop" is not right but the information on Insights' psm web page "h t t p : / / p4vm-insights:8080/insights/docs/psm" is pretty sparse.
I've confirmed that port 4440 for is not accessible externally and the firewall is not getting in the way.
Any ideas on what needs to be done to get this puppy going?
On some different topics...
If I were to configure my p4d server to put its structured logs on an NFS share, would I be able to setup the psm instance on a different machine, accessing the structured logs from that share?
The config.yml file seems to suggest that I could have more than one server being monitored, if so, would I be able to setup an additional configuration for a replica server, reading the structured logs from a different NFS share? If so, what other server types could be used?
For the continuous import, is Insights reading the journal in a similiar fashion to how a replica server reads the journal? Specifically, I am wondering about the process of how Insights behaves when my primary server rotates it journal. Does it read the p4d server's journalPrefix so that it can backtrack into the rotated journal?