I have a server (nginx + php-fpm) running 3 sites each one must be reported in a separate new relic account.
I have an only php-fpm config and 3 server config settings into /etc/nginx/conf.d
I set into each nginx server config file the new relic license and new relic app name but it only takes the license set in newrelic.ini.
How could I to set I don't know, per ini (server config file) or whatever to new relic make reports of each site to each account associated with?
thanks in advance.
You can separate sites into different New Relic accounts one of two ways:
1) You can setup virtual hosts in nginx, and add different New Relic license keys to each virtual host. There is an example using Apache on the New Relic docs site.
2) You can call newrelic_set_appname()
via the API and change the account during the beginning of the transaction.
For example: newrelic_set_appname("APP NAME", "NEW RELIC LICENSE KEY");
There is more information on using multiple accounts here.