We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Here is my code to post metrics. Metrics explorer could not find the sent metrics. But there is no error shown
datadogClient := datadog.NewClient(config.API_KEY,config.APP_KEY) data := []datadog.DataPoint{datadog.DataPoint{1.0,15.0}} test:= datadog.Metric{} test.Metric = "order" test.Host = "golife" test.Points = data fmt.Println(test) err = datadogClient.PostMetrics([]datadog.Metric{test}) if err != nil{ panic(err) }
The text was updated successfully, but these errors were encountered:
@ctoto93 the first value you pass into a datadog.DataPoint needs to be a UNIX timestamp which is documented here: https://github.com/zorkian/go-datadog-api/blob/master/series.go#L13-L15
datadog.DataPoint
Please try something like datadog.DataPoint{float64(time.Now().Unix()), 15.0} and let us know whether that works for you.
datadog.DataPoint{float64(time.Now().Unix()), 15.0}
Sorry, something went wrong.
Follow up on this, I couldn't find any docs for the list of Types you can specify with a metric. Any idea?
@seiffert care to raise a PR with an example in the Readme?
No branches or pull requests
Here is my code to post metrics. Metrics explorer could not find the sent metrics.
But there is no error shown
The text was updated successfully, but these errors were encountered: