question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

dbm query monitoring for read replicas

See original GitHub issue

Thanks for the awesome dbm feature for database monitoring. We use a master/standby system where all the interesting stuff happens on the standby queries since they get the live traffic. I’m integrating the database monitoring and am curious how datadog’s DBM monitoring will work if pointed at a read replica?

If it’s pointed at a read replica, it will be unable to write to the datadog schema. Does that mean query samples are not supported for read replicas? Any thoughts on how to get query samples for read replicas?

Thanks!

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
cep21commented, Oct 15, 2021

It does. Thanks so much @alexandre-normand !

0reactions
alexandre-normandcommented, Oct 15, 2021

You’re correct about the function. That said, there’s a simpler answer to this problem.

Usually, the setup steps which include creating the schema and function happen on the primary instance which then gets replicated to the replica and enables the agent integration to use the function (and schema along with access grants). So unless you don’t want to run the setup on the primary for some reason, you shouldn’t have issues getting the agent integration working.

Let me know if that helps clarify things!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Working with read replicas - AWS Documentation - Amazon.com
You can monitor the status of a read replica in several ways. The Amazon RDS console shows the status of a read replica...
Read more >
Setting Up Database Monitoring for Amazon RDS managed ...
Database Monitoring provides deep visibility into your MySQL databases by exposing query metrics, query samples, explain plans, connection data, ...
Read more >
Follower Reads | CockroachDB Docs
A follower read is performed on the nearest replica relative to the SQL gateway that is executing the SQL statement regardless of the...
Read more >
RDS monitoring & Read Replicas #40 #HowTo - YouTube
In this video, we go over RDS monitoring metrics and events.We also see what are read replicas, how they are different from multi...
Read more >
Optimising Performance with a Read-replica Database
Our use-case for the read-replica is to keep user-facing requests fast by directing less important queries to the read replica.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found