Skip to content

Commit

Permalink
removed comments
Browse files Browse the repository at this point in the history
  • Loading branch information
wrighbr committed Jan 25, 2021
1 parent 9fef7ca commit ec90e13
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 28 deletions.
22 changes: 0 additions & 22 deletions datadog/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,29 +46,7 @@ func Gauge(metricName string, value float64, tags []string) {

}

// func getDataDogConfig() (apiKey string, err error) {
// path := os.Getenv("DEPENDABOT_CONFIG")
// jsonFile, err := os.Open(path)
// if err != nil {
// return "", err
// }

// defer jsonFile.Close()

// byteValue, _ := ioutil.ReadAll(jsonFile)

// var result DatadogConfig
// json.Unmarshal([]byte(byteValue), &result)

// return result.Datadog.APIKey, nil
// }

func postDataDogMetric(metric string, value int64, metricType string, tags []string) error {
// apiKey, err := getDataDogConfig()
// if err != nil {
// return err
// }

apiKey := config.AppConfig.Datadog.APIKey

url := "https://api.datadoghq.eu/api/v1/series?api_key=" + apiKey
Expand Down
6 changes: 0 additions & 6 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -68,12 +68,6 @@ func main() {
log.Fatal().Err(err).Msg("failed to read github app config:")
}

// // create statsd client
// err = datadog.CreateClient()
// if err != nil {
// log.Error().Err(err).Msg("failed to register dogstatsd client")
// }

//schedule checks
scheduleTime := config.EnvVars.Schedule
if scheduleTime == "" {
Expand Down

0 comments on commit ec90e13

Please sign in to comment.