# What, exactly, is detected as a failed database connection?

**URL:** <https://community.dynatrace.com/t/what-exactly-is-detected-as-a-failed-database-connection/22700>\
**Category:** Alerting\
**Tags:** databases, problem-detection\
**Created:** [December 10, 2019, 7:43pm UTC](https://community.dynatrace.com/t/what-exactly-is-detected-as-a-failed-database-connection/22700 "2019-12-10T19:43:01Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![jeff\_rowell](https://avatars.discourse-cdn.com/v4/letter/j/779978/32.png) [@jeff\_rowell](https://community.dynatrace.com/u/jeff_rowell)\
**Post date:** [December 10, 2019, 7:43pm UTC](https://community.dynatrace.com/t/what-exactly-is-detected-as-a-failed-database-connection/22700/1 "2019-12-10T19:43:01Z")

</div>

Can somebody clarify what, exactly, the “failed database connects” metric referenced in the “Detect failed database connects” problem detection rule represents? In a problem card that was opened via this rule, the “Metric anomaly detected” lists “Service connection failures fraction”. I am not clear, what this metric represents… what exactly is the problem detection based on? I presume its a failure in the call to whatever framework is being used in the monitored code to establish a connection to a DB… but I want to make sure that this is a correct understanding… the reference to a “service connection failures fraction” makes me question whether I have the correct understanding.

---

<div class="post-metadata">

**Author:** ![skrystosik](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/skrystosik/32/21133_2.png) [@skrystosik](https://community.dynatrace.com/u/skrystosik)\
**Post date:** [December 10, 2019, 9:48pm UTC](https://community.dynatrace.com/t/what-exactly-is-detected-as-a-failed-database-connection/22700/2 "2019-12-10T21:48:51Z")

</div>

You are right. Each time when framework responsible for connection acquisition is not able to establish connection before transaction, you have this metric violation.

Sebastian
