MCPcopy Index your code
hub / github.com/coder/coder / readPrometheusDoc

Function readPrometheusDoc

scripts/metricsdocgen/main.go:133–139  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

131}
132
133func readPrometheusDoc() ([]byte, error) {
134 doc, err := os.ReadFile(prometheusDocFile)
135 if err != nil {
136 return nil, err
137 }
138 return doc, nil
139}
140
141func updatePrometheusDoc(doc []byte, metricFamilies []*dto.MetricFamily) ([]byte, error) {
142 i := bytes.Index(doc, generatorPrefix)

Callers 1

mainFunction · 0.85

Calls 1

ReadFileMethod · 0.65

Tested by

no test coverage detected