Skip to content

Simple DataDog library for pushing metrics and logs

Notifications You must be signed in to change notification settings

torotonnato/gobarebones

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

42 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

gobarebones v0.1

Warning: W.I.P., do not use

A stripped down and embeddable implementation of a DataDog agent in golang that is extremely easy to set up and use. You need an API key and the correct hostname for your region (look in config/env.go for an hardcoded list).

This package is meant to be simple and was made just for the sake of it so, again, DO NOT USE IT yet, especially in production.

The objectives of this little library:

  1. Have no dependencies except for the std lib
  2. Just push metrics and logs, nothing else
  3. Do some optimizations to keep it all very lightweight

TODO:

  • Logs
  • Agent
  • Refactor
  • Metrics
  • Testing

How to run the example

Go to example/ and add a config.json file like this:

{
    "Region": "https://datadoghq.eu",
    "APIKey": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
}

go run example/main.go

Log in into DataDog, go to Metrics -> Summary. You should see two new metrics:

system.sensors.temp1
system.sensors.light

Now export the metrics into a test dashboard.

example

About

Simple DataDog library for pushing metrics and logs

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages