Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

express-gateway-plugin-influx

Package Overview
Dependencies
Maintainers
1
Versions
25
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

express-gateway-plugin-influx

influx Client implementation plugin for express-gateway-influx.

  • 0.0.26
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

express-gateway-plugin-influx

A simple Influx Client plugin for Express Gateway.

Installation

Simply copy/paste :

eg plugin install express-gateway-plugin-influx

Usage

Here is an example of how to use the plugin :

...
pipelines:
  default:
    policies:
      - influx:
          - action:
              measurement: request_duration
              influxdbSchema:
                host: localhost
                database: api_gw_requests
                port: 8082
...

Tags

The duration is tagged with the following list of tags:

  path: req.path,
  host: req.hostname,
  verb: req.method,
  status: res.statusCode,
  application: _application_

ids and uuid in the path are replaced by id using the following default regex : /([\da-fA-F]{8}\-[\da-fA-F]{4}\-[\da-fA-F]{4}\-[\da-fA-F]{4}\-[\da-fA-F]{12})|(\d+)/g

Configuration available

  • measurement : (string) 'Measurement name (default: requests)'
  • application: (string) 'The application name that you monitor (default: default)'
  • removeIds: (boolean) 'Whether to remove Ids from the path that are sent to metrics or not (default: false)'
  • removeIdsRegex: (string) 'Regex to use to match ids to remove from the path tag'
  • bufferSize: (number) 'The size to match before sending the data to influx'
  • influxdbSchema
    • host: (string) 'The HTTP endpoint when using the remote sampler (default: localhost)'
    • port: (number) 'The http port (default: 8086)'
    • protocol: (string) 'http/https ... (default: http)'
    • database: (string) 'Database in which to send the data'
    • username: (string) 'Username to connect to the database (default: root)'
    • password: (string) 'Password to connect to the database (default: root)'

Keywords

FAQs

Package last updated on 07 Apr 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc