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

Download or deploy support Credential support in Monaco

panda
Contributor

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? 

6 REPLIES 6

AntonPineiro
DynaMight Guru
DynaMight Guru

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

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

This is also what I do for each new configuration to add to my Monaco 🙂
It's easier to do it this way.

Observability consultant - Dynatrace Associate Certified

panda
Contributor

WX20240111-170959@2x.png

 

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?

Yes, If you have multiple environments, you will need to create variables for ID/Urls, etc.
You can do it with the "extractedIDs" parameters

Observability consultant - Dynatrace Associate Certified

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?

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
Observability consultant - Dynatrace Associate Certified

Featured Posts