@@ -74,14 +74,15 @@ type handler struct {
74
74
unixfsGetMetric * prometheus.SummaryVec // deprecated, use firstContentBlockGetMetric
75
75
76
76
// response type metrics
77
- getMetric * prometheus.HistogramVec
78
- unixfsFileGetMetric * prometheus.HistogramVec
79
- unixfsGenDirGetMetric * prometheus.HistogramVec
80
- carStreamGetMetric * prometheus.HistogramVec
81
- rawBlockGetMetric * prometheus.HistogramVec
82
- tarStreamGetMetric * prometheus.HistogramVec
83
- jsoncborDocumentGetMetric * prometheus.HistogramVec
84
- ipnsRecordGetMetric * prometheus.HistogramVec
77
+ getMetric * prometheus.HistogramVec
78
+ unixfsFileGetMetric * prometheus.HistogramVec
79
+ unixfsDirIndexGetMetric * prometheus.HistogramVec
80
+ unixfsGenDirListingGetMetric * prometheus.HistogramVec
81
+ carStreamGetMetric * prometheus.HistogramVec
82
+ rawBlockGetMetric * prometheus.HistogramVec
83
+ tarStreamGetMetric * prometheus.HistogramVec
84
+ jsoncborDocumentGetMetric * prometheus.HistogramVec
85
+ ipnsRecordGetMetric * prometheus.HistogramVec
85
86
}
86
87
87
88
// StatusResponseWriter enables us to override HTTP Status Code passed to
@@ -246,8 +247,13 @@ func newHandler(c Config, api API) *handler {
246
247
"gw_unixfs_file_get_duration_seconds" ,
247
248
"The time to serve an entire UnixFS file from the gateway." ,
248
249
),
250
+ // UnixFS: time it takes to find and serve an index.html file on behalf of a directory.
251
+ unixfsDirIndexGetMetric : newHistogramMetric (
252
+ "gw_unixfs_dir_indexhtml_get_duration_seconds" ,
253
+ "The time to serve an index.html file on behalf of a directory from the gateway. This is a subset of gw_unixfs_file_get_duration_seconds." ,
254
+ ),
249
255
// UnixFS: time it takes to generate static HTML with directory listing
250
- unixfsGenDirGetMetric : newHistogramMetric (
256
+ unixfsGenDirListingGetMetric : newHistogramMetric (
251
257
"gw_unixfs_gen_dir_listing_get_duration_seconds" ,
252
258
"The time to serve a generated UnixFS HTML directory listing from the gateway." ,
253
259
),
0 commit comments