infos pour docker/aws
This commit is contained in:
parent
9aa4cdf4c6
commit
063ceb102e
|
@ -40,4 +40,23 @@ Il arrive que NewRelic fasse des requêtes à l'adresse `http://169.254.169.254/
|
||||||
|
|
||||||
Lorsqu'on n'est pas chez AWS ça n'a aucune utilité. On peut désactiver cette fonctionnalité dans la configuration avec `utilization.detect_aws: false`.
|
Lorsqu'on n'est pas chez AWS ça n'a aucune utilité. On peut désactiver cette fonctionnalité dans la configuration avec `utilization.detect_aws: false`.
|
||||||
|
|
||||||
Documentation : <https://docs.newrelic.com/docs/agents/ruby-agent/configuration/ruby-agent-configuration#utilization> (valable pour les agents Ruby et autres)
|
Documentation : <https://docs.newrelic.com/docs/agents/ruby-agent/configuration/ruby-agent-configuration#utilization> (valable pour les agents Ruby et autres)
|
||||||
|
|
||||||
|
Dans le cas de newrelic-daemon :
|
||||||
|
|
||||||
|
~~~
|
||||||
|
# ps auwx | grep newrelic
|
||||||
|
root 6925 0.0 0.0 188284 7660 ? Ssl Apr27 0:00 /usr/bin/newrelic-daemon --agent --pidfile /var/run/newrelic-daemon.pid --logfile /var/log/newrelic/newrelic-daemon.log --port /tmp/.newrelic.sock --tls --define utilization.detect_aws=true --define utilization.detect_docker=true
|
||||||
|
root 6936 0.1 0.0 1467440 21840 ? Sl Apr27 1:20 /usr/bin/newrelic-daemon --agent --pidfile /var/run/newrelic-daemon.pid --logfile /var/log/newrelic/newrelic-daemon.log --port /tmp/.newrelic.sock --tls --define utilization.detect_aws=true --define utilization.detect_docker=true -no-pidfile
|
||||||
|
~~~
|
||||||
|
|
||||||
|
S'il n'y a que la config d'exeple, alors c'est le module PHP qui fourni sa commande. Elle est gérée dans `/etc/php5/mods-available/newrelic.ini`. Sinon, on peut copier la config d'exemple (`# cp /etc/newrelic/newrelic.cfg.template /etc/newrelic/newrelic.cfg`).
|
||||||
|
|
||||||
|
On doit ajuster les variables `utilization.detect_aws` (idem pour docker).
|
||||||
|
|
||||||
|
Si on gère le démon via le script d'init (donc pas via PHP), il faut relancer le démon :
|
||||||
|
|
||||||
|
~~~
|
||||||
|
# /etc/init.d/newrelic-daemon restart
|
||||||
|
~~~
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue