Skip to content

Commit

Permalink
Revert "Revert "Merge pull request intel#791 from intel/rdementi-disa…
Browse files Browse the repository at this point in the history
…ble-freq-metrics-for-prometheus""

This reverts commit d40db61.
  • Loading branch information
alastorid committed Aug 10, 2024
1 parent 09e922e commit d60b31b
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/pcm-sensor-server.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -761,8 +761,10 @@ class PrometheusPrinter : Visitor
printCounter( "L3 Cache Occupancy", getL3CacheOccupancy ( after ) );
printCounter( "Invariant TSC", getInvariantTSC ( before, after ) );
printCounter( "SMI Count", getSMICount ( before, after ) );

#if 0
// disabling this metric for a moment due to https://github.com/intel/pcm/issues/789
printCounter( "Core Frequency", getActiveAverageFrequency ( before, after ) );
#endif
//DBG( 2, "Invariant TSC before=", before.InvariantTSC, ", after=", after.InvariantTSC, ", difference=", after.InvariantTSC-before.InvariantTSC );

printCounter( "Thermal Headroom", after.getThermalHeadroom() );
Expand Down Expand Up @@ -805,11 +807,14 @@ class PrometheusPrinter : Visitor
printCounter( "PP0 Joules Consumed", getConsumedJoules ( 0, before, after ) );
printCounter( "PP1 Joules Consumed", getConsumedJoules ( 1, before, after ) );
printCounter( "DRAM Joules Consumed", getDRAMConsumedJoules ( before, after ) );
#if 0
// disabling these metrics for a moment due to https://github.com/intel/pcm/issues/789
auto uncoreFrequencies = getUncoreFrequencies( before, after );
for (size_t i = 0; i < uncoreFrequencies.size(); ++i)
{
printCounter( std::string("Uncore Frequency Die ") + std::to_string(i), uncoreFrequencies[i]);
}
#endif
uint32 i = 0;
for ( ; i <= ( PCM::MAX_C_STATE ); ++i ) {
std::stringstream s;
Expand Down

0 comments on commit d60b31b

Please sign in to comment.