mirror of
https://github.com/ntop/ntopng.git
synced 2026-05-05 19:15:03 +00:00
Store Exporter Site to historical data
This commit is contained in:
parent
78769bf714
commit
cb8d44dd5f
12 changed files with 105 additions and 2 deletions
|
|
@ -40,6 +40,7 @@ CREATE TABLE IF NOT EXISTS `flows` ON CLUSTER '$CLUSTER' (
|
|||
`SRC_ASN` UInt32,
|
||||
`DST_ASN` UInt32,
|
||||
`PROBE_IP` UInt32, /* EXPORTER_IPV4_ADDRESS */
|
||||
`EXPORTER_SITE` UInt16,
|
||||
`OBSERVATION_POINT_ID` UInt16,
|
||||
`SRC2DST_TCP_FLAGS` UInt8,
|
||||
`DST2SRC_TCP_FLAGS` UInt8,
|
||||
|
|
@ -193,6 +194,9 @@ ALTER TABLE flows DROP COLUMN IF EXISTS `PRE_NAT_SRC_PORT`;
|
|||
ALTER TABLE flows DROP COLUMN IF EXISTS `PRE_NAT_IPV4_DST_ADDR`;
|
||||
@
|
||||
ALTER TABLE flows DROP COLUMN IF EXISTS `PRE_NAT_DST_PORT`;
|
||||
@
|
||||
ALTER TABLE `flows` ON CLUSTER '$CLUSTER' ADD COLUMN IF NOT EXISTS `EXPORTER_SITE` UInt16;
|
||||
|
||||
@
|
||||
|
||||
CREATE TABLE IF NOT EXISTS `active_monitoring_alerts` ON CLUSTER '$CLUSTER' (
|
||||
|
|
@ -731,6 +735,7 @@ CREATE TABLE IF NOT EXISTS `hourly_flows` ON CLUSTER '$CLUSTER' (
|
|||
`SRC_MAC` UInt64,
|
||||
`DST_MAC` UInt64,
|
||||
`PROBE_IP` UInt32, /* EXPORTER_IPV4_ADDRESS */
|
||||
`EXPORTER_SITE` UInt16,
|
||||
`NTOPNG_INSTANCE_NAME` String,
|
||||
`SRC_COUNTRY_CODE` UInt16,
|
||||
`DST_COUNTRY_CODE` UInt16,
|
||||
|
|
@ -772,6 +777,8 @@ ALTER TABLE `hourly_flows` ON CLUSTER '$CLUSTER' ADD COLUMN IF NOT EXISTS `DST_H
|
|||
ALTER TABLE `hourly_flows` ON CLUSTER '$CLUSTER' ADD COLUMN IF NOT EXISTS `SRC2DST_PACKETS` UInt32;
|
||||
@
|
||||
ALTER TABLE `hourly_flows` ON CLUSTER '$CLUSTER' ADD COLUMN IF NOT EXISTS `DST2SRC_PACKETS` UInt32;
|
||||
@
|
||||
ALTER TABLE `hourly_flows` ON CLUSTER '$CLUSTER' ADD COLUMN IF NOT EXISTS `EXPORTER_SITE` UInt16;
|
||||
|
||||
@
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue