# How to setup alert for OS Service Monitoring?

**URL:** <https://community.dynatrace.com/t/how-to-setup-alert-for-os-service-monitoring/39245>\
**Category:** Dynatrace Tips\
**Tags:** tips-and-tricks\
**Created:** [April 11, 2023, 10:04am UTC](https://community.dynatrace.com/t/how-to-setup-alert-for-os-service-monitoring/39245 "2023-04-11T10:04:55Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![mateusz\_marek](https://avatars.discourse-cdn.com/v4/letter/m/ed8c4c/32.png) [@mateusz\_marek](https://community.dynatrace.com/u/mateusz_marek)\
**Post date:** [April 12, 2023, 6:12am UTC](https://community.dynatrace.com/t/how-to-setup-alert-for-os-service-monitoring/39245/3 "2023-04-12T06:12:28Z")

</div>

You can also use entity selectors to choose an OS Service based on its name:

```markup
type(os:service),entityName.startsWith("<name of OS service entity>")

```

host on which OS service is running:

```markup
type(os:service),fromRelationship.runsOn(type(HOST),entityName.startsWith("<name of the host>"))

```

or name of a process, which is associated with the OS service:

```markup
type(os:service),toRelationship.runsOn(type(PROCESS_GROUP_INSTANCE),entityName.startsWith("<name of the process entity>"))

```

---

_[View the full topic](https://community.dynatrace.com/t/how-to-setup-alert-for-os-service-monitoring/39245)._
