Skip to content

Commit

Permalink
Update pcm-sensor-server.cpp
Browse files Browse the repository at this point in the history
Disable freq metrics for prometheus for a moment
#789
  • Loading branch information
rdementi authored Jul 17, 2024
1 parent 38aaf6c commit 6e19613
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 @@ -700,8 +700,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 @@ -744,11 +746,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 6e19613

Please sign in to comment.