Home / Companies / New Relic / Blog / Post Details
Content Deep Dive

Monitoring your Go database with New Relic

Blog post from New Relic

Post Details
Company
Date Published
Author
Emilio Garcia
Word Count
2,157
Language
English
Hacker News Points
-
Summary

Object-relational mapping (ORM) tools serve as an abstraction layer between databases and programming languages, improving code readability and reducing its footprint by representing database transactions as code rather than explicit queries. In the Go community, GORM is a popular ORM due to its developer-friendly design and extensive features. To monitor performance expectations when using GORM, the New Relic Go agent can be employed to instrument and observe Go applications within New Relic. By integrating New Relic's SDK with GORM, developers can manually trace and monitor database transactions, utilizing features such as distributed tracing for a more detailed analysis. The setup includes using New Relic instrumented database drivers and configuring the Go agent with license keys, debugging options, and distributed tracing capabilities. This integration provides insights into metrics like response time, throughput, CPU utilization, and memory usage, offering a comprehensive view of application performance and database transaction costs.