Skip to content

Commit

Permalink
fix(influxdb): Remove pre-defined schema for InfluxDB database
Browse files Browse the repository at this point in the history
Fixes #1286
  • Loading branch information
Göran Sander committed Oct 24, 2024
1 parent 56663da commit cbdfce3
Showing 1 changed file with 1 addition and 22 deletions.
23 changes: 1 addition & 22 deletions src/globals.js
Original file line number Diff line number Diff line change
Expand Up @@ -364,28 +364,7 @@ class Settings {
database: this.config.get('Butler.influxDb.dbName'),
username: `${this.config.get('Butler.influxDb.auth.enable') ? this.config.get('Butler.influxDb.auth.username') : ''}`,
password: `${this.config.get('Butler.influxDb.auth.enable') ? this.config.get('Butler.influxDb.auth.password') : ''}`,
schema: [
{
measurement: 'butler_memory_usage',
fields: {
heap_used: Influx.FieldType.FLOAT,
heap_total: Influx.FieldType.FLOAT,
external: Influx.FieldType.FLOAT,
process_memory: Influx.FieldType.FLOAT,
},
tags: ['butler_instance', 'version'],
},
{
measurement: 'win_service_state',
fields: {
state_num: Influx.FieldType.INTEGER,
state_text: Influx.FieldType.STRING,
startup_mode_num: Influx.FieldType.INTEGER,
startup_mode_text: Influx.FieldType.STRING,
},
tags: ['butler_instance', 'host', 'service_name', 'display_name', 'friendly_name'],
},
],
schema: [],
});
}

Expand Down

0 comments on commit cbdfce3

Please sign in to comment.