0.0.26 • Published 3 years ago

express-gateway-plugin-influx v0.0.26

Weekly downloads
4
License
ISC
Repository
github
Last release
3 years ago

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)'
0.0.26

3 years ago

0.0.25

3 years ago

0.0.24

3 years ago

0.0.23

4 years ago

0.0.22

4 years ago

0.0.21

4 years ago

0.0.20

4 years ago

0.0.18

5 years ago

0.0.17

5 years ago

0.0.16

5 years ago

0.0.15

5 years ago

0.0.14

5 years ago

0.0.13

5 years ago

0.0.12

5 years ago

0.0.11

5 years ago

0.0.10

5 years ago

0.0.9

5 years ago

0.0.8

5 years ago

0.0.7

5 years ago

0.0.6

5 years ago

0.0.5

5 years ago

0.0.4

5 years ago

0.0.3

5 years ago

0.0.2

5 years ago

0.0.1

5 years ago