11 Jan 2024
	
		
		05:55 AM
	
	
	
	
	
	
	
	
	
	
	
	
	
	
 - last edited on 
    
	
		
		
		06 Mar 2024
	
		
		03:17 PM
	
	
	
	
	
	
	
	
	
	
	
	
	
	
 by 
				
		
		
			Michal_Gebacki
		
		
		
		
		
		
		
		
	
			
		
For instance, if 'Problem Notifications' include a Slack webhook (URL) with a secret, would it still be possible to download this valid URL value using Monaco? Additionally, how does Monaco deploy handle such a scenario? Can we set a non-secret URL in the JSON payload for this purpose? or using env variable instead write a non-secret URL?
Solved! Go to Solution.
11 Jan 2024 07:53 AM
Hi,
I would suggest you to create that problem notification integration in the UI and download all tenants configurations with "monaco download" and checking what is written in YAML and JSON files.
Best regards
11 Jan 2024 08:16 AM
This is also what I do for each new configuration to add to my Monaco 🙂
It's easier to do it this way.
11 Jan 2024 09:12 AM - edited 11 Jan 2024 09:13 AM
HI @AntonPineiro @gbaudart , Thanks for your answers.
This is what I donwload here, I just want to confirm what if I monaco deploy such json to the target dynatrace env, this URL will not working right? this need manually to set URL on target dynatrace env. am I correct?
11 Jan 2024 09:49 AM
Yes, If you have multiple environments, you will need to create variables for ID/Urls, etc.
You can do it with the "extractedIDs" parameters
11 Jan 2024 09:54 AM
For example set system env variable "$extractedIDs" as URL value, and in the json file using "$extractedIDs" then using monaco deploy to set my slack URL, My understanding correct?
11 Jan 2024 10:25 AM
In Monaco, for each conf, you must have 2 file. One JSON that its your conf information, and one Yaml that contains variables, environments etc.
I'm taking one of my dashboard conf to show you a example :
JSON :
"name": "Service or request",
      "tileType": "SERVICE_VERSATILE",
      "configured": true,
      "bounds": {
        "top": 2622,
        "left": 0,
        "width": 532,
        "height": 304
      },
      "tileFilter": {},
      "isAutoRefreshDisabled": false,
      "assignedEntities": [
        "{{ .extractedIDs.id_your_variable_name }}"YAML :
- id: YOUR_DASHBOARD_ID
  config:
    name: YOUR_DASHBOARD_NAME
    template: your_dashboard_json.json
    skip: false
  environmentOverrides:
  - environment: your_environment_1
    override:
      skip: false
      parameters:
        extractedIDs:
          type: value
          value:
            id_your_variable_name: SERVICE-IDXXX
  - environment: your_environment_2
    override:
      skip: false
      parameters:
        extractedIDs:
          type: value
          value:
            id_your_variable_name: SERVICE-IDXXX
  type:
    api: dashboard