Porte bougie action

Comment

Author: Admin | 2025-04-28

[histogram_pg,discards_pg,buffers_pg, all_packets_pg]Note: You must specify at least one port group. If the port group list is empty, systemd shuts down the asic-monitor service..port_setSpecifies the range of ports monitored. You can specify GLOBs and comma-separated lists; for example, swp1 swp4,swp8,swp10-swp50.Example:monitor.histogram_pg.port_set = swp1-swp50.stat_typeSpecifies the type of data that the port group collects.For histograms, specify histogram. For example:monitor.histogram_pg.stat_type = histogramFor packet drops due to errors, specify packet. For example:monitor.discards_pg.stat_type = packetFor packet occupancy statistics, specify buffer. For example:monitor.buffers_pg.stat_type = bufferFor all packets per port, specify packet_all.Example:monitor.all_packet_pg.stat_type = packet_all.cos_listFor histogram monitoring, each CoS (Class of Service) value in the list has its own histogram on each port. The global limit on the number of histograms is an average of one histogram per port.Example:monitor.histogram_pg.cos_list = [0].trigger_typeSpecifies the type of trigger that initiates data collection. Currently, the only option is timer. At least one port group must have a timer configured, otherwise no data is ever collected.Example:monitor.histogram_pg.trigger_type = timer.timerSpecifies the frequency at which data is collected; for example, a setting of 1s indicates that data is collected once per second. You can set the timer to the following:1 to 60 seconds: 1s, 2s, and so on up to 60s1 to 60 minutes: 1m, 2m, and so on up to 60m1 to 24 hours: 1h, 2h, and so on up to 24h1 to 7 days: 1d, 2d and so on up to 7dExample:monitor.histogram_pg.timer = 4s.action_listSpecifies one or more actions that occur when data is collected:snapshot writes a snapshot of the data collection results to a file. If you specify this action, you must also specify a snapshot file (described below). You can also specify a threshold that initiates the snapshot action, but this is not required.Example:monitor.histogram_pg.action_list = [snapshot]monitor.histogram_pg.snapshot.file = /var/lib/cumulus/histogram_statscollect gathers additional data. If you specify this action, you must also specify the port groups for the additional data you want to collect.Example:monitor.histogram_pg.action_list = [collectmonitor.histogram_pg.collect.port_group_list = [buffers_pg,all_packet_pg]log sends a message to the /var/log/syslog file. If you specify this action, you must also specify a threshold that initiates the log action.Example:monitor.histogram_pg.action_list = [log]monitor.histogram_pg.log.queue_bytes = 500You can use all three of these actions in one monitoring step. For examplemonitor.histogram_pg.action_list

Add Comment