Changes in server-config & uiConfig files

In order to run Insights Inference, there are changes that should be made in server-config.json, and uiConfig.json. Please adhere the following instructions, and make respective changes -

On this page:


Changes in server-config.json


Browse the following directory inside your Insights Installation directory -

.\Server2\.InSights\server-config.json

or

%INSIGHTS_HOME%\.InSights\serverconfig.json

%INSIGHTS_HOME% is the path that is set as Environment Variable.

Add the changes in your local server-config.json as highlighted below.

server-config.json

{

  "endpointData": {

 "elasticSearchEndpoint": "http://localhost:9200"

  },

"sparkConfigurations": {

       "appName" : "inSights",

"master" : "local[*]",

"sparkExecutorMemory" : "8g",

"sparkElasticSearchHost": "http://localhost",

"sparkElasticSearchPort": "9200",

"sparkElasticSearchConfigIndex": "",

"sparkElasticSearchResultIndex": "",

"kpiSize": "30",

"sparkResultSince": 5,

"sparkMasterExecutionEndPoint":"http://localhost:4040"

  },

...

 ...

 ...

Attributes of Spark Configurations:


For instance, if the KPIs have been added into Elasticsearch at the following URL - http://localhost:9200/spark-jobs/kpis, and the results at - http://localhost:9200/spark-jobs/results. Then the attributes shall be the following way:

  • "sparkElasticSearchHost": "http://localhost"
  • "sparkElasticSearchPort":"9200"
  • "sparkElasticSearchConfigIndex":"spark-jobs/kpis"
  • "sparkElasticSearchResultIndex": "spark-jobs/results"

Changes in uiConfig.json


Browse the directory - "%WORKSPACE%\devopsplatform\PlatformUI3.0\app\uiConfig.json"

%WORKSPACE%  is the directory which contains Insights - Development Platform.


Add the changes in your local 
uiConfig.json as highlighted below.

uiConfig.json

{

"showBusinessMapping": true,
"showAuditReporting": false,
"agentsOsList": {
"Windows": "windows",
"RHEL/CentOS": "linux",
"Ubuntu": "Ubuntu"
},
"serviceHost": "http://localhost:8080",
"grafanaHost": "http://localhost:3000"

}


©2021 Cognizant, all rights reserved. US Patent 10,410,152