MCPcopy Create free account
hub / github.com/minio/mc / JSON

Method JSON

cmd/admin-prometheus-generate.go:138–142  ·  view source on GitHub ↗

JSON jsonified prometheus config.

()

Source from the content-addressed store, hash-verified

136
137// JSON jsonified prometheus config.
138func (c PrometheusConfig) JSON() string {
139 jsonMessageBytes, e := json.MarshalIndent(c.ScrapeConfigs[0], "", " ")
140 fatalIf(probe.NewError(e), "Unable to marshal into JSON.")
141 return string(jsonMessageBytes)
142}
143
144// StatConfig - container to hold the targets config.
145type StatConfig struct {

Callers

nothing calls this directly

Calls 2

NewErrorFunction · 0.92
fatalIfFunction · 0.85

Tested by

no test coverage detected