func Load(configFile string) (*Config, error) {
	log.Infof("Loading configuration from %s", configFile)
	buf, err := ioutil.ReadFile(configFile)
	if err != nil {
		return nil, err
	}
	c := Config{configFile: configFile}
	err = yaml.Unmarshal(buf, &c)
	if err != nil {
		return nil, err
	}
	return &c, nil
}
Load attempts to parse the given config file and return a Config object.
package config
import (
	"fmt"
	"io/ioutil"
	"path/filepath"
	"strings"
	"time"
	log "github.com/golang/glog"
	"github.com/prometheus/client_golang/prometheus"
	"github.com/prometheus/common/model"
	"gopkg.in/yaml.v2"
)