String colorized prometheus config yaml.
()
| 128 | |
| 129 | // String colorized prometheus config yaml. |
| 130 | func (c PrometheusConfig) String() string { |
| 131 | b, e := yaml.Marshal(c) |
| 132 | fatalIf(probe.NewError(e), "Unable to generate Prometheus config") |
| 133 | |
| 134 | return console.Colorize("yaml", string(b)) |
| 135 | } |
| 136 | |
| 137 | // JSON jsonified prometheus config. |
| 138 | func (c PrometheusConfig) JSON() string { |