Wondering what’s next for npm?Check out our public roadmap! »

    egg-xprom

    1.1.1 • Public • Published

    egg-xprom

    NPM version npm download

    Install

    $ npm i egg-xprom --save

    Usage

    // {app_root}/config/plugin.js
    exports.xprom = {
      enable: true,
      package: 'egg-xprom',
    };

    Configuration

    // {app_root}/config/config.default.js
    exports.xprom = {
      port:9999, // default 9999 ;Docker need EXPOSE 9999
      name:'xprom-test' // default project name
    };

    see config/config.default.js for more detail.

    Other

    plugin will upload curl request monitor data.

    if url is http://baidu.com,monitor targetServer is baidu.com;

    if url is http://message-platform:10000,monitor targetServer is message-platform;

    if url is http://api.xc22hanger.ccn/device-platform/ecarx_ca22r/msisdn/2,monitor targetServer is api.xc22hanger.ccn

    if you want your custom targetServer,you can add field promServerName

    example:

    await this.app.curl('http://baidu.com', { method: 'GET', promServerName: 'myCustomName' });

    Questions & Suggestions

    Please open an issue here.

    License

    MIT

    Install

    npm i egg-xprom

    DownloadsWeekly Downloads

    12

    Version

    1.1.1

    License

    MIT

    Unpacked Size

    13.7 kB

    Total Files

    7

    Last publish

    Collaborators

    • avatar