mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
* feature: save application metrics to db for alerting However, alerting will not work because ResolveGlues() is broken. Can add workaround after state_translations alerting is merged Does not update all applications yet, not sure if that should be done here or in another PR. Introduces two handy functions dbDeleteOrphans() and array_by_column(). Will replace those in other locations after this is merged or separate them out if this is not merged. * remove accidental inclusions * Add db schema
3 lines
226 B
SQL
3 lines
226 B
SQL
CREATE TABLE application_metrics (app_id INT(11) NOT NULL, metric VARCHAR(18) NOT NULL, value INT(11), value_prev INT(11));
|
|
CREATE UNIQUE INDEX application_metrics_app_id_metric_uindex ON application_metrics (app_id, metric);
|