- Created by Akshay Sharma , last modified by Gaurav (Unlicensed) on Dec 28, 2020
You are viewing an old version of this page. View the current version.
Compare with Current View Page History
« Previous Version 55 Next »
This is the most important configuration file in Insights product. It is required to run WAR file, Platform engine jar as well as Report jar. It is important to keep the server-config.json updated with the latest changes. Find the various components of server-config.json on this page.
server-config.json file is present at "%INSIGHTS_HOME%"\.InSights environment variable path location.
Sample Server Config Json file
{ "vault":{ "isVaultEnable":false, "vaultEndPoint":"http://localhost:3000/v1/", "secretEngine":"", "vaultToken":"" }, "grafana":{ "grafanaEndpoint":"http://localhost:3000", "grafanaDBEndpoint":"jdbc:postgresql://localhost:5432/grafana", "adminUserName":"", "adminUserPassword":"" }, "trustedHosts":[ "localhost" ], "graph":{ "endpoint":"http://localhost:7474", "authToken":"", "boltEndPoint":"bolt://localhost:7687", "maxIdleConnections":25 }, "postgre":{ "userName":"", "password":"", "insightsDBUrl":"jdbc:postgresql://localhost:5432/insight", "grafanaDBUrl":"jdbc:postgresql://localhost:5432/grafana" }, "messageQueue":{ "host":"localhost", "user":"", "password":"", "prefetchCount":5 }, "agentDetails":{ "isOnlineRegistration":true, "onlineRegistrationMode":"nexus", "browseRepoUrl":"https://infra.cogdevops.com:8443/service/rest/repository/browse/docroot/insights_install/release", "downloadRepoUrl":"https://infra.cogdevops.com:8443/repository/docroot/insights_install/release", "nexusUserName":"", "nexusPassword":"", "docrootUrl":"https://platform.cogdevops.com//insights_install/release", "offlineAgentPath":"D:\\Project\\Insights\\InSights_Windows\\Agents\\offlineAgent", "unzipPath":"D:\\Project\\Insights\\InSights_Windows\\Agents\\PlatformAgents\\unzip", "agentExchange":"iAgent", "agentPkgQueue":"INSIGHTS.AGENTS.PACKAGE" }, "endpointData":{ "elasticSearchEndpoint":"http://localhost:9200" }, "queryCache":{ "esCacheIndex":"neo4j-cached-results/querycacheresult" }, "emailConfiguration": { "sendEmailEnabled": false, "smtpHostServer": "", "smtpPort": "", "smtpUserName": "", "smtpPassword": "", "isAuthRequired": true, "smtpStarttlsEnable": true, "mailFrom": "onedevops@cogdevops.com", "mailTo": "", "subject": "Health Status - {TimeOfReportGeneration}", "emailBody": "Hi Team, Attaching the report File", "systemNotificationSubscriber": "" }, "correlations":{ "correlationWindow":48, "correlationFrequency":3, "batchSize":2000 }, "schedulerConfigInMin":{ "auditEngineInterval":60, "webhookEngineInterval":10, "engineAggregatorModuleInterval":10, "engineCorrelatorModuleInterval":60, "projectMapperModuleInterval":10, "dataPurgingExecutorInterval":300, "offlineDataProcessingExecutorInterval":10, "inferenceJobExecutor":20, "dataArchivalEngineInterval":240 }, "singleSignOnConfig":{ "entityId":"", "appId":"", "metadataUrl":"", "metdataFilePath":"", "keyStoreFilePath":"C:\\InSights_Windows\\Server2\\INSIGHTS_HOME\\.InSights\\saml-keystore.jks", "keyAlias":"mykeyalias", "keyPass":"mykeypass", "keyStorePass":"samlstorepass", "appBaseUrl":"baseURL", "relayStateUrl":"relayStateUrl", "defaultTargetUrl":"defaultTargetUrl", "postLogoutURL":"logoutURL", "tokenSigningKey":"insights_IDP_CogDevops_SSO_Token_string", "servicePrincipalKerberos":"", "keyTabLocationKerberos":"C:\\InSights_Windows\\Server2\\INSIGHTS_HOME\\.InSights\\kerberos_keytab_file.keytab" }, "assessmentReport":{ "outputDatasource":"NEO4J", "maxWorkflowRetries":3, "fusionExportAPIUrl":"http://localhost:1337/api/v2.0/export" }, "workflowDetails":{ "corePoolSize":8, "maximumPoolSize":20, "keepAliveTime":20, "waitingQueueSize":10, "workflowExecutorCron":"1 0 0 * * ?", "workflowRetryExecutorCron":"0 0 */4 ? * *" }, "mlConfiguration":{ "h2oEndpoint":"" }, "insightsServiceURL":"http://localhost:8080", "insightsTimeZone":"UTC", "userId":"", "password":"", "refreshTime":"Jan 22, 2017 5:04:25 PM", "enableOnlineDatatagging":true, "enableAuditEngine":true, "enableWebHookEngine":true, "enableDataArchivalEngine":false, "enableOnlineBackup":false, "autheticationProtocol":"NativeGrafana", "pdfkey":"", "applicationLogLevel": { "updateLevelTransitiveDependency": false, "serviceLogLevel": { "PlatformService": "DEBUG", "PlatformEngine": "DEBUG", "PlatformReport": "DEBUG", "PlatformRegressionTest": "DEBUG" } } }
Configure Vault with Storage Engine as PostgreSQL, all configuration steps mention in Vault Configuration with PostgreSQL DB
Add following minimum configuration inside Insights INSIGHTS_HOME\.InSights\server-config.json
{ "vault": { "isVaultEnable": true, "vaultEndPoint": "http://10.10.90.42:8200/v1", "secretEngine": "database-insights", "vaultToken": "<vault root token>" }, "grafana":{ "grafanaEndpoint":"http://localhost:3000" }, "trustedHosts":[ "localhost" ] }
Make sure that isVaultEnable = true with correct vault token, Vault is started and unsealed
Start Tomcat application
Login Insights UI with basic grafana credential using user ‘admin’ most probably password is ‘admin’
On successful login, It will load server configuration on UI, do the respective changes
Save the changes, It will store all your configuration in vault in encrypted format
If you want to edit any field in server configuration then use Insights UI
With Native Grafana authentication there is no need to restart tomcat, it automatically loads server config changes.
In case of SSO, initial login will be with initial grafana credential, do respective changes and restart tomcat.
Component | Significance |
---|---|
"endpointData": { |
|
"graph":{ |
|
"grafana": { |
|
"postgre": { |
|
"messageQueue": { } |
|
"agentDetails": { "isOnlineRegistration":true, } |
|
"queryCache": |
|
"insightsServiceURL": "https://localhost:8080" |
|
"disableAuth": false |
|
"enableNativeUsers": true |
|
"insightsTimeZone": "US/Central" |
|
"enableOnlineDatatagging": true |
|
"enableOnlineBackup": true |
|
"autheticationProtocol":"NativeGrafana" |
|
- No labels