feat!: Add support for InfluxDB v3

This commit is contained in:
Göran Sander
2025-12-15 08:40:58 +01:00
parent 963bac6787
commit fdff29f5d2
3 changed files with 405 additions and 402 deletions

743
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@@ -83,7 +83,7 @@
"devDependencies": {
"@babel/eslint-parser": "^7.28.5",
"@babel/plugin-syntax-import-assertions": "^7.27.1",
"@eslint/js": "^9.39.1",
"@eslint/js": "^9.39.2",
"audit-ci": "^7.1.0",
"esbuild": "^0.27.1",
"eslint-config-prettier": "^10.1.8",
@@ -91,7 +91,7 @@
"eslint-plugin-jsdoc": "^61.5.0",
"eslint-plugin-prettier": "^5.5.4",
"globals": "^16.5.0",
"jest": "^30.1.3",
"jest": "^30.2.0",
"jsdoc-to-markdown": "^9.1.3",
"license-checker-rseidelsohn": "^4.4.2",
"lockfile-lint": "^4.14.1",

View File

@@ -63,12 +63,12 @@ Butler-SOS:
enable: true # Should Butler SOS' uptime (how long since it was started) be sent to New Relic?
attribute:
static: # Static attributes/dimensions to attach to the data sent to New Relic.
# - name: metricType
# value: butler-sos-uptime
# - name: qs_service
# value: butler-sos
# - name: qs_environment
# value: prod
- name: metricType
value: butler-sos-uptime
- name: qs_service
value: butler-sos
- name: qs_env
value: dev
dynamic:
butlerVersion:
enable: true # Should the Butler SOS version be included in the data sent to New Relic?
@@ -97,10 +97,8 @@ Butler-SOS:
influxdb:
measurementName: event_count # Name of the InfluxDB measurement where event count is stored
tags: # Tags are added to the data before it's stored in InfluxDB
# - name: env
# value: DEV
# - name: foo
# value: bar
- name: qs_env
value: dev
rejectedEventCount: # Rejected events are events that are received from Sense, that are correctly formatted,
# but that are rejected by Butler SOS based on the configuration in this file.
# An example of a rejected event is a performance log event that is filtered out by Butler SOS.
@@ -137,13 +135,11 @@ Butler-SOS:
writeFrequency: 20000 # How often to write metrics, milliseconds (default: 20000)
measurementName: user_events_queue # InfluxDB measurement name (default: user_events_queue)
tags: # Optional tags added to queue metrics
# - name: env
# value: prod
- name: qs_env
value: dev
tags: # Tags are added to the data before it's stored in InfluxDB
# - name: env
# value: DEV
# - name: foo
# value: bar
- name: qs_env
value: dev
sendToMQTT:
enable: false # Set to true if user events should be forwarded as MQTT messages
postTo: # Control when and to which MQTT topics messages are sent
@@ -193,13 +189,11 @@ Butler-SOS:
writeFrequency: 20000 # How often to write metrics, milliseconds (default: 20000)
measurementName: log_events_queue # InfluxDB measurement name (default: log_events_queue)
tags: # Optional tags added to queue metrics
# - name: env
# value: prod
- name: qs_env
value: dev
tags:
# - name: env
# value: DEV
# - name: foo
# value: bar
- name: qs_env
value: dev
source:
engine:
enable: false # Should log events from the engine service be handled?
@@ -283,10 +277,8 @@ Butler-SOS:
trackRejectedEvents:
enable: false # Should events that are rejected by the app performance monitor be tracked?
tags: # Tags are added to the data before it's stored in InfluxDB
# - name: env
# value: DEV
# - name: foo
# value: bar
- name: qs_env
value: dev
monitorFilter: # What objects should be monitored? Entire apps or just specific object(s) within some specific app(s)?
# Two kinds of monitoring can be done:
# 1) Monitor all apps, except those listed for exclusion. This is defined in the allApps section.
@@ -438,10 +430,10 @@ Butler-SOS:
# value: Header value
attribute:
static: # Static attributes/dimensions to attach to the events sent to New Relic.
# - name: service
# value: butler-sos
# - name: environment
# value: prod
- name: qs_env
value: dev
- name: service
value: butler-sos
dynamic:
butlerSosVersion:
enable: true # Should the Butler SOS version be included in the events sent to New Relic?
@@ -492,10 +484,10 @@ Butler-SOS:
enable: true
attribute:
static: # Static attributes/dimensions to attach to the data sent to New Relic.
# - name: service
# value: butler-sos
# - name: environment
# value: prod
- name: qs_env
value: dev
- name: service
value: butler-sos
dynamic:
butlerSosVersion:
enable: true # Should the Butler SOS version be included in the data sent to New Relic?