3.0.9 • Published 8 years ago

good-influxdb-test v3.0.9

Weekly downloads
1
License
ISC
Repository
github
Last release
8 years ago

good-influxdb

Build Status

A good-reporter for use with InfluxDB.

GoodInflux

new GoodInflux(host, options)

  • host - The host, including protocol, port, and optional credentials, where InfluxDB is running
  • options
  • database - The name of the database data will be written to. Defaults to good.
  • events - The events configuration property as supported by good-reporter.
  • threshold - The number of events to queue before flushing to the database. Defaults to 25.
  • username - The username for the InfluxDB user. This value is overridden by host credentials, if available. (Requires password.)
  • password- The password for the InfluxDB user. This value is overridden by host credentials, if available. (Requires username.)

Series

request

timeidmethodstatusdurationpathlabelshostpid

Each request is recorded as a point in the request data series. The request series can then be broken down into sub-series via continuous queries. For example, to get requests per process per host you can run

select * from "request" into request.[host].[pid]

Once that query is complete, InfluxDB will dynamically create series for each new host and pid combination recorded.

error

timeurlmethodmessagestackhostpid

Responses that result in 500 status code are logged as errors. Each error contains the error message and stacktrace, in addition to the url and HTTP method pertaiing to the failed request.

os

timecpu1mcpu5mcpu15mtotalmemfreememuptimehostpid

OS-level details are also recorded, including the columns above. NOTE: Currently there is no deduping of data, therefore if multiple processes are running on the same host, duplicate OS data will be recorded to Influx.

process

timememoryrssheapTotalheapUseddelayuptimehostpid

process-leve details, including the event loop delay, are recorded into a process series.

log

timedatatagshostpid

Server logs, including tags are also recorded as points in the log series.

Custom Events

When logging a custom event a series will be created using that event name. Additionally, custom events wil automatically get logged with time, host, and pid columns. Additionally, any other fields/properties are logged as columns into InfluxDB. Some types are handled specially, however: primitives (string, boolean, number) are logged as-is, dates are converted to date strings, arrays are logged as comma-separated values, and objects are JSON stringified prior to logging.

3.0.9

8 years ago

3.0.8

8 years ago

3.0.7

8 years ago

3.0.6

8 years ago

3.0.5

8 years ago

3.0.4

8 years ago

3.0.3

8 years ago

3.0.2

8 years ago

3.0.1

8 years ago

3.0.0

8 years ago

2.1.19

8 years ago

2.1.18

8 years ago

2.1.17

8 years ago

2.1.16

8 years ago

2.1.15

8 years ago

2.1.14

8 years ago

2.1.12

8 years ago

2.1.11

8 years ago

2.1.10

8 years ago

2.1.9

8 years ago

2.1.8

8 years ago

2.1.7

8 years ago

2.1.6

8 years ago

2.1.5

8 years ago

2.1.4

8 years ago

2.1.3

8 years ago

2.1.2

8 years ago

2.1.1

8 years ago

2.1.0

8 years ago