mirror of
https://github.com/ptarmiganlabs/butler-sos.git
synced 2025-12-19 17:58:18 -05:00
- Rewrite postLogEventToInfluxdb v3 to handle each message type distinctly - Engine: stores session_id, windows_user, engine_exe_version - Proxy: no session_id (key difference from engine) - Scheduler: stores execution_id instead of command/result_code/origin/context - Repository: similar to proxy, no session_id - QIX-perf: stores performance metrics with float/integer fields - All Point3 field types now correct (setStringField, setFloatField, setIntegerField) - Conditional tags match v1/v2 behavior for each source type - All 349 tests passing
3.1 KiB
3.1 KiB
Docker Compose Files for Butler SOS with InfluxDB
This directory contains Docker Compose configurations for running Butler SOS with different versions of InfluxDB.
Available Configurations
InfluxDB v1.x
- File:
docker-compose_fullstack_influxdb_v1.yml - InfluxDB Image:
influxdb:1.8-alpine - Features: Traditional InfluxDB with SQL-like query language
- Configuration: Set
Butler-SOS.influxdbConfig.version: 1in your config file - Environment: Set
NODE_ENV=production_influxdb_v1
InfluxDB v2.x
- File:
docker-compose_fullstack_influxdb_v2.yml - InfluxDB Image:
influxdb:2.7-alpine - Features: Modern InfluxDB with Flux query language, unified time series platform
- Configuration: Set
Butler-SOS.influxdbConfig.version: 2in your config file - Environment: Set
NODE_ENV=production_influxdb_v2 - Default Credentials:
- Username:
admin - Password:
butlersos123 - Organization:
butler-sos - Bucket:
butler-sos - Token:
butlersos-token
- Username:
InfluxDB v3.x
- File:
docker-compose_fullstack_influxdb_v3.yml - InfluxDB Image:
influxdb:latest - Features: Latest InfluxDB architecture with enhanced performance and cloud-native design
- Configuration: Set
Butler-SOS.influxdbConfig.version: 3in your config file - Environment: Set
NODE_ENV=production_influxdb_v3 - Default Credentials: Same as v2.x but with database concept support
Usage
- Choose the appropriate docker-compose file for your InfluxDB version
- Create the corresponding configuration file (e.g.,
production_influxdb_v2.yaml) - Configure Butler SOS with the correct InfluxDB version and connection details
- Run with:
docker-compose -f docker-compose_fullstack_influxdb_v2.yml up -d
Configuration Requirements
For InfluxDB v1.x
Butler-SOS:
influxdbConfig:
enable: true
version: 1
host: influxdb-v1
port: 8086
v1Config:
auth:
enable: false
dbName: SenseOps
retentionPolicy:
name: 10d
duration: 10d
For InfluxDB v2.x
Butler-SOS:
influxdbConfig:
enable: true
version: 2
host: influxdb-v2
port: 8086
v2Config:
org: butler-sos
bucket: butler-sos
token: butlersos-token
description: Butler SOS metrics
retentionDuration: 10d
For InfluxDB v3.x
Butler-SOS:
influxdbConfig:
enable: true
version: 3
host: influxdb-v3
port: 8086
v3Config:
database: butler-sos
token: butlersos-token
description: Butler SOS metrics
retentionDuration: 10d
Migration Notes
- v1 to v2: Requires data migration using InfluxDB tools
- v2 to v3: Uses similar client libraries but different internal architecture
- v1 to v3: Significant migration required, consider using InfluxDB migration tools
For detailed configuration options, refer to the main Butler SOS documentation.