Hi
I am trying to implement the custom models option in the anomalies.conf file, but it looks like the anomalies config fails. My config is as follows:
snmp:
name: 'snmp'
host: '127.0.0.1:19999'
protocol: 'http'
charts_regex: 'snmp_router\..*'
charts_to_exclude: 'None'
model: 'hbos'
train_max_n: 100000
train_every_n: 1800
train_n_secs: 14400
offset_n_secs: 0
initial_train_data_after: 1610967339
# initial_train_data_before: 1604593257
lags_n: 5
smooth_n: 3
diffs_n: 1
contamination: 0.1
include_average_prob: false
custom_models:
- name: 'pppoe'
dimensions: 'pppoe'
- name: 'internal'
dimensions: 'internal'
The error is not very clear:
2021-01-18 15:12:42: python.d ERROR: anomalies[snmp] : update() unhandled exception: Expecting value: line 1 column 1 (char 0)
2021-01-18 15:12:43: python.d ERROR: anomalies[snmp] : update() unhandled exception: Expecting value: line 1 column 1 (char 0)
I am pulling data from an SNMP configuration as follows. The SNMP charts are created as expected:
{
"enable_autodetect": false,
"update_every": 5,
"max_request_size": 100,
"servers": [
{
"hostname": "x.x.x.x",
"community": "public",
"update_every": 10,
"max_request_size": 50,
"options": {
"timeout": 10000
},
"charts": {
"snmp_router.bandwidth_pppoe": {
"title": "Switch Bandwidth for port pppoe",
"units": "kilobits/s",
"type": "area",
"priority": 1,
"family": "ports",
"dimensions": {
"pppoe": {
"oid": "1.3.6.1.2.1.31.1.1.1.6.8",
"algorithm": "incremental",
"multiplier": 8,
"divisor": 1024,
"offset": 0
}
}
},
"snmp_router.bandwidth_internal": {
"title": "Switch Bandwidth for port internal",
"units": "kilobits/s",
"type": "area",
"priority": 1,
"family": "ports",
"dimensions": {
"internal": {
"oid": "1.3.6.1.2.1.31.1.1.1.6.2",
"algorithm": "incremental",
"multiplier": 8,
"divisor": 1024,
"offset": 0
}
}
}
}
}
]
}