2016-05-05 02:45:51 -07:00
|
|
|
// Copyright 2016 The Prometheus Authors
|
2013-06-11 13:59:27 -07:00
|
|
|
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
|
|
// you may not use this file except in compliance with the License.
|
|
|
|
// You may obtain a copy of the License at
|
|
|
|
//
|
|
|
|
// http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
//
|
|
|
|
// Unless required by applicable law or agreed to in writing, software
|
|
|
|
// distributed under the License is distributed on an "AS IS" BASIS,
|
|
|
|
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
|
|
// See the License for the specific language governing permissions and
|
|
|
|
// limitations under the License.
|
|
|
|
|
2015-04-20 03:24:25 -07:00
|
|
|
package discovery
|
2013-06-11 13:59:27 -07:00
|
|
|
|
|
|
|
import (
|
2016-05-05 02:45:51 -07:00
|
|
|
"github.com/prometheus/prometheus/retrieval/discovery/dns"
|
2015-05-20 09:10:29 -07:00
|
|
|
|
2013-06-11 13:59:27 -07:00
|
|
|
"github.com/prometheus/prometheus/config"
|
|
|
|
)
|
|
|
|
|
2016-05-05 02:45:51 -07:00
|
|
|
// NewDNS creates a new DNS based discovery.
|
|
|
|
func NewDNS(conf *config.DNSSDConfig) *dns.Discovery {
|
|
|
|
return dns.NewDiscovery(conf)
|
2013-09-10 08:48:05 -07:00
|
|
|
}
|