kenjij / newrelic_redis_plugin

New Relic plugin for Redis in Ruby
MIT License
32 stars 17 forks source link

Multiple Databases #14

Open steverobbins opened 8 years ago

steverobbins commented 8 years ago

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.

williantenfen commented 8 years ago

+1

ko-christ commented 8 years ago

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
apple4ever commented 8 years ago

That's what I did. I launch a different agent for each database with a different config file.