newrelic_redis_plugin icon indicating copy to clipboard operation
newrelic_redis_plugin copied to clipboard

Multiple Databases

Open steverobbins opened this issue 10 years ago • 3 comments

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.

steverobbins avatar Mar 04 '16 00:03 steverobbins

+1

williantenfen avatar Mar 28 '16 18:03 williantenfen

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

ko-christ avatar Aug 16 '16 15:08 ko-christ

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

apple4ever avatar Sep 06 '16 20:09 apple4ever