@@ -82,7 +82,6 @@ class ProgramStatus : public Program
8282 std::unique_ptr<Monitoring> monitoring;
8383 if (mOptions .monitoring ) {
8484 monitoring = MonitoringFactory::Get (getMonitoringUri ());
85- monitoring->addGlobalTag (tags::Key::Subsystem, tags::Value::CRU);
8685 }
8786
8887 if (cardType == CardType::type::Crorc) {
@@ -112,9 +111,9 @@ class ProgramStatus : public Program
112111 if (mOptions .monitoring ) {
113112 monitoring->send (Metric{ " CRORC" }
114113 .addValue (card.pciAddress .toString (), " pciAddress" )
115- .addValue (qsfpEnabled, " qsfp" )
116- .addValue (offset , " offset " )
117- .addValue (timeFrameDetectionEnabled, " timeFrameDetection" )
114+ .addValue (reportInfo. qsfpEnabled , " qsfp" )
115+ .addValue (reportInfo. dynamicOffset , " dynamicOffset " )
116+ .addValue (reportInfo. timeFrameDetectionEnabled , " timeFrameDetection" )
118117 .addValue (reportInfo.timeFrameLength , " timeFrameLength" )
119118 .addTag (tags::Key::ID, card.sequenceId )
120119 .addTag (tags::Key::Type, tags::Value::CRORC));
@@ -148,10 +147,11 @@ class ProgramStatus : public Program
148147 if (mOptions .monitoring ) {
149148 monitoring->send (Metric{ " link" }
150149 .addValue (card.pciAddress .toString (), " pciAddress" )
151- .addValue (linkStatus , " status" )
150+ .addValue (link. status , " status" )
152151 .addValue (opticalPower, " opticalPower" )
153152 .addTag (tags::Key::CRORC, card.sequenceId )
154- .addTag (tags::Key::ID, id));
153+ .addTag (tags::Key::ID, id)
154+ .addTag (tags::Key::Type, tags::Value::CRORC));
155155 } else if (mOptions .jsonOut ) {
156156 pt::ptree linkNode;
157157
@@ -198,8 +198,8 @@ class ProgramStatus : public Program
198198 monitoring->send (Metric{ " CRU" }
199199 .addValue (card.pciAddress .toString (), " pciAddress" )
200200 .addValue (clock, " clock" )
201- .addValue (offset , " offset " )
202- .addValue (userLogic , " userLogic" )
201+ .addValue (reportInfo. dynamicOffset , " dynamicOffset " )
202+ .addValue (reportInfo. userLogicEnabled , " userLogic" )
203203 .addTag (tags::Key::ID, card.sequenceId )
204204 .addTag (tags::Key::Type, tags::Value::CRU));
205205 } else if (mOptions .jsonOut ) {
@@ -262,16 +262,17 @@ class ProgramStatus : public Program
262262 monitoring->send (Metric{ " link" }
263263 .addValue (card.pciAddress .toString (), " pciAddress" )
264264 .addValue (gbtTxRxMode, " gbtMode" )
265- .addValue (loopback, " loopback" )
265+ .addValue (link. loopback , " loopback" )
266266 .addValue (gbtMux, " gbtMux" )
267267 .addValue (datapathMode, " datapathMode" )
268- .addValue (enabled, " datapath" )
268+ .addValue (link. enabled , " datapath" )
269269 .addValue (rxFreq, " rxFreq" )
270270 .addValue (txFreq, " txFreq" )
271- .addValue (linkStatus , " status" )
271+ .addValue (link. stickyBit , " status" )
272272 .addValue (opticalPower, " opticalPower" )
273273 .addTag (tags::Key::CRU, card.sequenceId )
274- .addTag (tags::Key::ID, globalId));
274+ .addTag (tags::Key::ID, globalId)
275+ .addTag (tags::Key::Type, tags::Value::CRU));
275276 } else if (mOptions .jsonOut ) {
276277 pt::ptree linkNode;
277278
0 commit comments