Skip to content
This repository has been archived by the owner on Jul 19, 2023. It is now read-only.

Commit

Permalink
typo
Browse files Browse the repository at this point in the history
  • Loading branch information
korniltsev committed Mar 23, 2023
1 parent 3b9904f commit 8c96d03
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions pkg/ingester/pyroscope/ingest_adapter.go
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ func recoverMetadata(pi *storage.PutInput) (metricName, stType, stUnit, app stri
stTypeContentions = "contentions"
metricMutex = "mutex"
stTypeDelay = "delay"
stUniNanos = "nanoseconds"
stUnitNanos = "nanoseconds"
metricBlock = "block"
)
app = pi.Key.AppName()
Expand Down Expand Up @@ -145,15 +145,15 @@ func recoverMetadata(pi *storage.PutInput) (metricName, stType, stUnit, app stri
metricName = metricMutex
case "mutex_duration":
stType = stTypeDelay
stUnit = stUniNanos
stUnit = stUnitNanos
metricName = metricMutex
case "block_count":
stType = stTypeContentions
stUnit = stUnitCount
metricName = metricBlock
case "block_duration":
stType = stTypeDelay
stUnit = stUniNanos
stUnit = stUnitNanos
metricName = metricBlock
case "itimer":
metricName = "process_cpu"
Expand Down Expand Up @@ -181,7 +181,7 @@ func recoverMetadata(pi *storage.PutInput) (metricName, stType, stUnit, app stri
metricName = metricBlock
case "lock_duration":
stType = stTypeDelay
stUnit = stUniNanos
stUnit = stUnitNanos
metricName = metricBlock
case "live":
metricName = metricMemory
Expand Down

0 comments on commit 8c96d03

Please sign in to comment.