Skip to content

pm2-gelf-pro 1.0.12

Install from the command line:
Learn more about npm packages
$ npm install @amplement/pm2-gelf-pro@1.0.12
Install via package.json:
"@amplement/pm2-gelf-pro": "1.0.12"

About this version

pm2-gelf-pro

Installation

First installation

production

pm2 install @amplement/pm2-gelf-pro

development

Go to your local directory

pm2 install .

Update

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

Setup module environment variables

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
    }
}

Details


Assets

  • pm2-gelf-pro-1.0.12.tgz

Download activity

  • Total downloads 8
  • Last 30 days 0
  • Last week 0
  • Today 0