mirror of
https://github.com/prometheus/prometheus.git
synced 2025-07-03 19:13:23 +00:00
Check syntax of example configurations (#10753)
* Check syntax of example configurations Fix a mistake in the hetzner and vultr configs. Also it's easier not to fight the build system, and this will lint example code, so ignore a lint issue in custom-sd. Signed-off-by: David Leadbeater <dgl@dgl.cx> * No need to import Makefile.common, it just complicates things Signed-off-by: David Leadbeater <dgl@dgl.cx>
This commit is contained in:
parent
0505ba81e1
commit
fba3e847dc
5 changed files with 26 additions and 4 deletions
|
@ -155,6 +155,7 @@ func (a *Adapter) runCustomSD(ctx context.Context) {
|
|||
|
||||
// Run starts a Discovery Manager and the custom service discovery implementation.
|
||||
func (a *Adapter) Run() {
|
||||
//nolint:errcheck
|
||||
go a.manager.Run()
|
||||
a.manager.StartCustomProvider(a.ctx, a.name, a.disc)
|
||||
go a.runCustomSD(a.ctx)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue