Spectral performance of an airborne dispersive pushbroom imaging spectrometer cannot be assumed to be stable over a whole flight season given the environmental stresses present during flight. Spectral performance monitoring during flight is commonly accomplished by looking at selected absorption features present in the Sun, atmosphere, or ground, and their stability. The assessment of instrument performance in two different environments, e.g., laboratory and airborne, using precisely the same calibration reference, has not been possible so far. The Airborne Prism Experiment (APEX), an airborne dispersive pushbroom imaging spectrometer, uses an onboard in-flight characterization (IFC) facility, which makes it possible to monitor the sensor's performance in terms of spectral, radiometric, and geometric stability in flight and in the laboratory. We discuss in detail a new method for the monitoring of spectral instrument performance. The method relies on the monitoring of spectral shifts by comparing instrument-induced movements of absorption features on ground and in flight. Absorption lines originate from spectral filters, which intercept the full field of view (FOV) illuminated using an internal light source. A feature-fitting algorithm is used for the shift estimation based on Pearson's correlation coefficient. Environmental parameter monitoring, coregistered on board with the image and calibration data, revealed that differential pressure and temperature in the baffle compartment are the main driving parameters explaining the trend in spectral performance deviations in the time and the space (across-track) domains, respectively. The results presented in this paper show that the system in its current setup needs further improvements to reach a stable performance. Findings provided useful guidelines for the instrument revision currently under way. The main aim of the revision is the stabilization of the instrument for a range of temperature and pressure conditions to be encountered during operation.