Skip to content

Commit

Permalink
gateway: expand get metric metadata
Browse files Browse the repository at this point in the history
  • Loading branch information
Stebalien committed Jun 5, 2019
1 parent c7e9261 commit 886db44
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion core/corehttp/metrics.go
Original file line number Diff line number Diff line change
Expand Up @@ -97,8 +97,12 @@ var (
peersTotalMetric = prometheus.NewDesc(
prometheus.BuildFQName("ipfs", "p2p", "peers_total"),
"Number of connected peers", []string{"transport"}, nil)

unixfsGetMetric = prometheus.NewSummary(prometheus.SummaryOpts{
Name: "unixfsGet",
Namespace: "ipfs",
Subsystem: "http",
Name: "unixfs_get_latency_seconds",
Help: "The time till the first block is received when 'getting' a file from the gateway.",
})
)

Expand Down

0 comments on commit 886db44

Please sign in to comment.