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

Monaco - setting option for a new ActiveGate

SjoerdB
Advisor

Hi all,

Situation:

  • Multi-tenant environment for dev/test/acc/prod
  • Single source monaco script for all tenants
  • automated install of activegates
  • Activegates created and configured by automation, split between routing/extension AG's

Usecase:

  • After installation of Activegates, I want to run my MoNaCo script to update the "Extension Execution Controller profile" to "High" for my extension-activegates, on every environment
  • I want to create one rule that does it all, without knowing the Activegate-ID's upfront, hence I need to wildcard or to have a selector-rule to find the activegates
Verbose description:
I want to set the eec.remote for my activegates to HIGH via monaco. If I know the exact object reference of the ActiveGate, I can pass that to the scope value. BUT…. I don’t know the exact object reference, because new ActiveGates might be installed, and they get different ids in the different tenants that I service with this one MoNaCo….
 
Below config works (because I use the known ActiveGate ID)
- id: eecgateway 
config:
template: eecgateway.json
skip: false
type:
settings:
schema: builtin:eec.remote
schemaVersion: 0.1.1
scope: ENVIRONMENT_ACTIVE_GATE-00000000123ABC0
 
this is what I want to achieve, but obviously doesn’t work:
- id: eecgateway 
config:
template: eecgateway.json
skip: false
type:
settings:
schema: builtin:eec.remote
schemaVersion: 0.1.1
scope: ENVIRONMENT_ACTIVE_GATE-*
I know the -* is not part of the syntax, it is just as an example for what I try to achieve.
 
For completeness sake, this is the eecgateway.json:
{
"performanceProfile": "HIGH"
}

Of course I will continue to search for a solution, but maybe it is something that any of you have already done before...

Dynatrace Certified Professional
3 REPLIES 3

AntonPineiro
DynaMight Guru
DynaMight Guru

Hi,

I am surprised it works because that API is not in Supported configuration API types 

I think a custom script might help:

  1. Get list of ActiveGates in tenants.
  2. Filter ActiveGates you are interested.
  3. Apply that configuration each ActiveGate via API.

You can find a example API call here:

AntonPineiro_0-1723202607661.png

Best regards

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

thanks for your reply.

At this moment I want to exclusively stick with Monaco if possible... As mentioned, the solution worked fine, and the download of the eec.local and eec.remote also works. For eec.local I also created a working script.

so question remains: if this is/would be supported, how to instruct monaco to iterate over queried/found instances. I guess I need a different scope-type with a reference, but have no clue yet on the how...

Dynatrace Certified Professional

Hi,

I think that is not possible today in Monaco, but let wait another answers.

Best regards

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

Featured Posts