DataDog integration with SAM Pro - SaaS License Managment

dineshthaku5524
Tera Contributor

Hi, 
Has anyone integrated Datadog app with SAM, in order to manage the licenses, if yes, please let me know.
Thanks in advance

Regards

Dinesh Thakur

5 REPLIES 5

dineshthaku5524
Tera Contributor

Hi Dennis, 
Thank you for your response! We have gone through the above links built a sub flow/flow for API call and get the details but there are different features for Datadog like Datadog Proplus, Incident management, log indexes, Pipeline visibility having Per Application instance, User subscription and SaaS Consumption license metric types.


Now, the difficulty is mapping these details with Service Now tables, this might need a hybrid approach, not sure! 🙂
 

Regards

Dinesh Thakur

I'm glad to hear that I was able to help you and that you already have the first data in the system. I agree with you that you need to get the data into the system in different ways.

 

Should my response prove helpful, please consider marking it as the Accepted Solution/Helpful to assist closing this thread.

dineshthaku5524
Tera Contributor

Hey Dennis,
We have an approach, trying to populate installation in Software installation table, marrying Discovery model and Software model but there are two challenges 

1. Unable to create manual entry in software installation table as "New" button is not visible 

2. For testing purpose, I linked a software installation data married Discovery model and Software model, but some reason reconciliation does not show me remediation option for creating allocations.
Software Entitlement, License Type = Subscription, License Metric = Per Device, Purchased Rights = 60, Allocations available = 60



Any suggestion?

 

Hi @dineshthaku5524,

 


@dineshthaku5524 wrote:

1. Unable to create manual entry in software installation table as "New" button is not visible 

 

 Correct, it's not possible to add install data manually, you've to add this feature into your inventory import logic (similar as Discovery or SCCM it does). It could be solved based on a simple import set, please check the SN docs about the required payload & fields - Sample payload for generic software install records (servicenow.com)

 

Simple ChatGTP script for testing:

// Define the computer name and software installation details
var computerName = 'SAMILMT8';
var publisher = 'Microsoft';
var version = '2017';
var displayName = 'Microsoft SQL Server Enterprise 2017';

// Create a GlideRecord object for cmdb_ci_computer to find the target computer CI
var compGR = new GlideRecord('cmdb_ci_computer');
compGR.addQuery('name', computerName); // Search for the computer CI with the name 'SAMILMT8'
compGR.query();

// Check if the computer CI exists
if (compGR.next()) {
    // Log the found computer CI for reference
    gs.info('Found Computer CI: ' + compGR.name);

    // Create a GlideRecord object for the cmdb_sam_sw_install table
    var swInstallGR = new GlideRecord('cmdb_sam_sw_install');
    swInstallGR.initialize(); // Initialize a new record

    // Set the fields for the software installation record
    swInstallGR.publisher = publisher;         // Set publisher to 'Microsoft'
    swInstallGR.version = version;             // Set version to '2017'
    swInstallGR.display_name = displayName;    // Set display_name to 'Microsoft SQL Server Enterprise 2017'
    
    // Set the installed_on field to reference the found computer CI's sys_id
    swInstallGR.installed_on = compGR.sys_id;  // Reference the computer CI

    // Insert the new software installation record
    var newSysID = swInstallGR.insert();

    // Log the Sys ID of the newly created record
    gs.info('New Software Installation Record Created with Sys ID: ' + newSysID);
} else {
    // Log if the computer CI is not found
    gs.warn('Computer CI not found with the name: ' + computerName);
}

 


@dineshthaku5524 wrote:

2. For testing purpose, I linked a software installation data married Discovery model and Software model, but some reason reconciliation does not show me remediation option for creating allocations.
Software Entitlement, License Type = Subscription, License Metric = Per Device, Purchased Rights = 60, Allocations available = 60


With "I linked ..." you mean, setting the software model field for a discovery model record? Did you chooses a random software model? If it's a random, I'm not sure if the reconcile will accept the link.

 

I would suggest to ensure the discovery model is normalized and publisher, product, version, edition is as expected (maybe a custom product is required). Second, create a software model matching the discovery model based on publisher/product/version/edition. Try to run again a recon.

 

 

Best, Dennis

 

Should my response prove helpful, please consider marking it as the Accepted Solution/Helpful to assist closing this thread.