For shared resources such as a database, we typically map the mysql service to another name via the DD_SERVICE_MAPPING environment variable.
example:
Service A: DD_SERVICE_MAPPING=mysql:service-a-mysql
Service B: DD_SERVICE_MAPPING=mysql:service-b-mysql
naturally the nice thing about this is we're able to isolate calls between services. however, in the service map, i would like to show that these services are actually using the same database as without this, its a little misleading as to what the topology of our environment is, i.e. i would like to be able to see what services will be affected if the database needs to take some down time.
Ideally, i can create a "shared resources" group, and have both service A and service B demonstrate that they are infact utilizing the same shared resource.
For shared resources such as a database, we typically map the
mysqlservice to another name via theDD_SERVICE_MAPPINGenvironment variable.example:
Service A:
DD_SERVICE_MAPPING=mysql:service-a-mysqlService B:
DD_SERVICE_MAPPING=mysql:service-b-mysqlnaturally the nice thing about this is we're able to isolate calls between services. however, in the service map, i would like to show that these services are actually using the same database as without this, its a little misleading as to what the topology of our environment is, i.e. i would like to be able to see what services will be affected if the database needs to take some down time.
Ideally, i can create a "shared resources" group, and have both service A and service B demonstrate that they are infact utilizing the same shared resource.