Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Anchor
top70
top70
Image Removed

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

Panel

On this page:


Table of Contents

Changes in server-config.json


Browse the following directory inside your

InSights

Insights Installation directory -

 

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

or

%INSIGHTS_HOME%\.InSights\serverconfig.json

Info

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

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

Panel
titleBGColor#ddfade
titleserver-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

  }

,

  "ldapConfiguration": {

    "ldapUrl"sparkMasterExecutionEndPoint":"ldap    "endpoint": "http://ldaphost:389",

    "bindDN": "BindDN",

    "bindPassword": "Passwd",

    "searchBaseDN": "DC=XX,DC=XX",

    "searchFilter": "(sAMAccountName={0})",

    "ldapAttributes": {

      "name": "givenname",

      "surname": "sn",

      "memberOf": "",

      "email": "mail",

      "username": "sAMAccountName"

    }

  },

  "graph": {

localhost:4040"

  },

...

 ...

 ...


Panel

Attributes of Spark Configurations:


For instance, if the KPIs have been added into Elasticsearch at the following URL - http://localhost:

7474",

    "authToken": "bmVvNGo6QzBnbml6YW50QDE="

  },

  "grafana": {

    "grafanaEndpoint": "https://localhost:3000",

    "grafanaDBEndpoint": "jdbc:postgresql://localhost:5432/grafana",

    "adminUserName": "admin",

    "adminUserPassword": "admin",

    "dbUserName": "grafana",

    "dbPassword": "C0gnizant@1"

  },

  "postgre": {

"userName" : "grafana","password" : "C0gnizant@1","insightsDBUrl": "jdbc:postgresql://127.0.0.1:5432/insight","grafanaDBUrl": "jdbc:postgresql://127.0.0.1:5432/grafana"

  },

  "messageQueue": {

    "host": "localhost",

    "user": "iSight",

    "password": "iSight"

  },

  "disableAuth": true,

  "insightsTimeZone": "Asia/Kolkata",

  "userId": "UserID",

  "password": "Passwd",

  "refreshTime": "Jan 22, 2017 5:04:25 PM",

  "trustedHosts": [

    "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"

Info

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


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

Panel
titleuiConfig.json

{

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

}