Open steverobbins opened 8 years ago
+1
Try setting pid and log files on daemon run like this.
./newrelic_redis_agent -d -c /tmp/newrelic_redis_plugin-1.0.1/config/redis1_5379.yml -P /tmp/newrelic_redis_plugin-1.0.1/run/redis1_5379.pid -l /tmp/newrelic_redis_plugin-1.0.1/log/redis1_5379.log
./newrelic_redis_agent -d -c /tmp/newrelic_redis_plugin-1.0.1/config/redis2_5379.yml -P /tmp/newrelic_redis_plugin-1.0.1/run/redis2_5379.pid -l /tmp/newrelic_redis_plugin-1.0.1/log/redis2_5379.log
./newrelic_redis_agent -d -c /tmp/newrelic_redis_plugin-1.0.1/config/redis3_5379.yml -P /tmp/newrelic_redis_plugin-1.0.1/run/redis3_5379.pid -l /tmp/newrelic_redis_plugin-1.0.1/log/redis3_5379.log
That's what I did. I launch a different agent for each database with a different config file.
How do I configure this to keep track of multiple instances/databases?
I tried creating two config files, but once I start the daemon I can't start another because it thinks it's already running.