cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Create a way via API or GUI to determine the version of Dynatrace Operator in use

Radoslaw_Szulgo
Dynatrace Guru
Dynatrace Guru

As a huge organization, you have many deployments and no single person with the ability to check deployments.  It would be HUGELY helpful to us if there was API or method to determine what version of the DT operator is in use for applications so that we can be sure they stay current and appropriately run the recommended updates https://www.dynatrace.com/support/help/shortlink/full-stack-dto-k8#update 

Senior Product Manager,
Dynatrace Managed expert
2 REPLIES 2

Radoslaw_Szulgo
Dynatrace Guru
Dynatrace Guru

Dynatrace operator version is labeled so you can see this in UI:

Radoslaw_Szulgo_0-1657698658784.png

 

So you can query this via Monitored Entities API from Environments v2 :

 

curl -X GET "https://cluster-host/api/v2/entities/CLOUD_APPLICATION-123123123" -H "accept: application/json; charset=utf-8" -H "Authorization: Api-Token dt0c01.token"

And then you get:

{ 
"entityId": "CLOUD_APPLICATION-123123123",
"type": "CLOUD_APPLICATION",
"displayName": "dynatrace-operator",
"firstSeenTms": 1648553052817,
"lastSeenTms": 1657699408041,
"properties": {
"detectedName": "dynatrace-operator",
"observedBy": [ "API_MONITORING", "BUILTIN_METRICS" ],
"cloudApplicationLabels":
{ "app.kubernetes.io/name": "dynatrace-operator",
"app.kubernetes.io/version": "0.6.0",
"app.kubernetes.io/component": "operator"
},
...

 

To get the list I believe you can play with filtering entities by "CLOUD_APPLICATION" and set some tagging.

Senior Product Manager,
Dynatrace Managed expert

fstekelenburg
DynaMight Pro
DynaMight Pro

Has anybody, with this knowledge, created a way to automatically update the Operator?
And is it on the roadmap to let Dynatrace itself automatically update?

Kind regards, Frans Stekelenburg                 Certified Dynatrace Associate | measure.works, Dynatrace Partner