Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/muroon/datadog_sample
https://github.com/muroon/datadog_sample
datadog-apm
Last synced: 8 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/muroon/datadog_sample
- Owner: muroon
- Created: 2020-04-04T16:27:49.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2023-02-21T02:18:29.000Z (over 1 year ago)
- Last Synced: 2024-06-21T15:47:19.091Z (5 months ago)
- Topics: datadog-apm
- Language: Go
- Size: 36.1 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# datadog_sample
The sample of Datadog APM.
Trace Result in APM
![FlameGraph_grpc_exp](https://user-images.githubusercontent.com/301822/78885124-01f97f00-7a97-11ea-93a2-12b7e21edc56.png)
## Requirements
### Datadog Agent
[Install](https://app.datadoghq.com/account/login?next=%2Faccount%2Fsettings#agent)
### DB(mysql)
```
CREATE DATABASE `datadog_sample`;USE `datadog_sample`;
CREATE TABLE `message` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT 'ID',
`text` text CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT 'text',
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='message'
```## config file
Configuration information such as gRPC Server address and DB address is in the config file.
please edit [config.yaml](https://github.com/muroon/datadog_sample/blob/master/config/config.yaml)## gRPC Server
```
go run grpcserver/main.go
```## HTTP Server
```
go run httpserver/main.go
```## Access
```
curl http://localhost:8080/grpc/
```