forked from pool/golang-github-prometheus-prometheus
31 lines
996 B
Diff
31 lines
996 B
Diff
|
From 2d3ffcec3eca92e678077b64afc14b45b6e33643 Mon Sep 17 00:00:00 2001
|
||
|
From: Silvio Moioli <smoioli@suse.de>
|
||
|
Date: Tue, 28 Mar 2017 14:08:03 +0200
|
||
|
Subject: [PATCH] Do not force the pure Go name resolver
|
||
|
|
||
|
Revert to Go's default mechanism that will decide between the `netgo`
|
||
|
pure-Go implementation and the `netcgo` cgo-based implementation depending
|
||
|
on OS and environment variables.
|
||
|
|
||
|
This allows, among other things, to use Prometheus to scrape mDNS targets.
|
||
|
---
|
||
|
.promu.yml | 2 +-
|
||
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
||
|
|
||
|
diff --git a/.promu.yml b/.promu.yml
|
||
|
index 27aa3aa..6ad3011 100644
|
||
|
--- a/.promu.yml
|
||
|
+++ b/.promu.yml
|
||
|
@@ -6,7 +6,7 @@ build:
|
||
|
path: ./cmd/prometheus
|
||
|
- name: promtool
|
||
|
path: ./cmd/promtool
|
||
|
- flags: -a -tags netgo
|
||
|
+ flags: -a
|
||
|
ldflags: |
|
||
|
-X {{repoPath}}/vendor/github.com/prometheus/common/version.Version={{.Version}}
|
||
|
-X {{repoPath}}/vendor/github.com/prometheus/common/version.Revision={{.Revision}}
|
||
|
--
|
||
|
2.7.4
|
||
|
|