27 Jul 2022 08:24 AM
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
Solved! Go to Solution.
27 Jul 2022 08:25 AM - edited 27 Jul 2022 08:26 AM
Dynatrace operator version is labeled so you can see this in UI:
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.
03 Nov 2022 09:54 AM
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?