pm2-gelf-pro 1.0.17
Install from the command line:
Learn more about npm packages
$ npm install @amplement/pm2-gelf-pro@1.0.17
Install via package.json:
"@amplement/pm2-gelf-pro": "1.0.17"
About this version
pm2 install @amplement/pm2-gelf-pro
Go to your local directory
pm2 install .
It should work if you do pm2 install @amplement/pm2-gelf-pro
but if you get an error like:
Error: ENOENT: no such file or directory, mkdir '/tmp/@amplement/pm2-gelf-pro'
Do:
pm2 uninstall @amplement/pm2-gelf-pro
pm2 install @amplement/pm2-gelf-pro
Bind environment vars to the module process:
pm2 set @amplement/pm2-gelf-pro:<param> <value>
For OVH provider use case. Send the private token from header + TLS cert
pm2 set @amplement/pm2-gelf-pro:gelf_adapterOptions_certpath client-cert.pem
pm2 set @amplement/pm2-gelf-pro:gelf_fields '{"X-OVH-TOKEN":"this-is-my-token"}'
Gelf pro default config is :
{
"adapterName": "tcp-tls",
"adapterOptions": {
"host": "gra2.logs.ovh.com",
"port": 12202
}
}