Skip to content

Commit

Permalink
misc(sparkjobs): publish additional metric with no tags for successfu…
Browse files Browse the repository at this point in the history
…l completion (filodb#1711)
  • Loading branch information
sherali42 authored and sandeep6189 committed Feb 29, 2024
1 parent 44736cb commit 19d8ed9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,9 @@ class Downsampler(settings: DownsamplerSettings) extends Serializable {
s"$downsamplePeriodStr")
val jobCompleted = Kamon.counter("chunk-migration-completed")
.withTag("downsamplePeriod", downsamplePeriodStr)
val jobCompletedNoTags = Kamon.counter("chunk-migration-completed-success").withoutTags()
jobCompleted.increment()
jobCompletedNoTags.increment()
val downsampleHourStartGauge = Kamon.gauge("chunk-downsampler-period-start-hour")
.withTag("downsamplePeriod", downsamplePeriodStr)
downsampleHourStartGauge.update(userTimeStart / 1000 / 60 / 60)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,9 @@ class IndexJobDriver(dsSettings: DownsamplerSettings, dsIndexJobSettings: DSInde
DownsamplerContext.dsLogger.info(s"Index Downsampling Driver completed successfully for downsample period " +
s"$downsamplePeriodStr doFullMigration=$doFullMigration")
val jobCompleted = Kamon.counter("index-migration-completed").withTag("downsamplePeriod", downsamplePeriodStr)
val jobCompletedNoTags = Kamon.counter("index-migration-completed-success").withoutTags()
jobCompleted.increment()
jobCompletedNoTags.increment()

if (!doFullMigration) {
val downsampleHourStartGauge = Kamon.gauge("index-downsampler-period-start-hour")
Expand Down

0 comments on commit 19d8ed9

Please sign in to comment.