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

Monaco - dashboard - managment zone id

tomaxp
Observer

Hi,
I'm trying to manage the monaco automation.
I have a problem with the dashboard configuration.
I have tried to create Service health with managment zone. In a JSON file, I have to provide the management zone id.
I have created the management zone with Monaco too.
Please advise how to make Monaco retrieve the appropriate id management zone by itself.
I try with this configuration:
json:

"managementZone": {
"id": "{{ .managmentzone_id }}",
"name": "demo_test"



yaml:

managmentzone_id: project/management-zone/zone.json



This configuration create correct dashboard, but without managment zone





4 REPLIES 4

Julius_Loman
DynaMight Legend
DynaMight Legend

The yaml part is wrong in your case, you need to specify the .id or .name suffix depending on what you need to reference:

managmentzone_id: project/management-zone/zone.id

The zone in this case is the name of the entity defined in the yaml file for management zones.

Certified Dynatrace Master | Alanata a.s., Slovakia, Dynatrace Master Partner

Hello @Julius_Loman when deploying Monaco maintenance, we are stuck with yaml where its not able to take the management zone id and its giving an error: 

Invalid configuration - failed to resolve parameter values: parameter `mzID` cannot reference `maintenance:management-zones:XXXXX:id`: referenced config not found

The yaml used here is: https://github.com/Dynatrace/dynatrace-configuration-as-code/blob/main/cmd/monaco/generate/deletefil...

But I guess I am not able pass mzID correctly, can you please advise where to pass management zone id in this YAML?

Thanks in advance.

 

Hi,

Do you have defined management zone as them? https://github.com/Dynatrace/dynatrace-configuration-as-code/blob/main/cmd/monaco/generate/deletefil...

You need to create a management zone and maintenance window has a reference to that management zone id.

Best regards

❤️ Emacs ❤️ Vim ❤️ Bash ❤️ Perl

Yes, I found the issue and it was more into config.yaml of maintenance where mzID needs to be defined. Below is format if someone is stuck in similar issue.

Raj_0-1701848455602.png

 

Featured Posts