(config promconfig.Config)
| 107 | } |
| 108 | |
| 109 | func (p *Prometheus) SetConfig(config promconfig.Config) error { |
| 110 | b, err := yaml.Marshal(config) |
| 111 | if err != nil { |
| 112 | return err |
| 113 | } |
| 114 | |
| 115 | return p.SetConfigEncoded(b) |
| 116 | } |
| 117 | |
| 118 | type Service struct { |
| 119 | p *Prometheus |
no test coverage detected