Skip to content
Ask AI

AsterNOS Exporter

Table 1 Exporter View

CommandPurpose
show exporterDisplay exporter configuration

[Command] show exporter

[Purpose] Display exporter configuration

[View] Privileged User View

[Use Cases]

sonic# show exporter
exporter cache duration:
- bgp: default
- device: default
- evpn: default
- sag: default
- mclag: default
- ntp: default
- interface: default
- roce_stats: default
exporter capture interval:
- bgp: default
- device: default
- evpn: default
- sag: default
- mclag: default
- ntp: default

Table 2 Exporter Config

CommandPurpose
exporter cache-duration {bgp|device|evpn|sag|mclag|ntp|roce_stats|interface} timeConfigure the cache duration of each module in the exporter.
exporter capture-interval {bgp|device|evpn|sag|mclag|ntp} timeConfigure the capture time interval for each module of the exporter.
exporter millisecond_level_monitoring enableActivate exporter millisecond data collection function.

exporter cache-duration {bgp|device|evpn|sag|mclag|ntp|roce_stats|interface} time

Section titled “exporter cache-duration {bgp|device|evpn|sag|mclag|ntp|roce_stats|interface} time”

[Command] exporter cache-duration {bgp|device|evpn|sag|mclag|ntp|roce_stats|interface} time

[Purpose] Configure the cache duration of each module in the exporter

[Parameters]

ParameterDescription
timeCache duration, range 1-60 s.

[View] Global Configuration View

[Notes] Run command no exporter cache-duration {bgp|device|evpn|sag|mclag|ntp|roce_stats|interface} to delete the cache duration configuration of each module and restore the default configuration. The default values for each module are as follows: bgp、evpn、sag :25-30s device、mclag、ntp:15s roce_stats、interface:1s

[Use Cases]

sonic# configure
sonic(config)# exporter cache-duration bgp 15

exporter capture-interval {bgp|device|evpn|sag|mclag|ntp} time

Section titled “exporter capture-interval {bgp|device|evpn|sag|mclag|ntp} time”

[Command] exporter capture-interval {bgp|device|evpn|sag|mclag|ntp} time

[Purpose] Configure the capture time interval for each module of the exporter

[Parameters]

ParameterDescription
timeCapture time interval, range 1-60 s.

[View] Global Configuration View

[Notes] Run command no exporter capture-interval {bgp|device|evpn|sag|mclag|ntp} to delete the capture time interval configuration of each module and restore the default configuration. The default value for all modules is 30s.

[Use Cases]

sonic# configure
sonic(config)# exporter capture-interval bgp 15

exporter millisecond_level_monitoring enable

Section titled “exporter millisecond_level_monitoring enable”

[Command] exporter millisecond_level_monitoring enable

[Purpose] Activate exporter millisecond data collection function

[View] Global Configuration View

[Notes] Enable the millisecond-level data acquisition function for the interface and RoCE modules only, with an interval of 500 ms. Run command no exporter millisecond_level_monitoring to turn off the millisecond-level data collection function.

[Use Cases]

sonic# configure
sonic(config)# exporter millisecond_level_monitoring enable