()
| 148 | } |
| 149 | |
| 150 | func defaultGoCollectorOptions() internal.GoCollectorOptions { |
| 151 | return internal.GoCollectorOptions{ |
| 152 | RuntimeMetricSumForHist: map[string]string{ |
| 153 | "/gc/heap/allocs-by-size:bytes": goGCHeapAllocsBytes, |
| 154 | "/gc/heap/frees-by-size:bytes": goGCHeapFreesBytes, |
| 155 | }, |
| 156 | RuntimeMetricRules: []internal.GoCollectorRule{ |
| 157 | // Recommended metrics we want by default from runtime/metrics. |
| 158 | {Matcher: internal.GoCollectorDefaultRuntimeMetrics}, |
| 159 | }, |
| 160 | } |
| 161 | } |
| 162 | |
| 163 | // NewGoCollector is the obsolete version of collectors.NewGoCollector. |
| 164 | // See there for documentation. |
no outgoing calls