# Is there any way to monitor Rancher with Dynatrace?

**URL:** <https://community.dynatrace.com/t/is-there-any-way-to-monitor-rancher-with-dynatrace/21270>\
**Category:** Container platforms\
**Tags:** kubernetes\
**Created:** [July 11, 2019, 4:13pm UTC](https://community.dynatrace.com/t/is-there-any-way-to-monitor-rancher-with-dynatrace/21270 "2019-07-11T16:13:24Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![maria\_bolanos](https://avatars.discourse-cdn.com/v4/letter/m/f14d63/32.png) [@maria\_bolanos](https://community.dynatrace.com/u/maria_bolanos)\
**Post date:** [July 11, 2019, 4:13pm UTC](https://community.dynatrace.com/t/is-there-any-way-to-monitor-rancher-with-dynatrace/21270/1 "2019-07-11T16:13:24Z")

</div>

I would like to have information about how to monitor Rancher (orchestrator of kubernetes). Any help is very welcome.

Thank you in advance!

María.

---

<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:** [July 11, 2019, 4:25pm UTC](https://community.dynatrace.com/t/is-there-any-way-to-monitor-rancher-with-dynatrace/21270/2 "2019-07-11T16:25:10Z")

</div>

What is the purpose of monitoring rancher? If it is written in Java or .NET it will be possible. But in general in such cases most of the time it will be fine for you just monitoring it as a process. Transactional monitoring doesn’t have sense because you have really limited option for impacting how it is handling transactions. So in general you will not use it. Better approach I think it would be monitoring it as a process with some extra metrics fetched from it via plugin (if rancher is exposing them somehow).

Containers orkiestrated by rancher will be monitored the same way as any other containers.

Sebastian

---

<div class="post-metadata">

**Author:** ![urs\_fischer](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/urs_fischer/32/7896_2.png) [@urs\_fischer](https://community.dynatrace.com/u/urs_fischer)\
**Post date:** [September 15, 2021, 7:35am UTC](https://community.dynatrace.com/t/is-there-any-way-to-monitor-rancher-with-dynatrace/21270/3 "2021-09-15T07:35:32Z")

</div>

Good Day&nbsp;María,

Did you get any information about your topic? We have the same in front of us (Monitoring Suse Rancher with Dynatrace).

Greetings, Urs

---

<div class="post-metadata">

**Author:** ![rodrigo\_alvare1](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/rodrigo_alvare1/32/1927_2.png) [@rodrigo\_alvare1](https://community.dynatrace.com/u/rodrigo_alvare1)\
**Post date:** [November 24, 2021, 5:28pm UTC](https://community.dynatrace.com/t/is-there-any-way-to-monitor-rancher-with-dynatrace/21270/4 "2021-11-24T17:28:09Z")

</div>

Hi,

To monitor Rancher, there are two parts: deploy the dynatrace operator and pull the API metrics from Rancher.

1) Install OneAgent Operator: This step is the same as for a generic K8s cluster&nbsp;[Set up Dynatrace on Kubernetes — Dynatrace Docs](https://www.dynatrace.com/support/help/shortlink/kubernetes-hub)&nbsp;or&nbsp;[Kubernetes Classic — Dynatrace Docs](https://www.dynatrace.com/support/help/shortlink/kubernetes-monitor-hub)

2) Pull metrics from the Rancher/K8s API. You can use the following steps to pull the API metrics&nbsp; gathering the URL, user, and API key [Manually deploy ActiveGate as a StatefulSet — Dynatrace Docs](https://www.dynatrace.com/support/help/shortlink/connect-kubernetes-clusters#rancher)

I have some screenshots (sorry for the low res :P) with the step-by-step (some screens may change in new Rancher releases):  
a)&nbsp;Select the Global project and in the top menu Security \> Users

 ![Screen Shot 2021-11-24 at 12.18.01 PM.png](https://global.discourse-cdn.com/dynatrace/original/3X/3/5/358b69af6ee37554f9c49aa79715a04d92482c4e.png)

b)  Now on the Users page you can add a new user in “Add User” button

 ![Screen Shot 2021-11-24 at 12.18.24 PM.png](https://global.discourse-cdn.com/dynatrace/original/3X/3/7/37b29a762c55c2cf782bd3b4b2e4581b93ed83c2.jpeg)

c)Create the Dynatrace user (use the name you prefer and password, those values will be needed later- user&password), select “Standard User”

 ![Screen Shot 2021-11-24 at 12.19.35 PM.png](https://global.discourse-cdn.com/dynatrace/original/2X/8/8579bf09e4c30de45d3e49acea44c3bd54202d74.jpeg)

d) Now that we have our user, we need to make the user a member of the project we want to report to Dynatrace. Add a Member:&nbsp;Change the project from Global to select your project that want to monitor, in my case it is called “local”

 ![Screen Shot 2021-11-24 at 12.21.22 PM.png](https://global.discourse-cdn.com/dynatrace/original/2X/b/b0506728056af85cd4e611c71bace22ac0afe7a0.png)

e)On the project, select on the top menu “Members” and click on “Add Member”

 ![Screen Shot 2021-11-24 at 12.22.34 PM.png](https://global.discourse-cdn.com/dynatrace/original/3X/6/b/6b181d8d365b1574e70b01b23cc87dafe08e7dcb.jpeg)

 ![Screen Shot 2021-11-24 at 12.23.10 PM.png](https://global.discourse-cdn.com/dynatrace/original/2X/9/9fd6cdb9f023c5d0fd6c06c4b5a84cdab92d3070.jpeg)

f)&nbsp;Now that we have the Dynatrace user with access to the project, we need to log out and log in with that Dynatrace user and create an API token.&nbsp;Log in as Dynatrace User, with the user and password created before Once logged, click on the top right user icon and select “API & Keys”

 ![Screen Shot 2021-11-24 at 12.24.12 PM.png](https://global.discourse-cdn.com/dynatrace/original/2X/5/5ab173df7aa194df41bb09b32048e44816f24944.png)

g) The click Add Key

 ![Screen Shot 2021-11-24 at 12.24.37 PM.png](https://global.discourse-cdn.com/dynatrace/original/3X/7/5/75b84fca3f654c33110005cf1334df874399114c.jpeg)

It will give you the endpoint and Bearer Token, you need to save that token to provide it to Dynatrace configuration

 ![Screen Shot 2021-11-24 at 12.25.15 PM.png](https://global.discourse-cdn.com/dynatrace/original/3X/f/0/f078c3dc4987fb417b9cd8352aecb0c5ece2931a.jpeg)

h)&nbsp;In Dynatrace UI you can configure the endpoint and Bearer Token , selecting on the Dynatrace UI left menu “Settings” \> expand “Cloud and virtualization” \> “Kubernetes” and click on the “Connect new cluster” and fill the endpoint name and bearer token with our previous captured values

 ![Screen Shot 2021-11-24 at 12.26.15 PM.png](https://global.discourse-cdn.com/dynatrace/original/2X/6/6b3b6ca37622da6a8b9fdc4a139dbf22d72b140f.jpeg)

Then at the bottom click on “Connect” button. If everything works as expected it will connect to the Rancher cluster and start pulling Kubernetes metrics, after a couple of minutes they will be populated on the Kubernetes dashboard

---

<div class="post-metadata">

**Author:** ![rodrigo\_alvare1](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/rodrigo_alvare1/32/1927_2.png) [@rodrigo\_alvare1](https://community.dynatrace.com/u/rodrigo_alvare1)\
**Post date:** [November 24, 2021, 5:30pm UTC](https://community.dynatrace.com/t/is-there-any-way-to-monitor-rancher-with-dynatrace/21270/5 "2021-11-24T17:30:22Z")

</div>

For multiple clusters use the&nbsp;[https://rkeclusterdomain/k8s/clusters/{ClusterId}](https://rke.dc3on.lcl/k8s/clusters/%7BClusterId%7D)&nbsp;&nbsp;URL

 ![Screen Shot 2021-11-24 at 12.29.50 PM.png](https://global.discourse-cdn.com/dynatrace/original/2X/4/4c4c64b35893aaa73e012b42486c3daa0e0e4417.jpeg)
