Documentation
      ¶
    
    
  
    
  
    Index ¶
Constants ¶
      View Source
      
  
const ( // Namespace is the name space for metrics exported to prometheus Namespace = "dealbot" // StorageTasks is the subsystem to record storage task metrics StorageTasks = "storage_tasks" // RetrievalTasks is the subsystem to record retrieval tasks metrics RetrievalTasks = "retrieval_tasks" // Duration is the name of our metric -- the duration it took to get to the given status Duration = "duration" // Help is a description of what duration measures Help = "task duration in milliseconds to get to the specified status" )
Variables ¶
      View Source
      
  var Buckets = []float64{ float64(time.Second.Milliseconds()), float64(time.Minute.Milliseconds()), float64(time.Hour.Milliseconds()), float64(time.Hour.Milliseconds() * 24), }
Buckets are the default histogram buckets for measuring duration (essentially, second, minute, hour, day, and everything else)
      View Source
      
  var RetrievalLabels = []string{metrics.UUID, metrics.Status, metrics.Miner, metrics.PayloadCID, metrics.CARExport}
    RetrievalLabels are the way we categorize retrieval tasks TODO: do we want ALL of these labels? Do PayloadCID/CARExport matter here?
      View Source
      
  var StorageLabels = []string{metrics.UUID, metrics.Status, metrics.Miner, metrics.MaxPriceAttoFIL, metrics.Size, metrics.StartOffset, metrics.FastRetrieval, metrics.Verified}
    StorageLabels are the ways we categorize storage tasks TODO: do we want ALL of these labels? It will mean a LOT of data
Functions ¶
func NewPrometheusMetricsRecorder ¶
func NewPrometheusMetricsRecorder() metrics.MetricsRecorder
NewPrometheusMetricsRecorder returns a recorder that is connected to prometheus
Types ¶
This section is empty.
 Click to show internal directories. 
   Click to hide internal directories.