Create App, enable messaging option ,create incoming web hook url. add app to the channel you want to send message .
TFW_TESTRUN_NOTIFICATION_INCOMING_WEBHOOKURL("test-framework.testrun.notification.incoming.webhookurl"),
***********************************************************************************
2.Create a Plan "Test****plan" and provide the project.
In Repositories tab, add repositories ,give repo Name , server Name "stash", repository "bucket Name", branch "branch name", Advance Options check (Use shallow clones,check Enable repository cache on remote agent, check Use submodule, command Time out (minutes)180,
in change detection option, in include/exclude files "Include Only changes that matches","^.*test\/test-lambdas\/.*" (only look for changes in folder in test with folder test-lambdas.
web repository "Bit bucket server".
3.Configure or edit build plan, add Task "source Code Checkout", give task Description ,add Project in Repository(repository added above). check force clean build and save.
4.Maven Version Variable Extractor, give Task Description Name, Give variable definition "EGX_Version", check remove -snapshot from version if present.In scope select Result and save.
5.Add task "Artifactory Maven3 Configuration",give task description"name", Goals "clean install -DskipTests
-Dgrunt.publish=true" , build JDK-Coretto-1.8, executable "Maven 3.5", Environmental Variables"JAVA_OPTS="$JAVA_OPTS -XX:+AggressiveHeap" ",check resolve artifacts from artifactory, Resolution select "https://ghxrepo.jfrog.io/ghxrepo", resolution repository "ghx-all", artifacts from artifactory, Resolution select "https://ghxrepo.jfrog.io/ghxrepo", Target repository "enhancement-snapshot", check Deploy maven Artifacts, Deployment Include patterns "TestFramework-Lambda-Deployment/*", check Capture Build info, click save.
6.Amazon s3 Object Configuration Task Description Name, Region "US West (Oregon)", Artifact "Local Files", source Local Path "test-framework/test-framework-lambdas/*", Target Bucket Name "testframework-lambda-deployment" ,Target Object Key Prefix (Virtual Directory) "Corex-Testframework-Lambda/${bamboo.EGX_Version}/${bamboo.planRepository.branchName}/${bamboo.buildNumber}/ " Tags "[
]" Aws Security Credentials Source "Identity federation for AWS", connectors"bamboo-devtest", save.
Interpreter "/bin/sh or cmd.exe", script location "Inline", script body " #!/bin/bash -x
echo "Processing mongo scripts for ${mongo_ds_dir} from location ${mongo_ds_release_version_dir}"
echo "WARN: Directory ${mongo_ds_release_version_dir} does not exists. Trying to find latest version that might exist in directory to upload."
minor_version=`ls ${mongo_ds_release_dir}| grep "^$3" | awk -F'_' '{ print $2 }' | sort -n | tail -1`
echo "ls ${mongo_ds_release_dir}| grep "^$3" | awk -F'_' '{ print $2 }' | sort -n | tail -1"
mongo_ds_release_version_dir="${mongo_ds_release_dir}/$3_${minor_version}_0"
cp -a ${mongo_ds_release_version_dir}/. ./mongoscripts/${mongo_ds_dir}/
#cp ${mongo_ds_release_version_dir}/runall*.js ./mongoscripts/${mongo_ds_dir}/runall.js
#echo "COPYING: js files from test-framework/test-framework-api/release/*.js to mongoscripts"
find test-framework/test-framework-api/release/util/custom_updates/ -maxdepth 1 -type f -name "*.js" | xargs -i cp {} ./mongoscripts/custom_update/
copyScripts 'notification-framework/notification-ds' ${egx_version} ${major_version}
cp -r clouddeployment/test-framework/elasticsearch .
cp -r clouddeployment/test-framework/replay .
Add Trigger , add BitBucket Server repository triggered, trigger description name, check repository, save Trigger
Create Plan Branch check Manually, Delete Plan Branch "check After plan was deleted from repository", 5 days, After branch inactive in repository, 5 days, Notifications -> choose "Notify commiters and people who have favourited the created branch", trigger -> Branch triggers -> Same as defined in parent plan", and save.
Failed Build and First Successful -> committers (users who have committed to the build),All build completed (to main people who is owner)
awsRegion : us-east-1, baseami: ami-01b5ebd032022c6e1, baseami_release: ami-4c67f42c, baseamiold:ami-65038105,
Logs the changes in build plan.
plan name , plan description , check plan enabled save.
Create project " Test-Lambda-Deploy", configure lambda-deploy Deployment plan, Edit environment, IN edit plans -> Add Environment Name and description,
Edit Triggers: After Successful build plan ->Trigger description and save.
Next release ->version -> release-1 , automatically increment with each new release numbers check last number in version, save.
In project permission tab: add user and permissions.
In audit log tab: logs of deployment.
***********************************************************************************
sys-user@SMI-518:~/Softwares/mongodb-linux-x86_64-ubuntu1804-4.0.10-rc0/bin$ ./mongod --dbpath='/home/sys-user/Softwares/data'
***********************************************************************************
curl -X GET "https://search-test-framework-es2-rh4ypdodfobsgmd54nfsnphatm.us-west-2.es.amazonaws.com/testfw-replay-dev-5d9f38a37a3e50124c942a4e-testframework-stats_all/_search?pretty=true"
curl -X GET "https://search-test-framework-es2-rh4ypdodfobsgmd54nfsnphatm.us-west-2.es.amazonaws.com/testfw-replay-dev-5db96476206001102427313b-cpu-utilization/_search?pretty=true"
curl -XPOST "search-test-framework-es2-rh4ypdodfobsgmd54nfsnphatm.us-west-2.es.amazonaws.com/testfw-replay-dev-5d9f38a37a3e50124c942a4e-cpu-utilization/_search?v&pretty" -d '
{
"query" : {
"match_all" : {}
}
}'
curl -XPOST 'search-test-framework-es2-rh4ypdodfobsgmd54nfsnphatm.us-west-2.es.amazonaws.com/testfw-replay-dev-5d9f38a37a3e50124c942a4e-cpu-utilization/_search' -d '
{
"query" : {
"match_all" : {}
}
}'
curl -XPOST 'search-test-framework-es2-rh4ypdodfobsgmd54nfsnphatm.us-west-2.es.amazonaws.com/testfw-replay-dev-5db96476206001102427313b-cpu-utilization/_search' -d '
{
"query" : {
"match_all" : {}
}
}'
(base) sys-user@SMI-243:~/Corex/all$ curl -XPOST 'search-test-framework-es2-rh4ypdodfobsgmd54nfsnphatm.us-west-2.es.amazonaws.com/testfw-replay-dev-5d9f38a37a3e50124c942a4e-cpu-utilization/_search' -d '
> {
> "query" : {
> "match_all" : {}
> }
> }'
{"took":2,"timed_out":false,"_shards":{"total":5,"successful":5,"failed":0},"hits":{"total":26,"max_score":1.0,"hits":[{"_index":"testfw-replay-dev-5d9f38a37a3e50124c942a4e-cpu-utilization","_type":"system","_id":"AW2198sfGb6oRN1s8ZCF","_score":1.0,"_source":{"application":"test-framework-minion","user_p":27.0,"hostname":"10.31.33.232","@timestamp":"2019-10-10T13:58:00+00:00"}},{"_index":"testfw-replay-dev-5d9f38a37a3e50124c942a4e-cpu-utilization","_type":"system","_id":"AW21-LhqGb6oRN1s8ZUk","_score":1.0,"_source":{"application":"test-framework-minion","user_p":58.75,"hostname":"10.31.33.232","@timestamp":"2019-10-10T13:59:00+00:00"}},{"_index":"testfw-replay-dev-5d9f38a37a3e50124c942a4e-cpu-utilization","_type":"system","_id":"AW21_GQw_4fAvohBONDB","_score":1.0,"_source":{"application":"test-framework-minion","user_p":0.499999999999995,"hostname":"10.31.33.232","@timestamp":"2019-10-10T14:02:00+00:00"}},{"_index":"testfw-replay-dev-5d9f38a37a3e50124c942a4e-cpu-utilization","_type":"system","_id":"AW21_GQw_4fAvohBONDC","_score":1.0,"_source":{"application":"test-framework-minion","user_p":0.666666666666664,"hostname":"10.31.33.232","@timestamp":"2019-10-10T14:03:00+00:00"}},{"_index":"testfw-replay-dev-5d9f38a37a3e50124c942a4e-cpu-utilization","_type":"system","_id":"AW21_U8gGb6oRN1s8bJq","_score":1.0,"_source":{"application":"test-framework-minion","user_p":0.458333333333331,"hostname":"10.31.33.232","@timestamp":"2019-10-10T14:04:00+00:00"}},{"_index":"testfw-replay-dev-5d9f38a37a3e50124c942a4e-cpu-utilization","_type":"system","_id":"AW21_ySlGb6oRN1s8b4r","_score":1.0,"_source":{"application":"test-framework-minion","user_p":0.409836065573771,"hostname":"10.31.33.232","@timestamp":"2019-10-10T14:05:00+00:00"}},{"_index":"testfw-replay-dev-5d9f38a37a3e50124c942a4e-cpu-utilization","_type":"system","_id":"AW21-o5swEcMd9IvMuHs","_score":1.0,"_source":{"application":"test-framework-minion","user_p":58.75,"hostname":"10.31.33.232","@timestamp":"2019-10-10T13:59:00+00:00"}},{"_index":"testfw-replay-dev-5d9f38a37a3e50124c942a4e-cpu-utilization","_type":"system","_id":"AW21_jnewEcMd9IvMvmu","_score":1.0,"_source":{"application":"test-framework-minion","user_p":0.666666666666664,"hostname":"10.31.33.232","@timestamp":"2019-10-10T14:03:00+00:00"}},{"_index":"testfw-replay-dev-5d9f38a37a3e50124c942a4e-cpu-utilization","_type":"system","_id":"AW22AtArwEcMd9IvMxdp","_score":1.0,"_source":{"application":"test-framework-minion","user_p":0.368852459016396,"hostname":"10.31.33.232","@timestamp":"2019-10-10T14:10:00+00:00"}},{"_index":"testfw-replay-dev-5d9f38a37a3e50124c942a4e-cpu-utilization","_type":"system","_id":"AW22A7r4wEcMd9IvMxx_","_score":1.0,"_source":{"application":"test-framework-minion","user_p":0.333333333333326,"hostname":"10.31.33.232","@timestamp":"2019-10-10T14:09:00+00:00"}}]}}
curl -X GET "https://search-test-framework-es2-rh4ypdodfobsgmd54nfsnphatm.us-west-2.es.amazonaws.com/dev-cpu-utilization_all/_search?pretty=true"
(base) sys-user@SMI-243:~/Corex/all$ curl -X GET "https://search-test-framework-es2-rh4ypdodfobsgmd54nfsnphatm.us-west-2.es.amazonaws.com/dev-cpu-utilization_all/_search?pretty=true"
{
"took" : 1,
"timed_out" : false,
"_shards" : {
"total" : 5,
"successful" : 5,
"failed" : 0
},
"hits" : {
"total" : 89559,
"max_score" : 1.0,
"hits" : [ {
"_index" : "dev-cpu-utilization",
"_type" : "system",
"_id" : "AW4WYuN-_4fAvohBxjy2",
"_score" : 1.0,
"_ttl" : 103772,
"_source" : {
"application" : "test-framework-gru",
"user_p" : 0.169491525423767,
"hostname" : "10.31.34.52",
"@timestamp" : "2019-10-29T07:18:00+00:00"
}
}, {
"_index" : "dev-cpu-utilization",
"_type" : "system",
"_id" : "AW4WYsLgwEcMd9IvwRHv",
"_score" : 1.0,
"_ttl" : 95422,
"_source" : {
"application" : "ui-heimdall",
"user_p" : 1.96721311475399,
"hostname" : "10.31.36.211",
"@timestamp" : "2019-10-29T07:18:00+00:00"
}
}, {
"_index" : "dev-cpu-utilization",
"_type" : "system",
"_id" : "AW4WYuALGb6oRN1sf0fz",
"_score" : 1.0,
"_ttl" : 102889,
"_source" : {
"application" : "data-poller",
"user_p" : 3.99999999999996,
"hostname" : "10.31.34.252",
"@timestamp" : "2019-10-29T07:18:00+00:00"
}
}, {
"_index" : "dev-cpu-utilization",
"_type" : "system",
"_id" : "AW4WYutqGb6oRN1sf0gm",
"_score" : 1.0,
"_ttl" : 105800,
"_source" : {
"application" : "ui-invoicing",
"user_p" : 1.91666666666663,
"hostname" : "10.31.34.50",
"@timestamp" : "2019-10-29T07:18:00+00:00"
}
}, {
"_index" : "dev-cpu-utilization",
"_type" : "system",
"_id" : "AW4WYgB9wEcMd9IvwQw_",
"_score" : 1.0,
"_ttl" : 45659,
"_source" : {
"application" : "ui-invoicing",
"user_p" : 1.66666666666667,
"hostname" : "10.31.34.50",
"@timestamp" : "2019-10-29T07:17:00+00:00"
}
}, {
"_index" : "dev-cpu-utilization",
"_type" : "system",
"_id" : "AW4WYuLEwEcMd9IvwRJN",
"_score" : 1.0,
"_ttl" : 103586,
"_source" : {
"application" : "regapi-ws",
"user_p" : 1.58333333333331,
"hostname" : "10.31.37.7",
"@timestamp" : "2019-10-29T07:19:00+00:00"
}
}, {
"_index" : "dev-cpu-utilization",
"_type" : "system",
"_id" : "AW4WYXgsGb6oRN1sf0EN",
"_score" : 1.0,
"_ttl" : 10762,
"_source" : {
"application" : "jobs",
"user_p" : 13.4745762711865,
"hostname" : "10.31.37.84",
"@timestamp" : "2019-10-29T07:15:00+00:00"
}
}, {
"_index" : "dev-cpu-utilization",
"_type" : "system",
"_id" : "AW4WYmM5_4fAvohBxjrT",
"_score" : 1.0,
"_ttl" : 70935,
"_source" : {
"application" : "jobs",
"user_p" : 12.0000000000001,
"hostname" : "10.31.37.84",
"@timestamp" : "2019-10-29T07:18:00+00:00"
}
}, {
"_index" : "dev-cpu-utilization",
"_type" : "system",
"_id" : "AW4WZYOk_4fAvohBxky8",
"_score" : 1.0,
"_ttl" : 275842,
"_source" : {
"application" : "ui-heimdall",
"user_p" : 3.68852459016393,
"hostname" : "10.31.36.211",
"@timestamp" : "2019-10-29T07:21:00+00:00"
}
}, {
"_index" : "dev-cpu-utilization",
"_type" : "system",
"_id" : "AW4WZbrwwEcMd9IvwSQq",
"_score" : 1.0,
"_ttl" : 289998,
"_source" : {
"application" : "ui-heimdall",
"user_p" : 1.39344262295142,
"hostname" : "10.31.34.191",
"@timestamp" : "2019-10-29T07:21:00+00:00"
}
} ]
}
}
(base) sys-user@SMI-243:~/Corex/all$ curl -X GET "https://search-test-framework-es2-rh4ypdodfobsgmd54nfsnphatm.us-west-2.es.amazonaws.com/dev-cpu-utilization/_search?pretty=true"
{
"took" : 1,
"timed_out" : false,
"_shards" : {
"total" : 5,
"successful" : 5,
"failed" : 0
},
"hits" : {
"total" : 89595,
"max_score" : 1.0,
"hits" : [ {
"_index" : "dev-cpu-utilization",
"_type" : "system",
"_id" : "AW4WZJjCGb6oRN1sf1OH",
"_score" : 1.0,
"_ttl" : -24195,
"_source" : {
"application" : "ui-heimdall",
"user_p" : 1.83333333333318,
"hostname" : "10.31.36.211",
"@timestamp" : "2019-10-29T07:20:00+00:00"
}
}, {
"_index" : "dev-cpu-utilization",
"_type" : "system",
"_id" : "AW4WZMFG_4fAvohBxkfH",
"_score" : 1.0,
"_ttl" : -13823,
"_source" : {
"application" : "ui-invoicing",
"user_p" : 2.00000000000008,
"hostname" : "10.31.34.50",
"@timestamp" : "2019-10-29T07:20:00+00:00"
}
}, {
"_index" : "dev-cpu-utilization",
"_type" : "system",
"_id" : "AW4WZcFAwEcMd9IvwSQs",
"_score" : 1.0,
"_ttl" : 51707,
"_source" : {
"application" : "processing-engine",
"user_p" : 16.7500000000003,
"hostname" : "10.31.34.108",
"@timestamp" : "2019-10-29T07:21:00+00:00"
}
}, {
"_index" : "dev-cpu-utilization",
"_type" : "system",
"_id" : "AW4WZYOk_4fAvohBxky8",
"_score" : 1.0,
"_ttl" : 35935,
"_source" : {
"application" : "ui-heimdall",
"user_p" : 3.68852459016393,
"hostname" : "10.31.36.211",
"@timestamp" : "2019-10-29T07:21:00+00:00"
}
}, {
"_index" : "dev-cpu-utilization",
"_type" : "system",
"_id" : "AW4WZbrwwEcMd9IvwSQq",
"_score" : 1.0,
"_ttl" : 50091,
"_source" : {
"application" : "ui-heimdall",
"user_p" : 1.39344262295142,
"hostname" : "10.31.34.191",
"@timestamp" : "2019-10-29T07:21:00+00:00"
}
}, {
"_index" : "dev-cpu-utilization",
"_type" : "system",
"_id" : "AW4WZNBW_4fAvohBxkgU",
"_score" : 1.0,
"_ttl" : -9967,
"_source" : {
"application" : "ui-heimdall",
"user_p" : 1.58333333333303,
"hostname" : "10.31.32.198",
"@timestamp" : "2019-10-29T07:20:00+00:00"
}
}, {
"_index" : "dev-cpu-utilization",
"_type" : "system",
"_id" : "AW4WZjAeGb6oRN1sf1_7",
"_score" : 1.0,
"_ttl" : 80089,
"_source" : {
"application" : "io-engine",
"user_p" : 24.5833333333333,
"hostname" : "10.31.59.78",
"@timestamp" : "2019-10-29T07:21:00+00:00"
}
}, {
"_index" : "dev-cpu-utilization",
"_type" : "system",
"_id" : "AW4WZR9tGb6oRN1sf1jF",
"_score" : 1.0,
"_ttl" : 10280,
"_source" : {
"application" : "ui-mex",
"user_p" : 5.16666666666652,
"hostname" : "10.31.34.54",
"@timestamp" : "2019-10-29T07:20:00+00:00"
}
}, {
"_index" : "dev-cpu-utilization",
"_type" : "system",
"_id" : "AW4WZvVZwEcMd9IvwSz9",
"_score" : 1.0,
"_ttl" : 130580,
"_source" : {
"application" : "ui-mex",
"user_p" : 26.7499999999999,
"hostname" : "10.31.34.54",
"@timestamp" : "2019-10-29T07:22:00+00:00"
}
}, {
"_index" : "dev-cpu-utilization",
"_type" : "system",
"_id" : "AW4WZg-mwEcMd9IvwSeb",
"_score" : 1.0,
"_ttl" : 71777,
"_source" : {
"application" : "jobs",
"user_p" : 12.0833333333333,
"hostname" : "10.31.37.84",
"@timestamp" : "2019-10-29T07:22:00+00:00"
}
} ]
}
}
curl -XPOST 'search-test-framework-es2-rh4ypdodfobsgmd54nfsnphatm.us-west-2.es.amazonaws.com/testfw-replay-newelic-dev-5dbac3817e0efc1022fb1529-cpu-utilization/_search' -d '
{
"query" : {
"match_all" : {}
}
}'
dev-newrelic-cpu-utilization_all
dev-newrelic-cpu-utilization
:https://corex-dev.awsdsi.ghx.com/rest/testframework/performance/metrics/?chartGroup=osdao&chartName=Cumulative+CPU+Utilization&filterType=All&fromDate=2019-10-30T10:24:39.757Z&interval=2m&testResultId=5db96476206001102427313b&toDate=2019-10-30T10:37:04.066Z&viewType=chart
Request method:GET
{"JSON":{"data":[{"10.31.36.192-ui-mex":1.9166666269302368,"10.31.33.225-regapi-ws":1.4754098653793335,"10.31.32.96-ui-heimdall":1.4166666269302368,"10.31.37.146-ui-heimdall":14.916666984558105,"10.31.32.198-ui-heimdall":1.25,"10.31.33.6-jobs":13.389830589294434,"10.31.34.52-test-framework-gru":0.14830508828163147,"10.31.32.27-processing-engine":27.868852615356445,"10.31.36.203-ui-invoicing":1.6666666269302368,"10.31.34.191-ui-heimdall":1.2711864709854126,"10.31.35.26-data-poller":3.852458953857422,"10.31.59.13-io-engine":26.47541046142578,"10.31.33.224-ui-rc":1.5,"time":1572431100000,"10.31.34.100-ui-heimdall":2.7868852615356445},{"10.31.36.192-ui-mex":1.8032786846160889,"10.31.33.225-regapi-ws":1.7796610593795776,"10.31.32.96-ui-heimdall":1.4166666269302368,"10.31.37.146-ui-heimdall":1.7213114500045776,"10.31.32.198-ui-heimdall":1.6949152946472168,"10.31.33.6-jobs":11.803278923034668,"10.31.34.52-test-framework-gru":0.1041666641831398,"10.31.32.27-processing-engine":20.423728942871094,"10.31.36.203-ui-invoicing":2.5833332538604736,"10.31.34.191-ui-heimdall":1.4166666269302368,"10.31.35.26-data-poller":4.237287998199463,"10.31.59.13-io-engine":26,"10.31.33.224-ui-rc":1.8852459192276,"time":1572431160000,"10.31.34.100-ui-heimdall":4.576271057128906},{"10.31.36.192-ui-mex":1.5254237651824951,"10.31.32.96-ui-heimdall":1.3333333730697632,"10.31.33.225-regapi-ws":1.3333333730697632,"10.31.37.146-ui-heimdall":2.6271185874938965,"10.31.35.221-ui-heimdall":68.75,"10.31.37.26-jobs":60.16666793823242,"10.31.33.189-processing-engine":64.91525268554688,"10.31.32.198-ui-heimdall":1.311475396156311,"10.31.59.74-io-engine":62.91666793823242,"10.31.33.78-ui-mex":45.819671630859375,"10.31.35.238-regapi-ws":66.83333587646484,"10.31.33.6-jobs":9.576271057128906,"10.31.34.52-test-framework-gru":0.1666666716337204,"10.31.32.27-processing-engine":17.66666603088379,"10.31.36.203-ui-invoicing":1.6666666269302368,"10.31.37.20-data-poller":66.3559341430664,"10.31.37.102-ui-invoicing":50.08333206176758,"10.31.34.191-ui-heimdall":1.3333333730697632,"10.31.35.107-ui-rc":43.16666793823242,"10.31.35.26-data-poller":4.166666507720947,"10.31.59.13-io-engine":25.3389835357666,"10.31.33.224-ui-rc":1.610169529914856,"time":1572431220000,"10.31.34.100-ui-heimdall":6.666666507720947},{"10.31.36.192-ui-mex":1.5833333730697632,"10.31.32.96-ui-heimdall":1.6666666269302368,"10.31.33.225-regapi-ws":1.5,"10.31.37.146-ui-heimdall":1.5833333730697632,"10.31.35.221-ui-heimdall":72.25,"10.31.37.26-jobs":89.66666412353516,"10.31.33.189-processing-engine":85,"10.31.32.198-ui-heimdall":1.3559322357177734,"10.31.59.74-io-engine":91.80327606201172,"10.31.33.78-ui-mex":85.4237289428711,"10.31.35.238-regapi-ws":75.66666412353516,"10.31.33.6-jobs":11.5,"10.31.34.52-test-framework-gru":0.125,"10.31.32.27-processing-engine":14.25,"10.31.36.203-ui-invoicing":3.1666667461395264,"10.31.37.20-data-poller":79.58333587646484,"10.31.37.102-ui-invoicing":84.75,"10.31.34.191-ui-heimdall":1.3333333730697632,"10.31.35.107-ui-rc":57.5,"10.31.35.26-data-poller":3.7704918384552,"10.31.59.13-io-engine":26.31147575378418,"10.31.33.224-ui-rc":1.5573770999908447,"time":1572431280000,"10.31.34.100-ui-heimdall":6.967213153839111},{"10.31.36.192-ui-mex":1.5,"10.31.33.225-regapi-ws":2.0833332538604736,"10.31.32.96-ui-heimdall":1.1666666269302368,"10.31.37.146-ui-heimdall":1.9166666269302368,"10.31.35.221-ui-heimdall":87.95082092285156,"10.31.37.26-jobs":68.41666412353516,"10.31.33.189-processing-engine":67.91666412353516,"10.31.32.198-ui-heimdall":1.3333333730697632,"10.31.59.74-io-engine":86.08333587646484,"10.31.33.78-ui-mex":80.58333587646484,"10.31.35.238-regapi-ws":89.5,"10.31.33.6-jobs":10.833333015441895,"10.31.34.52-test-framework-gru":0.125,"10.31.32.27-processing-engine":17,"10.31.36.203-ui-invoicing":8.333333015441895,"10.31.37.20-data-poller":68.75,"10.31.37.102-ui-invoicing":78.75,"10.31.34.191-ui-heimdall":1.6393442153930664,"10.31.35.107-ui-rc":87.41666412353516,"10.31.35.26-data-poller":3.8135592937469482,"10.31.59.13-io-engine":25,"10.31.33.224-ui-rc":1.7796610593795776,"time":1572431340000,"10.31.34.100-ui-heimdall":5.677966117858887},{"10.31.36.192-ui-mex":1.9166666269302368,"10.31.32.96-ui-heimdall":1.4166666269302368,"10.31.33.225-regapi-ws":1.4166666269302368,"10.31.37.146-ui-heimdall":2.5833332538604736,"10.31.35.221-ui-heimdall":66.44068145751953,"10.31.37.26-jobs":88.83333587646484,"10.31.33.189-processing-engine":91.91666412353516,"10.31.32.198-ui-heimdall":1.4166666269302368,"10.31.59.74-io-engine":89.40677642822266,"10.31.33.78-ui-mex":65.6557388305664,"10.31.35.238-regapi-ws":85.5,"10.31.33.6-jobs":11.967212677001953,"10.31.34.52-test-framework-gru":0.1458333283662796,"10.31.32.27-processing-engine":30.57377052307129,"10.31.36.203-ui-invoicing":3.25,"10.31.37.20-data-poller":93.75,"10.31.37.102-ui-invoicing":79.08333587646484,"10.31.34.191-ui-heimdall":1.4406780004501343,"10.31.35.107-ui-rc":84.08333587646484,"10.31.35.26-data-poller":3.9166667461395264,"10.31.59.13-io-engine":26.75,"10.31.33.224-ui-rc":1.5833333730697632,"time":1572431400000,"10.31.34.100-ui-heimdall":3.1666667461395264},{"10.31.36.192-ui-mex":1.6393442153930664,"10.31.33.225-regapi-ws":1.9166666269302368,"10.31.32.96-ui-heimdall":1.25,"10.31.37.146-ui-heimdall":1.5,"10.31.35.221-ui-heimdall":82.08333587646484,"10.31.37.26-jobs":84.83333587646484,"10.31.33.189-processing-engine":91,"10.31.32.198-ui-heimdall":1.6666666269302368,"10.31.59.74-io-engine":92.75,"10.31.33.78-ui-mex":67.54237365722656,"10.31.33.6-jobs":9.406779289245605,"10.31.35.238-regapi-ws":6.229508399963379,"10.31.34.52-test-framework-gru":0.1458333283662796,"10.31.32.27-processing-engine":13.389830589294434,"10.31.36.203-ui-invoicing":2,"10.31.37.20-data-poller":89.33333587646484,"10.31.37.102-ui-invoicing":29.8360652923584,"10.31.34.191-ui-heimdall":1.4166666269302368,"10.31.35.107-ui-rc":25.16666603088379,"10.31.35.26-data-poller":3.75,"10.31.59.13-io-engine":24.672130584716797,"10.31.33.224-ui-rc":1.5833333730697632,"time":1572431460000,"10.31.34.100-ui-heimdall":6.166666507720947},{"10.31.36.192-ui-mex":4.06779670715332,"10.31.33.225-regapi-ws":1.5,"10.31.32.96-ui-heimdall":1.3934426307678223,"10.31.37.146-ui-heimdall":1.9166666269302368,"10.31.35.221-ui-heimdall":5.25,"10.31.37.26-jobs":89.25,"10.31.33.189-processing-engine":85.6557388305664,"10.31.32.198-ui-heimdall":1.3333333730697632,"10.31.59.74-io-engine":47,"10.31.33.78-ui-mex":2.25,"10.31.33.6-jobs":13.833333015441895,"10.31.35.238-regapi-ws":2.3728814125061035,"10.31.34.52-test-framework-gru":0.1666666716337204,"10.31.32.27-processing-engine":12,"10.31.36.203-ui-invoicing":2.5,"10.31.37.20-data-poller":62.08333206176758,"10.31.37.102-ui-invoicing":2.4166667461395264,"10.31.34.191-ui-heimdall":1.25,"10.31.35.26-data-poller":3.9166667461395264,"10.31.35.107-ui-rc":2.5,"10.31.59.13-io-engine":24.6610164642334,"10.31.33.224-ui-rc":2.75,"time":1572431520000,"10.31.34.100-ui-heimdall":5.083333492279053},{"10.31.36.192-ui-mex":2.25,"10.31.32.96-ui-heimdall":1.610169529914856,"10.31.33.225-regapi-ws":1.4754098653793335,"10.31.37.146-ui-heimdall":1.6666666269302368,"10.31.35.221-ui-heimdall":8.68852424621582,"10.31.37.26-jobs":89.83606719970703,"10.31.33.189-processing-engine":67.03389739990234,"10.31.32.198-ui-heimdall":1.2295081615447998,"10.31.59.74-io-engine":35.33333206176758,"10.31.33.78-ui-mex":9.083333015441895,"10.31.33.6-jobs":9.583333015441895,"10.31.35.238-regapi-ws":3.0833332538604736,"10.31.34.52-test-framework-gru":0.125,"10.31.37.20-data-poller":18.66666603088379,"10.31.37.102-ui-invoicing":2.8813560009002686,"10.31.34.191-ui-heimdall":1.3333333730697632,"10.31.35.26-data-poller":3.9344263076782227,"10.31.35.107-ui-rc":2.7868852615356445,"10.31.59.13-io-engine":24.25,"10.31.33.224-ui-rc":1.6666666269302368,"time":1572431580000,"10.31.34.100-ui-heimdall":3.524590253829956},{"10.31.33.225-regapi-ws":1.3559322357177734,"10.31.32.96-ui-heimdall":1.3333333730697632,"10.31.37.146-ui-heimdall":1.6666666269302368,"10.31.35.221-ui-heimdall":2.96610164642334,"10.31.37.26-jobs":60.084747314453125,"10.31.33.189-processing-engine":36.33333206176758,"10.31.32.198-ui-heimdall":1.3559322357177734,"10.31.59.74-io-engine":34.41666793823242,"10.31.33.78-ui-mex":1.8333333730697632,"10.31.35.238-regapi-ws":2.0833332538604736,"10.31.34.52-test-framework-gru":0.1458333283662796,"10.31.37.20-data-poller":10.083333015441895,"10.31.37.102-ui-invoicing":1.9166666269302368,"10.31.34.191-ui-heimdall":1.5833333730697632,"10.31.35.107-ui-rc":1.610169529914856,"10.31.59.13-io-engine":24.66666603088379,"time":1572431640000},{"10.31.33.225-regapi-ws":1.5,"10.31.32.96-ui-heimdall":1.3333333730697632,"10.31.37.146-ui-heimdall":2.131147623062134,"10.31.35.221-ui-heimdall":26.66666603088379,"10.31.37.26-jobs":39.5,"10.31.33.189-processing-engine":41.41666793823242,"10.31.32.198-ui-heimdall":1.4166666269302368,"10.31.59.74-io-engine":32.91666793823242,"10.31.33.78-ui-mex":1.6393442153930664,"10.31.35.238-regapi-ws":2.3333332538604736,"10.31.34.52-test-framework-gru":0.125,"10.31.37.20-data-poller":6.833333492279053,"10.31.37.102-ui-invoicing":2.3333332538604736,"10.31.34.191-ui-heimdall":1.3333333730697632,"10.31.35.107-ui-rc":2.1666667461395264,"10.31.59.13-io-engine":26.33333396911621,"time":1572431700000},{"10.31.33.225-regapi-ws":1.5833333730697632,"10.31.32.96-ui-heimdall":1.3333333730697632,"10.31.37.146-ui-heimdall":1.8644068241119385,"10.31.35.221-ui-heimdall":9.916666984558105,"10.31.37.26-jobs":22.83333396911621,"10.31.33.189-processing-engine":21.25,"10.31.32.198-ui-heimdall":1.5833333730697632,"10.31.59.74-io-engine":31.58333396911621,"10.31.33.78-ui-mex":18.983051300048828,"10.31.35.238-regapi-ws":2.6666667461395264,"10.31.34.52-test-framework-gru":0.125,"10.31.37.20-data-poller":5.245901584625244,"10.31.37.102-ui-invoicing":33.25,"10.31.34.191-ui-heimdall":1.4166666269302368,"10.31.35.107-ui-rc":40.33333206176758,"10.31.59.13-io-engine":24.16666603088379,"time":1572431760000},{"10.31.33.225-regapi-ws":1.4754098653793335,"10.31.32.96-ui-heimdall":1.2295081615447998,"10.31.37.146-ui-heimdall":2.25,"10.31.35.221-ui-heimdall":15.916666984558105,"10.31.37.26-jobs":14.583333015441895,"10.31.33.189-processing-engine":28.770492553710938,"10.31.32.198-ui-heimdall":1.3333333730697632,"10.31.59.74-io-engine":28.08333396911621,"10.31.33.78-ui-mex":1.9672131538391113,"10.31.35.238-regapi-ws":2.5409836769104004,"10.31.34.52-test-framework-gru":0.1458333283662796,"10.31.37.20-data-poller":5.338983058929443,"10.31.37.102-ui-invoicing":13.666666984558105,"10.31.34.191-ui-heimdall":1.3333333730697632,"10.31.35.107-ui-rc":3.75,"10.31.59.13-io-engine":23.91666603088379,"time":1572431820000}],"keys":["10.31.32.27-processing-engine","10.31.59.13-io-engine","10.31.37.146-ui-heimdall","10.31.33.6-jobs","10.31.35.26-data-poller","10.31.34.100-ui-heimdall","10.31.36.192-ui-mex","10.31.36.203-ui-invoicing","10.31.33.224-ui-rc","10.31.33.225-regapi-ws","10.31.32.96-ui-heimdall","10.31.34.191-ui-heimdall","10.31.32.198-ui-heimdall","10.31.34.52-test-framework-gru","10.31.35.221-ui-heimdall","10.31.35.238-regapi-ws","10.31.37.20-data-poller","10.31.33.189-processing-engine","10.31.59.74-io-engine","10.31.37.26-jobs","10.31.37.102-ui-invoicing","10.31.33.78-ui-mex","10.31.35.107-ui-rc"],"groupByItems":{"regapi-ws":"regapi-ws","ui-mex":"ui-mex","processing-engine":"processing-engine","jobs":"jobs","ui-invoicing":"ui-invoicing","ui-rc":"ui-rc","data-poller":"data-poller","test-framework-gru":"test-framework-gru","io-engine":"io-engine","ui-heimdall":"ui-heimdall"}},"Response payload":{"EDITOR_CONFIG":{"text":"{\"data\":[{\"10.31.36.192-ui-mex\":1.9166666269302368,\"10.31.33.225-regapi-ws\":1.4754098653793335,\"10.31.32.96-ui-heimdall\":1.4166666269302368,\"10.31.37.146-ui-heimdall\":14.916666984558105,\"10.31.32.198-ui-heimdall\":1.25,\"10.31.33.6-jobs\":13.389830589294434,\"10.31.34.52-test-framework-gru\":0.14830508828163147,\"10.31.32.27-processing-engine\":27.868852615356445,\"10.31.36.203-ui-invoicing\":1.6666666269302368,\"10.31.34.191-ui-heimdall\":1.2711864709854126,\"10.31.35.26-data-poller\":3.852458953857422,\"10.31.59.13-io-engine\":26.47541046142578,\"10.31.33.224-ui-rc\":1.5,\"time\":1572431100000,\"10.31.34.100-ui-heimdall\":2.7868852615356445},{\"10.31.36.192-ui-mex\":1.8032786846160889,\"10.31.33.225-regapi-ws\":1.7796610593795776,\"10.31.32.96-ui-heimdall\":1.4166666269302368,\"10.31.37.146-ui-heimdall\":1.7213114500045776,\"10.31.32.198-ui-heimdall\":1.6949152946472168,\"10.31.33.6-jobs\":11.803278923034668,\"10.31.34.52-test-framework-gru\":0.1041666641831398,\"10.31.32.27-processing-engine\":20.423728942871094,\"10.31.36.203-ui-invoicing\":2.5833332538604736,\"10.31.34.191-ui-heimdall\":1.4166666269302368,\"10.31.35.26-data-poller\":4.237287998199463,\"10.31.59.13-io-engine\":26.0,\"10.31.33.224-ui-rc\":1.8852459192276,\"time\":1572431160000,\"10.31.34.100-ui-heimdall\":4.576271057128906},{\"10.31.36.192-ui-mex\":1.5254237651824951,\"10.31.32.96-ui-heimdall\":1.3333333730697632,\"10.31.33.225-regapi-ws\":1.3333333730697632,\"10.31.37.146-ui-heimdall\":2.6271185874938965,\"10.31.35.221-ui-heimdall\":68.75,\"10.31.37.26-jobs\":60.16666793823242,\"10.31.33.189-processing-engine\":64.91525268554688,\"10.31.32.198-ui-heimdall\":1.311475396156311,\"10.31.59.74-io-engine\":62.91666793823242,\"10.31.33.78-ui-mex\":45.819671630859375,\"10.31.35.238-regapi-ws\":66.83333587646484,\"10.31.33.6-jobs\":9.576271057128906,\"10.31.34.52-test-framework-gru\":0.1666666716337204,\"10.31.32.27-processing-engine\":17.66666603088379,\"10.31.36.203-ui-invoicing\":1.6666666269302368,\"10.31.37.20-data-poller\":66.3559341430664,\"10.31.37.102-ui-invoicing\":50.08333206176758,\"10.31.34.191-ui-heimdall\":1.3333333730697632,\"10.31.35.107-ui-rc\":43.16666793823242,\"10.31.35.26-data-poller\":4.166666507720947,\"10.31.59.13-io-engine\":25.3389835357666,\"10.31.33.224-ui-rc\":1.610169529914856,\"time\":1572431220000,\"10.31.34.100-ui-heimdall\":6.666666507720947},{\"10.31.36.192-ui-mex\":1.5833333730697632,\"10.31.32.96-ui-heimdall\":1.6666666269302368,\"10.31.33.225-regapi-ws\":1.5,\"10.31.37.146-ui-heimdall\":1.5833333730697632,\"10.31.35.221-ui-heimdall\":72.25,\"10.31.37.26-jobs\":89.66666412353516,\"10.31.33.189-processing-engine\":85.0,\"10.31.32.198-ui-heimdall\":1.3559322357177734,\"10.31.59.74-io-engine\":91.80327606201172,\"10.31.33.78-ui-mex\":85.4237289428711,\"10.31.35.238-regapi-ws\":75.66666412353516,\"10.31.33.6-jobs\":11.5,\"10.31.34.52-test-framework-gru\":0.125,\"10.31.32.27-processing-engine\":14.25,\"10.31.36.203-ui-invoicing\":3.1666667461395264,\"10.31.37.20-data-poller\":79.58333587646484,\"10.31.37.102-ui-invoicing\":84.75,\"10.31.34.191-ui-heimdall\":1.3333333730697632,\"10.31.35.107-ui-rc\":57.5,\"10.31.35.26-data-poller\":3.7704918384552,\"10.31.59.13-io-engine\":26.31147575378418,\"10.31.33.224-ui-rc\":1.5573770999908447,\"time\":1572431280000,\"10.31.34.100-ui-heimdall\":6.967213153839111},{\"10.31.36.192-ui-mex\":1.5,\"10.31.33.225-regapi-ws\":2.0833332538604736,\"10.31.32.96-ui-heimdall\":1.1666666269302368,\"10.31.37.146-ui-heimdall\":1.9166666269302368,\"10.31.35.221-ui-heimdall\":87.95082092285156,\"10.31.37.26-jobs\":68.41666412353516,\"10.31.33.189-processing-engine\":67.91666412353516,\"10.31.32.198-ui-heimdall\":1.3333333730697632,\"10.31.59.74-io-engine\":86.08333587646484,\"10.31.33.78-ui-mex\":80.58333587646484,\"10.31.35.238-regapi-ws\":89.5,\"10.31.33.6-jobs\":10.833333015441895,\"10.31.34.52-test-framework-gru\":0.125,\"10.31.32.27-processing-engine\":17.0,\"10.31.36.203-ui-invoicing\":8.333333015441895,\"10.31.37.20-data-poller\":68.75,\"10.31.37.102-ui-invoicing\":78.75,\"10.31.34.191-ui-heimdall\":1.6393442153930664,\"10.31.35.107-ui-rc\":87.41666412353516,\"10.31.35.26-data-poller\":3.8135592937469482,\"10.31.59.13-io-engine\":25.0,\"10.31.33.224-ui-rc\":1.7796610593795776,\"time\":1572431340000,\"10.31.34.100-ui-heimdall\":5.677966117858887},{\"10.31.36.192-ui-mex\":1.9166666269302368,\"10.31.32.96-ui-heimdall\":1.4166666269302368,\"10.31.33.225-regapi-ws\":1.4166666269302368,\"10.31.37.146-ui-heimdall\":2.5833332538604736,\"10.31.35.221-ui-heimdall\":66.44068145751953,\"10.31.37.26-jobs\":88.83333587646484,\"10.31.33.189-processing-engine\":91.91666412353516,\"10.31.32.198-ui-heimdall\":1.4166666269302368,\"10.31.59.74-io-engine\":89.40677642822266,\"10.31.33.78-ui-mex\":65.6557388305664,\"10.31.35.238-regapi-ws\":85.5,\"10.31.33.6-jobs\":11.967212677001953,\"10.31.34.52-test-framework-gru\":0.1458333283662796,\"10.31.32.27-processing-engine\":30.57377052307129,\"10.31.36.203-ui-invoicing\":3.25,\"10.31.37.20-data-poller\":93.75,\"10.31.37.102-ui-invoicing\":79.08333587646484,\"10.31.34.191-ui-heimdall\":1.4406780004501343,\"10.31.35.107-ui-rc\":84.08333587646484,\"10.31.35.26-data-poller\":3.9166667461395264,\"10.31.59.13-io-engine\":26.75,\"10.31.33.224-ui-rc\":1.5833333730697632,\"time\":1572431400000,\"10.31.34.100-ui-heimdall\":3.1666667461395264},{\"10.31.36.192-ui-mex\":1.6393442153930664,\"10.31.33.225-regapi-ws\":1.9166666269302368,\"10.31.32.96-ui-heimdall\":1.25,\"10.31.37.146-ui-heimdall\":1.5,\"10.31.35.221-ui-heimdall\":82.08333587646484,\"10.31.37.26-jobs\":84.83333587646484,\"10.31.33.189-processing-engine\":91.0,\"10.31.32.198-ui-heimdall\":1.6666666269302368,\"10.31.59.74-io-engine\":92.75,\"10.31.33.78-ui-mex\":67.54237365722656,\"10.31.33.6-jobs\":9.406779289245605,\"10.31.35.238-regapi-ws\":6.229508399963379,\"10.31.34.52-test-framework-gru\":0.1458333283662796,\"10.31.32.27-processing-engine\":13.389830589294434,\"10.31.36.203-ui-invoicing\":2.0,\"10.31.37.20-data-poller\":89.33333587646484,\"10.31.37.102-ui-invoicing\":29.8360652923584,\"10.31.34.191-ui-heimdall\":1.4166666269302368,\"10.31.35.107-ui-rc\":25.16666603088379,\"10.31.35.26-data-poller\":3.75,\"10.31.59.13-io-engine\":24.672130584716797,\"10.31.33.224-ui-rc\":1.5833333730697632,\"time\":1572431460000,\"10.31.34.100-ui-heimdall\":6.166666507720947},{\"10.31.36.192-ui-mex\":4.06779670715332,\"10.31.33.225-regapi-ws\":1.5,\"10.31.32.96-ui-heimdall\":1.3934426307678223,\"10.31.37.146-ui-heimdall\":1.9166666269302368,\"10.31.35.221-ui-heimdall\":5.25,\"10.31.37.26-jobs\":89.25,\"10.31.33.189-processing-engine\":85.6557388305664,\"10.31.32.198-ui-heimdall\":1.3333333730697632,\"10.31.59.74-io-engine\":47.0,\"10.31.33.78-ui-mex\":2.25,\"10.31.33.6-jobs\":13.833333015441895,\"10.31.35.238-regapi-ws\":2.3728814125061035,\"10.31.34.52-test-framework-gru\":0.1666666716337204,\"10.31.32.27-processing-engine\":12.0,\"10.31.36.203-ui-invoicing\":2.5,\"10.31.37.20-data-poller\":62.08333206176758,\"10.31.37.102-ui-invoicing\":2.4166667461395264,\"10.31.34.191-ui-heimdall\":1.25,\"10.31.35.26-data-poller\":3.9166667461395264,\"10.31.35.107-ui-rc\":2.5,\"10.31.59.13-io-engine\":24.6610164642334,\"10.31.33.224-ui-rc\":2.75,\"time\":1572431520000,\"10.31.34.100-ui-heimdall\":5.083333492279053},{\"10.31.36.192-ui-mex\":2.25,\"10.31.32.96-ui-heimdall\":1.610169529914856,\"10.31.33.225-regapi-ws\":1.4754098653793335,\"10.31.37.146-ui-heimdall\":1.6666666269302368,\"10.31.35.221-ui-heimdall\":8.68852424621582,\"10.31.37.26-jobs\":89.83606719970703,\"10.31.33.189-processing-engine\":67.03389739990234,\"10.31.32.198-ui-heimdall\":1.2295081615447998,\"10.31.59.74-io-engine\":35.33333206176758,\"10.31.33.78-ui-mex\":9.083333015441895,\"10.31.33.6-jobs\":9.583333015441895,\"10.31.35.238-regapi-ws\":3.0833332538604736,\"10.31.34.52-test-framework-gru\":0.125,\"10.31.37.20-data-poller\":18.66666603088379,\"10.31.37.102-ui-invoicing\":2.8813560009002686,\"10.31.34.191-ui-heimdall\":1.3333333730697632,\"10.31.35.26-data-poller\":3.9344263076782227,\"10.31.35.107-ui-rc\":2.7868852615356445,\"10.31.59.13-io-engine\":24.25,\"10.31.33.224-ui-rc\":1.6666666269302368,\"time\":1572431580000,\"10.31.34.100-ui-heimdall\":3.524590253829956},{\"10.31.33.225-regapi-ws\":1.3559322357177734,\"10.31.32.96-ui-heimdall\":1.3333333730697632,\"10.31.37.146-ui-heimdall\":1.6666666269302368,\"10.31.35.221-ui-heimdall\":2.96610164642334,\"10.31.37.26-jobs\":60.084747314453125,\"10.31.33.189-processing-engine\":36.33333206176758,\"10.31.32.198-ui-heimdall\":1.3559322357177734,\"10.31.59.74-io-engine\":34.41666793823242,\"10.31.33.78-ui-mex\":1.8333333730697632,\"10.31.35.238-regapi-ws\":2.0833332538604736,\"10.31.34.52-test-framework-gru\":0.1458333283662796,\"10.31.37.20-data-poller\":10.083333015441895,\"10.31.37.102-ui-invoicing\":1.9166666269302368,\"10.31.34.191-ui-heimdall\":1.5833333730697632,\"10.31.35.107-ui-rc\":1.610169529914856,\"10.31.59.13-io-engine\":24.66666603088379,\"time\":1572431640000},{\"10.31.33.225-regapi-ws\":1.5,\"10.31.32.96-ui-heimdall\":1.3333333730697632,\"10.31.37.146-ui-heimdall\":2.131147623062134,\"10.31.35.221-ui-heimdall\":26.66666603088379,\"10.31.37.26-jobs\":39.5,\"10.31.33.189-processing-engine\":41.41666793823242,\"10.31.32.198-ui-heimdall\":1.4166666269302368,\"10.31.59.74-io-engine\":32.91666793823242,\"10.31.33.78-ui-mex\":1.6393442153930664,\"10.31.35.238-regapi-ws\":2.3333332538604736,\"10.31.34.52-test-framework-gru\":0.125,\"10.31.37.20-data-poller\":6.833333492279053,\"10.31.37.102-ui-invoicing\":2.3333332538604736,\"10.31.34.191-ui-heimdall\":1.3333333730697632,\"10.31.35.107-ui-rc\":2.1666667461395264,\"10.31.59.13-io-engine\":26.33333396911621,\"time\":1572431700000},{\"10.31.33.225-regapi-ws\":1.5833333730697632,\"10.31.32.96-ui-heimdall\":1.3333333730697632,\"10.31.37.146-ui-heimdall\":1.8644068241119385,\"10.31.35.221-ui-heimdall\":9.916666984558105,\"10.31.37.26-jobs\":22.83333396911621,\"10.31.33.189-processing-engine\":21.25,\"10.31.32.198-ui-heimdall\":1.5833333730697632,\"10.31.59.74-io-engine\":31.58333396911621,\"10.31.33.78-ui-mex\":18.983051300048828,\"10.31.35.238-regapi-ws\":2.6666667461395264,\"10.31.34.52-test-framework-gru\":0.125,\"10.31.37.20-data-poller\":5.245901584625244,\"10.31.37.102-ui-invoicing\":33.25,\"10.31.34.191-ui-heimdall\":1.4166666269302368,\"10.31.35.107-ui-rc\":40.33333206176758,\"10.31.59.13-io-engine\":24.16666603088379,\"time\":1572431760000},{\"10.31.33.225-regapi-ws\":1.4754098653793335,\"10.31.32.96-ui-heimdall\":1.2295081615447998,\"10.31.37.146-ui-heimdall\":2.25,\"10.31.35.221-ui-heimdall\":15.916666984558105,\"10.31.37.26-jobs\":14.583333015441895,\"10.31.33.189-processing-engine\":28.770492553710938,\"10.31.32.198-ui-heimdall\":1.3333333730697632,\"10.31.59.74-io-engine\":28.08333396911621,\"10.31.33.78-ui-mex\":1.9672131538391113,\"10.31.35.238-regapi-ws\":2.5409836769104004,\"10.31.34.52-test-framework-gru\":0.1458333283662796,\"10.31.37.20-data-poller\":5.338983058929443,\"10.31.37.102-ui-invoicing\":13.666666984558105,\"10.31.34.191-ui-heimdall\":1.3333333730697632,\"10.31.35.107-ui-rc\":3.75,\"10.31.59.13-io-engine\":23.91666603088379,\"time\":1572431820000}],\"keys\":[\"10.31.32.27-processing-engine\",\"10.31.59.13-io-engine\",\"10.31.37.146-ui-heimdall\",\"10.31.33.6-jobs\",\"10.31.35.26-data-poller\",\"10.31.34.100-ui-heimdall\",\"10.31.36.192-ui-mex\",\"10.31.36.203-ui-invoicing\",\"10.31.33.224-ui-rc\",\"10.31.33.225-regapi-ws\",\"10.31.32.96-ui-heimdall\",\"10.31.34.191-ui-heimdall\",\"10.31.32.198-ui-heimdall\",\"10.31.34.52-test-framework-gru\",\"10.31.35.221-ui-heimdall\",\"10.31.35.238-regapi-ws\",\"10.31.37.20-data-poller\",\"10.31.33.189-processing-engine\",\"10.31.59.74-io-engine\",\"10.31.37.26-jobs\",\"10.31.37.102-ui-invoicing\",\"10.31.33.78-ui-mex\",\"10.31.35.107-ui-rc\"],\"groupByItems\":{\"regapi-ws\":\"regapi-ws\",\"ui-mex\":\"ui-mex\",\"processing-engine\":\"processing-engine\",\"jobs\":\"jobs\",\"ui-invoicing\":\"ui-invoicing\",\"ui-rc\":\"ui-rc\",\"data-poller\":\"data-poller\",\"test-framework-gru\":\"test-framework-gru\",\"io-engine\":\"io-engine\",\"ui-heimdall\":\"ui-heimdall\"}}","mode":"application/json"}}}
(base) sys-user@SMI-243:~/Corex/all$ curl -XPOST 'search-test-framework-es2-rh4ypdodfobsgmd54nfsnphatm.us-west-2.es.amazonaws.com/testfw-replay-newelic-dev-5dbac3817e0efc1022fb1529-cpu-utilization/_search' -d '
> {
> "query" : {
> "match_all" : {}
> }
> }'
{"took":1,"timed_out":false,"_shards":{"total":5,"successful":5,"failed":0},"hits":{"total":161,"max_score":1.0,"hits":[{"_index":"testfw-replay-newelic-dev-5dbac3817e0efc1022fb1529-cpu-utilization","_type":"system","_id":"AW4lbC56wEcMd9IvKLCC","_score":1.0,"_source":{"application":"DEV-data-poller","user_p":0,"hostname":"10.31.33.240","@timestamp":"2019-10-12T10:27:00+00:00"}},{"_index":"testfw-replay-newelic-dev-5dbac3817e0efc1022fb1529-cpu-utilization","_type":"system","_id":"AW4lbC56wEcMd9IvKLCI","_score":1.0,"_source":{"application":"DEV-data-poller","user_p":0,"hostname":"10.31.33.240","@timestamp":"2019-10-13T04:27:00+00:00"}},{"_index":"testfw-replay-newelic-dev-5dbac3817e0efc1022fb1529-cpu-utilization","_type":"system","_id":"AW4lbC56wEcMd9IvKLCN","_score":1.0,"_source":{"application":"DEV-data-poller","user_p":0,"hostname":"10.31.33.240","@timestamp":"2019-10-13T19:27:00+00:00"}},{"_index":"testfw-replay-newelic-dev-5dbac3817e0efc1022fb1529-cpu-utilization","_type":"system","_id":"AW4lbC56wEcMd9IvKLCP","_score":1.0,"_source":{"application":"DEV-data-poller","user_p":0,"hostname":"10.31.33.240","@timestamp":"2019-10-14T01:27:00+00:00"}},{"_index":"testfw-replay-newelic-dev-5dbac3817e0efc1022fb1529-cpu-utilization","_type":"system","_id":"AW4lbC56wEcMd9IvKLCR","_score":1.0,"_source":{"application":"DEV-data-poller","user_p":0,"hostname":"10.31.33.240","@timestamp":"2019-10-14T07:27:00+00:00"}},{"_index":"testfw-replay-newelic-dev-5dbac3817e0efc1022fb1529-cpu-utilization","_type":"system","_id":"AW4lbC56wEcMd9IvKLCV","_score":1.0,"_source":{"application":"DEV-data-poller","user_p":0,"hostname":"10.31.33.240","@timestamp":"2019-10-14T19:27:00+00:00"}},{"_index":"testfw-replay-newelic-dev-5dbac3817e0efc1022fb1529-cpu-utilization","_type":"system","_id":"AW4lbC56wEcMd9IvKLCW","_score":1.0,"_source":{"application":"DEV-data-poller","user_p":0,"hostname":"10.31.33.240","@timestamp":"2019-10-14T22:27:00+00:00"}},{"_index":"testfw-replay-newelic-dev-5dbac3817e0efc1022fb1529-cpu-utilization","_type":"system","_id":"AW4lbC56wEcMd9IvKLCZ","_score":1.0,"_source":{"application":"DEV-data-poller","user_p":0,"hostname":"10.31.33.240","@timestamp":"2019-10-15T07:27:00+00:00"}},{"_index":"testfw-replay-newelic-dev-5dbac3817e0efc1022fb1529-cpu-utilization","_type":"system","_id":"AW4lbC56wEcMd9IvKLCn","_score":1.0,"_source":{"application":"DEV-data-poller","user_p":0,"hostname":"10.31.33.240","@timestamp":"2019-10-17T01:27:00+00:00"}},{"_index":"testfw-replay-newelic-dev-5dbac3817e0efc1022fb1529-cpu-utilization","_type":"system","_id":"AW4lbC56wEcMd9IvKLCo","_score":1.0,"_source":{"application":"DEV-data-poller","user_p":0,"hostname":"10.31.33.240","@timestamp":"2019-10-17T04:27:00+00:00"}}]}}
dev-newrelic-cpu-utilization_all
dev-newrelic-cpu-utilization
curl -X GET "search-test-framework-es2-rh4ypdodfobsgmd54nfsnphatm.us-west-2.es.amazonaws.com/testfw-replay-newelic-dev-5dbac3817e0efc1022fb1529-cpu-utilization/_mapping?pretty"
ys-user@SMI-243:~/Corex/all$ curl -X GET "search-test-framework-es2-rh4ypdodfobsgmd54nfsnphatm.us-west-2.es.amazonaws.com/testfw-replay-newelic-dev-5dbac3817e0efc1022fb1529-cpu-utilization/_mapping?pretty"
{
"testfw-replay-newelic-dev-5dbac3817e0efc1022fb1529-cpu-utilization" : {
"mappings" : {
"system" : {
"properties" : {
"@timestamp" : {
"type" : "date",
"format" : "strict_date_optional_time||epoch_millis"
},
"application" : {
"type" : "string"
},
"hostname" : {
"type" : "string"
},
"user_p" : {
"type" : "long"
}
}
}
}
}
}
curl -X GET "search-test-framework-es2-rh4ypdodfobsgmd54nfsnphatm.us-west-2.es.amazonaws.com/testfw-replay-newelic-dev-5dbac3817e0efc1022fb1529-cpu-utilization/_settings?pretty"
(base) sys-user@SMI-243:~/Corex/all$ curl -X GET "search-test-framework-es2-rh4ypdodfobsgmd54nfsnphatm.us-west-2.es.amazonaws.com/testfw-replay-newelic-dev-5dbac3817e0efc1022fb1529-cpu-utilization/_settings?pretty"
{
"testfw-replay-newelic-dev-5dbac3817e0efc1022fb1529-cpu-utilization" : {
"settings" : {
"index" : {
"creation_date" : "1572585869611",
"number_of_shards" : "5",
"number_of_replicas" : "1",
"uuid" : "sBhkfNoCTQKmX-kgTTKcow",
"version" : {
"created" : "2030299"
}
}
}
}
}
curl -X PUT "search-test-framework-es2-rh4ypdodfobsgmd54nfsnphatm.us-west-2.es.amazonaws.com/dev-newrelic-cpu-utilization?pretty" -H 'Content-Type: application/json' -d'{"settings": {"index": {"number_of_shards": 1,"number_of_replicas": 1}},"mappings" : {"system" : {"properties" : {"@timestamp" : {"type" : "date","format" : "strict_date_optional_time||epoch_millis"},"application" : {"type" : "string"},"hostname" : {"type" : "string"},"user_p" : {"type" : "long"}}}},"aliases": {"dev-newrelic-cpu-utilization_all": {}}}'
curl -X PUT "search-test-framework-es2-rh4ypdodfobsgmd54nfsnphatm.us-west-2.es.amazonaws.com/dev-newrelic-cpu-utilization?pretty" -H 'Content-Type: application/json' -d'{"settings": {"index": {"number_of_shards": 1,"number_of_replicas": 1}}, "mappings" : {"system" : {"_ttl" : {"enabled" : true,"default" : 259200000},"properties" : {"@timestamp" : {"type" : "date","format" : "strict_date_optional_time||epoch_millis"},"application" : {"type" : "string","analyzer" : "keyword"},"hostname" : {"type" : "string","analyzer" : "keyword"},"user_p" : {"type" : "float"}}}},"aliases": {"dev-newrelic-cpu-utilization_all": {}}}'
{
"dev-cpu-utilization" : {
"mappings" : {
"system" : {
"_ttl" : {
"enabled" : true,
"default" : 259200000
},
"properties" : {
"@timestamp" : {
"type" : "date",
"format" : "strict_date_optional_time||epoch_millis"
},
"application" : {
"type" : "string",
"analyzer" : "keyword"
},
"hostname" : {
"type" : "string",
"analyzer" : "keyword"
},
"user_p" : {
"type" : "float"
}
}
}
}
}
}
"mappings": {"metadata": {"_source": {"enabled": true},"properties": {"id": {"type": "long"},"user_p": {"type": "float"},"hostIp": {"analyzer": "custom_keyword","type": "string"},"hostname": {"analyzer": "custom_keyword","type": "string"},"application": {"analyzer": "custom_keyword","type": "string"}}}},"aliases": {"dev-newrelic-cpu-utilization_all": {}}}'
curl -X PUT "localhost:9200/dev-newrelic-cpu-utilization?pretty" -H 'Content-Type: application/json' -d'{"settings": {"index" : {"creation_date" : "1572585869611","number_of_shards" : "5","number_of_replicas" : "1",
"uuid" : "sBhkfNoCTQKmX-kgTTKcow",
"version" : {
"created" : "2030299"
}
}
}
curl -X GET "localhost:9200/dev-newrelic-cpu-utilization/_search?pretty=true"
curl -X GET "localhost:9200/dev-newrelic-cpu-utilization/_settings?pretty"
curl -X GET "https://search-test-framework-es2-rh4ypdodfobsgmd54nfsnphatm.us-west-2.es.amazonaws.com/dev-newrelic-cpu-utilization/_settings?pretty"
(base) sys-user@SMI-243:~/Corex/all$ curl -X GET "localhost:9200/dev-newrelic-cpu-utilization/_settings?pretty"
{
"dev-newrelic-cpu-utilization" : {
"settings" : {
"index" : {
"number_of_shards" : "1",
"provided_name" : "dev-newrelic-cpu-utilization",
"creation_date" : "1572440094821",
"analysis" : {
"analyzer" : {
"custom_keyword" : {
"filter" : "lowercase",
"type" : "custom",
"tokenizer" : "keyword"
}
}
},
"number_of_replicas" : "1",
"uuid" : "KOl5cRUoS9GN3XXPu_VjPA",
"version" : {
"created" : "5060899"
}
}
}
}
}
ys-user@SMI-243:~/Corex/all$ curl -X GET "localhost:9200/dev-newrelic-cpu-utilization/_mapping?pretty"l
(base) sys-user@SMI-243:~/Corex/all$ curl -X GET "localhost:9200/dev-newrelic-cpu-utilization/_mapping?pretty"
{
"dev-newrelic-cpu-utilization" : {
"mappings" : {
"metadata" : {
"properties" : {
"application" : {
"type" : "text",
"analyzer" : "custom_keyword"
},
"hostIp" : {
"type" : "text",
"analyzer" : "custom_keyword"
},
"hostname" : {
"type" : "text",
"analyzer" : "custom_keyword"
},
"id" : {
"type" : "long"
},
"user_p" : {
"type" : "float"
}
}
},
"system" : {
"properties" : {
"@timestamp" : {
"type" : "date"
},
"application" : {
"type" : "text",
"fields" : {
"keyword" : {
"type" : "keyword",
"ignore_above" : 256
}
},
"analyzer" : "custom_keyword"
},
"hostIp" : {
"type" : "text",
"fields" : {
"keyword" : {
"type" : "keyword",
"ignore_above" : 256
}
},
"analyzer" : "custom_keyword"
},
"hostname" : {
"type" : "text",
"fields" : {
"keyword" : {
"type" : "keyword",
"ignore_above" : 256
}
},
"analyzer" : "custom_keyword"
},
"id" : {
"type" : "long"
},
"percent" : {
"type" : "float"
},
"user_p" : {
"type" : "float"
}
}
}
}
}
}
curl -XPOST 'search-test-framework-es2-rh4ypdodfobsgmd54nfsnphatm.us-west-2.es.amazonaws.com/dev-newrelic-cpu-utilization_all/_search' -d '
{
"query" : {
"match_all" : {}
}
}'
curl -XPOST 'search-test-framework-es2-rh4ypdodfobsgmd54nfsnphatm.us-west-2.es.amazonaws.com/dev-newrelic-cpu-utilization/_search' -d '
{
"query" : {
"match_all" : {}
}
}'
> {
https://internal-testfw-cxtf-1405-ui-heimdall-elb-30459250.us-west-2.elb.amazonaws.com/rest/testframework/performance/metrics/?chartGroup=osdao&chartName=Cumulative+CPU+Utilization&filterType=All&fromDate=2019-11-01T07:44:12.039Z&interval=2m&testResultId=5dbbe1e83109af1032a26531&toDate=2019-11-01T07:56:07.429Z&viewType=chart
https://internal-testfw-cxtf-1405-ui-heimdall-elb-30459250.us-west-2.elb.amazonaws.com/rest/testframework/performance/metrics/newrelic?chartGroup=osdao&chartName=Cumulative+CPU+Utilization&filterType=All&fromDate=2019-11-01T07:44:12.039Z&interval=2m&testResultId=5dbbe1e83109af1032a26531&toDate=2019-11-01T07:56:07.429Z&viewType=chart
10:58:00+00:00
curl -X POST "search-test-framework-es2-rh4ypdodfobsgmd54nfsnphatm.us-west-2.es.amazonaws.com/dev-newrelic-cpu-utilization/system" -H 'Content-Type: application/json' -d'{"application":"DEV-data-poller","user_p":0.666666666666664,"hostname":"10.31.33.240","@timestamp":"2019-11-01T07:45:12:00+00:00"}'
curl -X POST "search-test-framework-es2-rh4ypdodfobsgmd54nfsnphatm.us-west-2.es.amazonaws.com/dev-newrelic-cpu-utilization/system" -H 'Content-Type: application/json' -d'{"application":"test-framework-minion","user_p":0.466666666666664,"hostname":"10.31.33.232","@timestamp":"2019-10-30T07:45:12.039Z"}'
curl -X POST "search-test-framework-es2-rh4ypdodfobsgmd54nfsnphatm.us-west-2.es.amazonaws.com/dev-newrelic-cpu-utilization/system" -H 'Content-Type: application/json' -d'{"application":"test-framework-minion","user_p":0.187499999999924,"hostname":"10.31.34.52","@timestamp":"2019-11-01T07:50:12.039Z"}'
curl -X POST "search-test-framework-es2-rh4ypdodfobsgmd54nfsnphatm.us-west-2.es.amazonaws.com/dev-newrelic-cpu-utilization/system" -H 'Content-Type: application/json' -d'{"application":"test-framework-minion","user_p":0.666666666666664,"hostname":"10.31.33.232","@timestamp":"2019-11-01T07:45:12.039Z"}'
curl -X POST "search-test-framework-es2-rh4ypdodfobsgmd54nfsnphatm.us-west-2.es.amazonaws.com/dev-newrelic-cpu-utilization/system" -H 'Content-Type: application/json' -d'{"application":"test-framework-minion","user_p":0.666666666666664,"hostname":"10.31.33.232","@timestamp":"2019-11-01T07:45:12.039Z"}'
{"application":"DEV-data-poller","user_p":0,"hostname":"10.31.33.240","@timestamp":"2019-11-01T07:45:12.039Z"}
{"_index":"testfw-replay-newelic-dev-5dbac3817e0efc1022fb1529-cpu-utilization","_type":"system","_id":"AW4lbC56wEcMd9IvKLCC","_score":1.0,"_source":{"application":"DEV-data-poller","user_p":0,"hostname":"10.31.33.240","@timestamp":"2019-10-12T10:27:00+00:00"}},{"_index":"testfw-replay-newelic-dev-5dbac3817e0efc1022fb1529-cpu-utilization","_type":"system","_id":"AW4lbC56wEcMd9IvKLCI","_score":1.0,"_source":{"application":"DEV-data-poller","user_p":0,"hostname":"10.31.33.240","@timestamp":"2019-10-13T04:27:00+00:00"}}
curl -X GET "https://search-test-framework-es2-rh4ypdodfobsgmd54nfsnphatm.us-west-2.es.amazonaws.com/_cat/indices?v&pretty"
dev-cpu-utilization
curl -XPOST 'search-test-framework-es2-rh4ypdodfobsgmd54nfsnphatm.us-west-2.es.amazonaws.com/dev-newrelic-cpu-utilization/_search' -d '
{
"query" : {
"match_all" : {}
}
}'
curl -XPOST 'search-test-framework-es2-rh4ypdodfobsgmd54nfsnphatm.us-west-2.es.amazonaws.com/dev-cpu-utilization/_search' -d '
{
"query" : {
"match_all" : {}
}
}'
(base) sys-user@SMI-243:~/Corex/all$ curl -XPOST 'search-test-framework-es2-rh4ypdodfobsgmd54nfsnphatm.us-west-2.es.amazonaws.com/dev-newrelic-cpu-utilization_all/_search' -d '
{
"query" : {
"match_all" : {}
}
}'
{"took":1,"timed_out":false,"_shards":{"total":1,"successful":1,"failed":0},"hits":{"total":4,"max_score":1.0,"hits":[{"_index":"dev-newrelic-cpu-utilization","_type":"system","_id":"AW4mjY91Gb6oRN1s7_Y1","_score":1.0,"_source":{"application":"DEV-data-poller","user_p":0,"hostname":"10.31.33.240","@timestamp":"2019-11-01T07:45:12.039Z"}},{"_index":"dev-newrelic-cpu-utilization","_type":"system","_id":"AW4mlM7c_4fAvohBNuHD","_score":1.0,"_source":{"application":"test-framework-minion","user_p":0.666666666666664,"hostname":"10.31.33.232","@timestamp":"2019-11-01T07:45:12.039Z"}},{"_index":"dev-newrelic-cpu-utilization","_type":"system","_id":"AW4mpGaRwEcMd9IvMimc","_score":1.0,"_source":{"application":"test-framework-minion","user_p":0.187499999999924,"hostname":"10.31.34.52","@timestamp":"2019-11-01T07:45:12.039Z"}},{"_index":"dev-newrelic-cpu-utilization","_type":"system","_id":"AW4mpOP7_4fAvohBN2BX","_score":1.0,"_source":{"application":"test-framework-minion","user_p":0.187499999999924,"hostname":"10.31.34.52","@timestamp":"2019-11-01T07:50:12.039Z"}}]}}
(base) sys-user@SMI-243:~/Corex/all$ curl -XPOST 'search-test-framework-es2-rh4ypdodfobsgmd54nfsnphatm.us-west-2.es.amazonaws.com/dev-cpu-utilization/_search' -d '
> {
> "query" : {
> "match_all" : {}
> }
> }'
{"took":1,"timed_out":false,"_shards":{"total":5,"successful":5,"failed":0},"hits":{"total":91428,"max_score":1.0,"hits":[{"_index":"dev-cpu-utilization","_type":"system","_id":"AW4XLKsz_4fAvohBy47t","_score":1.0,"_ttl":5890,"_source":{"application":"test-framework-gru","user_p":0.187499999999924,"hostname":"10.31.34.52","@timestamp":"2019-10-29T10:58:00+00:00"}},{"_index":"dev-cpu-utilization","_type":"system","_id":"AW4XLNFqGb6oRN1shJFt","_score":1.0,"_ttl":15673,"_source":{"application":"processing-engine","user_p":13.4166666666666,"hostname":"10.31.32.6","@timestamp":"2019-10-29T10:58:00+00:00"}},{"_index":"dev-cpu-utilization","_type":"system","_id":"AW4XLMBXGb6oRN1shJDj","_score":1.0,"_ttl":11302,"_source":{"application":"ui-heimdall","user_p":1.41666666666576,"hostname":"10.31.34.191","@timestamp":"2019-10-29T10:58:00+00:00"}},{"_index":"dev-cpu-utilization","_type":"system","_id":"AW4XLAgZwEcMd9IvxmZy","_score":1.0,"_ttl":-35864,"_source":{"application":"ui-heimdall","user_p":11.4166666666667,"hostname":"10.31.34.111","@timestamp":"2019-10-29T10:58:00+00:00"}},{"_index":"dev-cpu-utilization","_type":"system","_id":"AW4XLLOr_4fAvohBy4-F","_score":1.0,"_ttl":8058,"_source":{"application":"ui-heimdall","user_p":1.50000000000006,"hostname":"10.31.32.96","@timestamp":"2019-10-29T10:58:00+00:00"}},{"_index":"dev-cpu-utilization","_type":"system","_id":"AW4XLb_m_4fAvohBy5bU","_score":1.0,"_ttl":76725,"_source":{"application":"regapi-ws","user_p":1.58333333333331,"hostname":"10.31.33.231","@timestamp":"2019-10-29T10:59:00+00:00"}},{"_index":"dev-cpu-utilization","_type":"system","_id":"AW4XLUdK_4fAvohBy5Ir","_score":1.0,"_ttl":45849,"_source":{"application":"io-engine","user_p":25.4999999999999,"hostname":"10.31.60.142","@timestamp":"2019-10-29T11:00:00+00:00"}},{"_index":"dev-cpu-utilization","_type":"system","_id":"AW4XLQn5wEcMd9Ivxmwr","_score":1.0,"_ttl":30152,"_source":{"application":"jobs","user_p":14.0983606557376,"hostname":"10.31.36.86","@timestamp":"2019-10-29T10:57:00+00:00"}},{"_index":"dev-cpu-utilization","_type":"system","_id":"AW4XLfTzwEcMd9IvxnI_","_score":1.0,"_ttl":90306,"_source":{"application":"jobs","user_p":14.4999999999999,"hostname":"10.31.36.86","@timestamp":"2019-10-29T11:00:00+00:00"}},{"_index":"dev-cpu-utilization","_type":"system","_id":"AW4XL2wLGb6oRN1shKH9","_score":1.0,"_ttl":186330,"_source":{"application":"test-framework-gru","user_p":0.166666666666705,"hostname":"10.31.34.52","@timestamp":"2019-10-29T11:01:00+00:00"}}]}}(base)
(base) sys-user@SMI-243:~/Corex/all$ curl -XPOST 'search-test-framework-es2-rh4ypdodfobsgmd54nfsnphatm.us-west-2.es.amazonaws.com/dev-newrelic-cpu-utilization/_search' -d '
> {
> "query" : {
> "match_all" : {}
> }
> }'
{"took":1,"timed_out":false,"_shards":{"total":1,"successful":1,"failed":0},"hits":{"total":1,"max_score":1.0,"hits":[{"_index":"dev-newrelic-cpu-utilization","_type":"system","_id":"AW4mjY91Gb6oRN1s7_Y1","_score":1.0,"_source":{"application":"DEV-data-poller","user_p":0,"hostname":"10.31.33.240","@timestamp":"2019-11-01T07:45:12.039Z"}}]}}(
(base) sys-user@SMI-243:~/Corex/all$ curl -XPOST 'search-test-framework-es2-rh4ypdodfobsgmd54nfsnphatm.us-west-2.es.amazonaws.com/dev-cpu-utilization/_search' -d '
> {
> "query" : {
> "match_all" : {}
> }
> }'
{"took":1,"timed_out":false,"_shards":{"total":5,"successful":5,"failed":0},"hits":{"total":91428,"max_score":1.0,"hits":[{"_index":"dev-cpu-utilization","_type":"system","_id":"AW4XLKsz_4fAvohBy47t","_score":1.0,"_ttl":5890,"_source":{"application":"test-framework-gru","user_p":0.187499999999924,"hostname":"10.31.34.52","@timestamp":"2019-10-29T10:58:00+00:00"}},{"_index":"dev-cpu-utilization","_type":"system","_id":"AW4XLNFqGb6oRN1shJFt","_score":1.0,"_ttl":15673,"_source":{"application":"processing-engine","user_p":13.4166666666666,"hostname":"10.31.32.6","@timestamp":"2019-10-29T10:58:00+00:00"}},{"_index":"dev-cpu-utilization","_type":"system","_id":"AW4XLMBXGb6oRN1shJDj","_score":1.0,"_ttl":11302,"_source":{"application":"ui-heimdall","user_p":1.41666666666576,"hostname":"10.31.34.191","@timestamp":"2019-10-29T10:58:00+00:00"}},{"_index":"dev-cpu-utilization","_type":"system","_id":"AW4XLAgZwEcMd9IvxmZy","_score":1.0,"_ttl":-35864,"_source":{"application":"ui-heimdall","user_p":11.4166666666667,"hostname":"10.31.34.111","@timestamp":"2019-10-29T10:58:00+00:00"}},{"_index":"dev-cpu-utilization","_type":"system","_id":"AW4XLLOr_4fAvohBy4-F","_score":1.0,"_ttl":8058,"_source":{"application":"ui-heimdall","user_p":1.50000000000006,"hostname":"10.31.32.96","@timestamp":"2019-10-29T10:58:00+00:00"}},{"_index":"dev-cpu-utilization","_type":"system","_id":"AW4XLb_m_4fAvohBy5bU","_score":1.0,"_ttl":76725,"_source":{"application":"regapi-ws","user_p":1.58333333333331,"hostname":"10.31.33.231","@timestamp":"2019-10-29T10:59:00+00:00"}},{"_index":"dev-cpu-utilization","_type":"system","_id":"AW4XLUdK_4fAvohBy5Ir","_score":1.0,"_ttl":45849,"_source":{"application":"io-engine","user_p":25.4999999999999,"hostname":"10.31.60.142","@timestamp":"2019-10-29T11:00:00+00:00"}},{"_index":"dev-cpu-utilization","_type":"system","_id":"AW4XLQn5wEcMd9Ivxmwr","_score":1.0,"_ttl":30152,"_source":{"application":"jobs","user_p":14.0983606557376,"hostname":"10.31.36.86","@timestamp":"2019-10-29T10:57:00+00:00"}},{"_index":"dev-cpu-utilization","_type":"system","_id":"AW4XLfTzwEcMd9IvxnI_","_score":1.0,"_ttl":90306,"_source":{"application":"jobs","user_p":14.4999999999999,"hostname":"10.31.36.86","@timestamp":"2019-10-29T11:00:00+00:00"}},{"_index":"dev-cpu-utilization","_type":"system","_id":"AW4XL2wLGb6oRN1shKH9","_score":1.0,"_ttl":186330,"_source":{"application":"test-framework-gru","user_p":0.166666666666705,"hostname":"10.31.34.52","@timestamp":"2019-10-29T11:01:00+00:00"}}]}}(
curl -X PUT "localhost:9200/my_index?pretty" -H 'Content-Type: application/json' -d'
{
"mappings": {
"my_type": {
"properties": {
"my_number": {
"type": "long",
"fields": {
"keyword": {
"type": "keyword"
}
}
}
}
}
}
}
'
curl -X PUT "localhost:9200/twitter?pretty" -H 'Content-Type: application/json' -d'
{
"mappings": {
"tweet": {
"properties": {
"message": {
"type": "text"
}
}
}
}
}
'
curl -X PUT "localhost:9200/twitter/_mapping/user?pretty" -H 'Content-Type: application/json' -d'
{
"properties": {
"name": {
"type": "text"
}
}
}
'
curl -X PUT "localhost:9200/twitter/_mapping/tweet?pretty" -H 'Content-Type: application/json' -d'
{
"properties": {
"user_name": {
"type": "text"
}
}
}
'
curl -X PUT "localhost:9200/my_index?pretty" -H 'Content-Type: application/json' -d'
{
"mappings": {
"user": {
"properties": {
"name": {
"properties": {
"first": {
"type": "text"
}
}
},
"user_id": {
"type": "keyword"
}
}
}
}
}
'
curl -X PUT "search-test-framework-es2-rh4ypdodfobsgmd54nfsnphatm.us-west-2.es.amazonaws.com/dev-newrelic-cpu-utilization/_mapping/system?pretty" -H 'Content-Type: application/json' -d'
{
"properties": {
"name": {
"properties": {
"last": {
"type": "text"
}
}
},
"user_id": {
"type": "keyword",
"ignore_above": 100
}
}
}
'
curl -X PUT "search-test-framework-es2-rh4ypdodfobsgmd54nfsnphatm.us-west-2.es.amazonaws.com/dev-newrelic-cpu-utilization?pretty" -H 'Content-Type: application/json' -d'
{"mappings" :{"system" : {"_ttl": {"default": "3d","enabled": true},{"properties" : {"@timestamp" : {
"type" : "date","format" : "strict_date_optional_time||epoch_millis"
},"application" : {"type" : "string"},"hostname" : {"type" : "string"},"user_p" : {"type" : "long"}}}}}
}
'
(base) sys-user@SMI-243:~/Corex/all$ curl -XPOST 'search-test-framework-es2-rh4ypdodfobsgmd54nfsnphatm.us-west-2.es.amazonaws.com/dev-newrelic-cpu-utilization_all/_search' -d '
> {
> "query" : {
> "match_all" : {}
> }
> }'
{"took":1,"timed_out":false,"_shards":{"total":1,"successful":1,"failed":0},"hits":{"total":4,"max_score":1.0,"hits":[{"_index":"dev-newrelic-cpu-utilization","_type":"system","_id":"AW4mjY91Gb6oRN1s7_Y1","_score":1.0,"_source":{"application":"DEV-data-poller","user_p":0,"hostname":"10.31.33.240","@timestamp":"2019-11-01T07:45:12.039Z"}},{"_index":"dev-newrelic-cpu-utilization","_type":"system","_id":"AW4mlM7c_4fAvohBNuHD","_score":1.0,"_source":{"application":"test-framework-minion","user_p":0.666666666666664,"hostname":"10.31.33.232","@timestamp":"2019-11-01T07:45:12.039Z"}},{"_index":"dev-newrelic-cpu-utilization","_type":"system","_id":"AW4mpGaRwEcMd9IvMimc","_score":1.0,"_source":{"application":"test-framework-minion","user_p":0.187499999999924,"hostname":"10.31.34.52","@timestamp":"2019-11-01T07:45:12.039Z"}},{"_index":"dev-newrelic-cpu-utilization","_type":"system","_id":"AW4mpOP7_4fAvohBN2BX","_score":1.0,"_source":{"application":"test-framework-minion","user_p":0.187499999999924,"hostname":"10.31.34.52","@timestamp":"2019-11-01T07:50:12.039Z"}}]}}
curl -XPOST 'search-test-framework-es2-rh4ypdodfobsgmd54nfsnphatm.us-west-2.es.amazonaws.com/dev-cpu-utilization_all/_search' -d '
{
"query" : {
"match_all" : {}
}
}'
(base) sys-user@SMI-243:~/Corex/all$ curl -XPOST 'search-test-framework-es2-rh4ypdodfobsgmd54nfsnphatm.us-west-2.es.amazonaws.com/dev-cpu-utilization_all/_search' -d '
> {
> "query" : {
> "match_all" : {}
> }
> }'
{"took":2,"timed_out":false,"_shards":{"total":5,"successful":5,"failed":0},"hits":{"total":91779,"max_score":1.0,"hits":[{"_index":"dev-cpu-utilization","_type":"system","_id":"AW4XUWAgGb6oRN1shX5C","_score":1.0,"_ttl":6991,"_source":{"application":"test-framework-gru","user_p":0.166666666666705,"hostname":"10.31.34.52","@timestamp":"2019-10-29T11:38:00+00:00"}},{"_index":"dev-cpu-utilization","_type":"system","_id":"AW4XUXcr_4fAvohBzIN6","_score":1.0,"_ttl":12890,"_source":{"application":"ui-heimdall","user_p":1.61016949152512,"hostname":"10.31.34.191","@timestamp":"2019-10-29T11:38:00+00:00"}},{"_index":"dev-cpu-utilization","_type":"system","_id":"AW4XUYO9wEcMd9Ivx1fa","_score":1.0,"_ttl":16108,"_source":{"application":"ui-heimdall","user_p":1.58333333333455,"hostname":"10.31.32.198","@timestamp":"2019-10-29T11:38:00+00:00"}},{"_index":"dev-cpu-utilization","_type":"system","_id":"AW4XUWqZGb6oRN1shX53","_score":1.0,"_ttl":9672,"_source":{"application":"ui-heimdall","user_p":1.39344262295076,"hostname":"10.31.32.96","@timestamp":"2019-10-29T11:39:00+00:00"}},{"_index":"dev-cpu-utilization","_type":"system","_id":"AW4XUPGG_4fAvohBzH61","_score":1.0,"_ttl":-21323,"_source":{"application":"data-poller","user_p":3.99999999999996,"hostname":"10.31.33.9","@timestamp":"2019-10-29T11:38:00+00:00"}},{"_index":"dev-cpu-utilization","_type":"system","_id":"AW4XUktXGb6oRN1shYM7","_score":1.0,"_ttl":67206,"_source":{"application":"test-framework-gru","user_p":0.125000000000076,"hostname":"10.31.34.52","@timestamp":"2019-10-29T11:39:00+00:00"}},{"_index":"dev-cpu-utilization","_type":"system","_id":"AW4XUpOhGb6oRN1shYSL","_score":1.0,"_ttl":85712,"_source":{"application":"ui-heimdall","user_p":4.23728813559322,"hostname":"10.31.34.111","@timestamp":"2019-10-29T11:40:00+00:00"}},{"_index":"dev-cpu-utilization","_type":"system","_id":"AW4XUlWEwEcMd9Ivx11q","_score":1.0,"_ttl":69811,"_source":{"application":"ui-heimdall","user_p":1.44067796610173,"hostname":"10.31.32.96","@timestamp":"2019-10-29T11:40:00+00:00"}},{"_index":"dev-cpu-utilization","_type":"system","_id":"AW4XUgHxwEcMd9Ivx1nW","_score":1.0,"_ttl":48416,"_source":{"application":"io-engine","user_p":24.7457627118643,"hostname":"10.31.60.142","@timestamp":"2019-10-29T11:40:00+00:00"}},{"_index":"dev-cpu-utilization","_type":"system","_id":"AW4XUseFGb6oRN1shYTf","_score":1.0,"_ttl":98996,"_source":{"application":"data-poller","user_p":4.16666666666667,"hostname":"10.31.33.9","@timestamp":"2019-10-29T11:40:00+00:00"}}]}}
{"bool":{"must":{"match_all":{}},"filter":{"bool":{"must":[{"range":{"@timestamp":{"gte":" 2019-10-29T06:59:000Z ","lte":"2019-11-01T07:45:12.040Z" }}},{"term":{"application":"All"}},"must_not":[{ "range": { "user_p": { "lte": 0 } } }]}}}},"size":0,"aggs":{"output":{"date_histogram":{"field":"@timestamp","interval":1,"time_zone":"+05:30","min_doc_count":1,"extended_bounds":{"min":"2019-11-30T07:44:12.039Z","max":"2019-11-01T07:56:07.429Z"}},"aggs":{"items":{"terms":{"field":"hostname","size":100,"order":{"count":"desc"}},"aggs":{"count":{"avg":{"field":"user_p"}}}}}}}
{\"bool\":{\"must\":{\"match_all\":{}},\"filter\":{\"bool\":{\"must\":[{\"range\":{\"@timestamp\":{\"gte\":" 2019-10-29T06:59:000Z ",\"lte\":" + "2019-11-01T07:45:12.040Z" }}}");
,{\"term\":{\"application\":\"" + filterType + "\"}}
,\"must_not\":[{ \"range\": { \"user_p\": { \"lte\": 0 } } }]}}}}
\"size\":0,\"aggs\":{\"output\":{\"date_histogram\":{\"field\":\"@timestamp\",\"interval\":"
+ qInterval
+ ",\"time_zone\":\"+05:30\",\"min_doc_count\":1,\"extended_bounds\":{\"min\":"
+ qFromDate
+ ",\"max\":"
+ qToDate
+ "}},\"aggs\":{\"items\":{\"terms\":{\"field\":\"hostname\",\"size\":100,\"order\":{\"count\":\"desc\"}},\"aggs\":{\"count\":{\"avg\":{\"field\":\"user_p\"}}}}}}}";
curl -X DELETE "search-test-framework-es2-rh4ypdodfobsgmd54nfsnphatm.us-west-2.es.amazonaws.com/dev-newrelic-cpu-utilization?pretty"
stg-newrelic-heap-utilization
curl -X DELETE "search-test-framework-es2-rh4ypdodfobsgmd54nfsnphatm.us-west-2.es.amazonaws.com/stg-newrelic-heap-utilization?pretty"
curl -X PUT "search-test-framework-es2-rh4ypdodfobsgmd54nfsnphatm.us-west-2.es.amazonaws.com/dev-newrelic-cpu-utilization?pretty" -H 'Content-Type: application/json' -d'{"settings": {"index": {"number_of_shards": 1,"number_of_replicas": 1}},"mappings" : {"system" : {"properties" : "application" : {"type" : "string"},"hostname" : {"type" : "string"},"user_p" : {"type" : "float"}}}},"aliases": {"dev-newrelic-cpu-utilization_all": {}}}'
curl -X PUT "search-test-framework-es2-rh4ypdodfobsgmd54nfsnphatm.us-west-2.es.amazonaws.com/stg-newrelic-heap-utilization?pretty" -H 'Content-Type: application/json' -d'{"settings": {"index": {"number_of_shards": 1,"number_of_replicas": 1}},"mappings" : {"system" : {"properties" : "application" : {"type" : "string"},"hostname" : {"type" : "string"},"user_p" : {"type" : "float"}}}},"aliases": {"dev-newrelic-cpu-utilization_all": {}}}'
(base) sys-user@SMI-243:~/backup/aws$ curl -X GET "https://search-test-framework-es2-rh4ypdodfobsgmd54nfsnphatm.us-west-2.es.amazonaws.com/dev-newrelic-cpu-utilization/_search?pretty=true"
{
"took" : 1,
"timed_out" : false,
"_shards" : {
"total" : 5,
"successful" : 5,
"failed" : 0
},
"hits" : {
"total" : 100602,
"max_score" : 1.0,
"hits" : [ {
"_index" : "dev-cpu-utilization",
"_type" : "system",
"_id" : "AW4lsU5hwEcMd9IvKq7M",
"_score" : 1.0,
"_ttl" : 50708,
"_source" : {
"application" : "test-framework-gru",
"user_p" : 0.104166666666667,
"hostname" : "10.31.33.168",
"@timestamp" : "2019-11-01T06:38:00+00:00"
}
}, {
"_index" : "dev-cpu-utilization",
"_type" : "system",
"_id" : "AW4lsVyDGb6oRN1s6Ret",
"_score" : 1.0,
"_ttl" : 54326,
"_source" : {
"application" : "data-poller",
"user_p" : 3.85245901639348,
"hostname" : "10.31.37.224",
"@timestamp" : "2019-11-01T06:38:00+00:00"
}
}, {
"_index" : "dev-cpu-utilization",
"_type" : "system",
"_id" : "AW4lsWoL_4fAvohBL9MO",
"_score" : 1.0,
"_ttl" : 57790,
"_source" : {
"application" : "ui-heimdall",
"user_p" : 1.44067796610193,
"hostname" : "10.31.34.128",
"@timestamp" : "2019-11-01T06:37:00+00:00"
}
}, {
"_index" : "dev-cpu-utilization",
"_type" : "system",
"_id" : "AW4lsEvBGb6oRN1s6RAS",
"_score" : 1.0,
"_ttl" : -15500,
"_source" : {
"application" : "ui-invoicing",
"user_p" : 1.66666666666667,
"hostname" : "10.31.32.14",
"@timestamp" : "2019-11-01T06:37:00+00:00"
}
}, {
"_index" : "dev-cpu-utilization",
"_type" : "system",
"_id" : "AW4lsEB1Gb6oRN1s6Q_e",
"_score" : 1.0,
"_ttl" : -18392,
"_source" : {
"application" : "io-engine",
"user_p" : 26.0169491525422,
"hostname" : "10.31.59.146",
"@timestamp" : "2019-11-01T06:36:00+00:00"
}
}, {
"_index" : "dev-cpu-utilization",
"_type" : "system",
"_id" : "AW4lsGeowEcMd9IvKqg_",
"_score" : 1.0,
"_ttl" : -8357,
"_source" : {
"application" : "ui-heimdall",
"user_p" : 1.33333333333326,
"hostname" : "10.31.37.16",
"@timestamp" : "2019-11-01T06:37:00+00:00"
}
}, {
"_index" : "dev-cpu-utilization",
"_type" : "system",
"_id" : "AW4lsTrPGb6oRN1s6RcY",
"_score" : 1.0,
"_ttl" : 45698,
"_source" : {
"application" : "ui-heimdall",
"user_p" : 2.08333333333333,
"hostname" : "10.31.33.83",
"@timestamp" : "2019-11-01T06:38:00+00:00"
}
}, {
"_index" : "dev-cpu-utilization",
"_type" : "system",
"_id" : "AW4lsjkqGb6oRN1s6R7E",
"_score" : 1.0,
"_ttl" : 110813,
"_source" : {
"application" : "test-framework-gru",
"user_p" : 0.145833333333343,
"hostname" : "10.31.33.168",
"@timestamp" : "2019-11-01T06:39:00+00:00"
}
}, {
"_index" : "dev-cpu-utilization",
"_type" : "system",
"_id" : "AW4lsjNIwEcMd9IvKrVp",
"_score" : 1.0,
"_ttl" : 109307,
"_source" : {
"application" : "test-framework-gru",
"user_p" : 0.125000000000028,
"hostname" : "10.31.35.196",
"@timestamp" : "2019-11-01T06:39:00+00:00"
}
}, {
"_index" : "dev-cpu-utilization",
"_type" : "system",
"_id" : "AW4lsgkjGb6oRN1s6R3b",
"_score" : 1.0,
"_ttl" : 98518,
"_source" : {
"application" : "processing-engine",
"user_p" : 15.0,
"hostname" : "10.31.32.113",
"@timestamp" : "2019-11-01T06:38:00+00:00"
}
} ]
}
}
curl -X POST "search-test-framework-es2-rh4ypdodfobsgmd54nfsnphatm.us-west-2.es.amazonaws.com/dev-newrelic-cpu-utilization/system" -H 'Content-Type: application/json' -d'{"application":"processing-engine","user_p":0.666666666666664,"hostname":"10.31.33.232","@timestamp":"2019-11-01T07:45:00+00:00"}'
curl -X POST "search-test-framework-es2-rh4ypdodfobsgmd54nfsnphatm.us-west-2.es.amazonaws.com/dev-newrelic-cpu-utilization/system" -H 'Content-Type: application/json' -d'{"application" : "data-poller","user_p" : 3.85245901639348,"hostname" : "10.31.37.224","@timestamp" : "2019-11-01T06:38:00+00:00"}'
curl -X POST "search-test-framework-es2-rh4ypdodfobsgmd54nfsnphatm.us-west-2.es.amazonaws.com/dev-newrelic-cpu-utilization/system" -H 'Content-Type: application/json' -d'{"application" : "ui-heimdall","user_p" : 2.08333333333333,"hostname" : "10.31.33.83","@timestamp" : "2019-11-01T06:38:00+00:00"}'
curl -X POST "search-test-framework-es2-rh4ypdodfobsgmd54nfsnphatm.us-west-2.es.amazonaws.com/dev-newrelic-cpu-utilization/system" -H 'Content-Type: application/json' -d'{"application":"processing-engine","user_p":0.666666666666664,"hostname":"10.31.33.232","@timestamp":"2019-11-06T07:21:07+00:00"}'
curl -X POST "search-test-framework-es2-rh4ypdodfobsgmd54nfsnphatm.us-west-2.es.amazonaws.com/dev-newrelic-cpu-utilization/system" -H 'Content-Type: application/json' -d'{"application" : "data-poller","user_p" : 3.85245901639348,"hostname" : "10.31.37.224","@timestamp" : "2019-11-06T07:08:24+00:00"}'
curl -X POST "search-test-framework-es2-rh4ypdodfobsgmd54nfsnphatm.us-west-2.es.amazonaws.com/dev-newrelic-cpu-utilization/system" -H 'Content-Type: application/json' -d'{"application" : "data-poller","user_p" : 3.85245901639348,"hostname" : "10.31.37.224","@timestamp" : "2019-11-06T07:10:24+00:00"}'
curl -X POST "search-test-framework-es2-rh4ypdodfobsgmd54nfsnphatm.us-west-2.es.amazonaws.com/dev-newrelic-cpu-utilization/system" -H 'Content-Type: application/json' -d'{"application" : "data-poller","user_p" : 3.85245901639348,"hostname" : "10.31.37.224","@timestamp" : "2019-11-06T07:12:24+00:00"}'
curl -X POST "search-test-framework-es2-rh4ypdodfobsgmd54nfsnphatm.us-west-2.es.amazonaws.com/dev-newrelic-cpu-utilization/system" -H 'Content-Type: application/json' -d'{"application" : "io-engine","user_p" : 3.9245901639348,"hostname" : "10.31.37.52","@timestamp" : "2019-11-06T07:12:24+00:00"}'
"application" : "ui-heimdall",
"user_p" : 2.08333333333333,
"hostname" : "10.31.33.83",
"@timestamp" : "2019-11-01T06:38:00+00:00"
1.10.2019
: Friday, November 1, 2019 1:15:00 PM GMT+05:30
{
"query": {
"match_all": {}
},"size":10,
"filter": {
"term": {
"status": "published"
}
},
, "aggs":{ "output":{ "terms":{ "field":"user_p" } } }
}
curl -X GET "localhost:9200/_search?pretty" -H 'Content-Type: application/json' -d'
{
"query": {
"range" : {
"timestamp" : {
"gte": "2015-01-01 00:00:00",
"lte": "now",
"time_zone": "+01:00"
}
}
}
}
'
"filter": {
"term": {
"@timestamp": {
"gte": "2019-10-29T00:00:00+",
"lte": "now",
"time_zone": "+05:30"
}
}
}
{
"data": [
{
"10.31.34.166-data-poller": 4.06779670715332,
"10.31.35.156-test-framework-gru": 0.1458333283662796,
"10.31.61.138-io-engine": 25,
"10.31.36.86-jobs": 13.583333015441895,
"10.31.36.242-ui-mex": 1.4166666269302368,
"10.31.32.62-test-framework-gru": 0.125,
"10.31.34.100-processing-engine": 17.711864471435547,
"10.31.35.203-ui-heimdall": 1.75,
"10.31.36.108-ui-invoicing": 17.91666603088379,
"10.31.34.231-regapi-ws": 1.9166666269302368,
"10.31.32.198-ui-heimdall": 1.25,
"10.31.35.196-test-framework-gru": 0.1458333283662796,
"10.31.36.48-ui-rc": 2.704918146133423,
"10.31.36.87-ui-heimdall": 4.34426212310791,
"10.31.34.191-ui-heimdall": 1.6666666269302368,
"time": 1572860820000,
"10.31.34.200-ui-heimdall": 2.9166667461395264
},
{
"10.31.34.166-data-poller": 4.426229476928711,
"10.31.35.156-test-framework-gru": 0.125,
"10.31.61.138-io-engine": 25.491804122924805,
"10.31.36.86-jobs": 14.5,
"10.31.36.242-ui-mex": 1.6666666269302368,
"10.31.32.62-test-framework-gru": 0.125,
"10.31.35.203-ui-heimdall": 1.4166666269302368,
"10.31.36.108-ui-invoicing": 4.166666507720947,
"10.31.34.231-regapi-ws": 2.25,
"10.31.32.198-ui-heimdall": 1.4166666269302368,
"10.31.35.196-test-framework-gru": 0.125,
"10.31.36.48-ui-rc": 15.93220329284668,
"10.31.36.87-ui-heimdall": 2.8813560009002686,
"10.31.34.191-ui-heimdall": 1.3934426307678223,
"time": 1572860880000,
"10.31.34.200-ui-heimdall": 1.5
},
{
"10.31.34.166-data-poller": 4.166666507720947,
"10.31.35.156-test-framework-gru": 0.16393442451953888,
"10.31.61.138-io-engine": 25.67796516418457,
"10.31.36.86-jobs": 13,
"10.31.36.242-ui-mex": 2.0833332538604736,
"10.31.32.62-test-framework-gru": 0.1666666716337204,
"10.31.35.203-ui-heimdall": 1.5,
"10.31.36.108-ui-invoicing": 1.9166666269302368,
"10.31.34.231-regapi-ws": 1.5573770999908447,
"10.31.32.198-ui-heimdall": 1.25,
"10.31.35.196-test-framework-gru": 0.125,
"10.31.36.48-ui-rc": 1.6393442153930664,
"10.31.36.87-ui-heimdall": 3.8333332538604736,
"10.31.34.191-ui-heimdall": 1.4406780004501343,
"time": 1572860940000,
"10.31.34.200-ui-heimdall": 1.5833333730697632
},
{
"10.31.34.166-data-poller": 4.322033882141113,
"10.31.35.156-test-framework-gru": 0.12711864709854126,
"10.31.61.138-io-engine": 27.83333396911621,
"10.31.36.86-jobs": 14.25,
"10.31.36.242-ui-mex": 1.5573770999908447,
"10.31.32.62-test-framework-gru": 0.1458333283662796,
"10.31.35.203-ui-heimdall": 1.5,
"10.31.36.108-ui-invoicing": 2.0833332538604736,
"10.31.34.231-regapi-ws": 1.6949152946472168,
"10.31.32.198-ui-heimdall": 1.4166666269302368,
"10.31.35.196-test-framework-gru": 0.1458333283662796,
"10.31.36.48-ui-rc": 1.9491525888442993,
"10.31.36.87-ui-heimdall": 6.666666507720947,
"10.31.34.191-ui-heimdall": 1.4166666269302368,
"time": 1572861000000,
"10.31.34.200-ui-heimdall": 1.3333333730697632
},
{
"10.31.34.166-data-poller": 4.333333492279053,
"10.31.35.156-test-framework-gru": 0.125,
"10.31.61.138-io-engine": 24.83333396911621,
"10.31.36.86-jobs": 12.916666984558105,
"10.31.36.242-ui-mex": 1.9491525888442993,
"10.31.32.62-test-framework-gru": 0.1666666716337204,
"10.31.34.100-processing-engine": 13.852458953857422,
"10.31.35.203-ui-heimdall": 1.4166666269302368,
"10.31.36.108-ui-invoicing": 2.0833332538604736,
"10.31.34.231-regapi-ws": 1.7213114500045776,
"10.31.32.198-ui-heimdall": 1.6666666269302368,
"10.31.35.196-test-framework-gru": 0.125,
"10.31.36.48-ui-rc": 1.6666666269302368,
"10.31.36.87-ui-heimdall": 10.25,
"10.31.34.191-ui-heimdall": 1.2295081615447998,
"time": 1572861060000,
"10.31.34.200-ui-heimdall": 1.6666666269302368
},
{
"10.31.34.166-data-poller": 4.836065769195557,
"10.31.35.156-test-framework-gru": 0.1458333283662796,
"10.31.61.138-io-engine": 24.83333396911621,
"10.31.36.86-jobs": 15.5,
"10.31.36.242-ui-mex": 1.4166666269302368,
"10.31.32.62-test-framework-gru": 0.1458333283662796,
"10.31.35.203-ui-heimdall": 2.3333332538604736,
"10.31.36.108-ui-invoicing": 2.131147623062134,
"10.31.34.231-regapi-ws": 1.7796610593795776,
"10.31.32.198-ui-heimdall": 1.311475396156311,
"10.31.35.196-test-framework-gru": 0.1458333283662796,
"10.31.36.48-ui-rc": 2.25,
"10.31.36.87-ui-heimdall": 4.75,
"10.31.34.191-ui-heimdall": 1.6949152946472168,
"time": 1572861120000,
"10.31.34.200-ui-heimdall": 1.25
},
{
"10.31.34.166-data-poller": 4.06779670715332,
"10.31.35.156-test-framework-gru": 0.1458333283662796,
"10.31.61.138-io-engine": 24.66666603088379,
"10.31.36.86-jobs": 10.833333015441895,
"10.31.36.242-ui-mex": 1.75,
"10.31.32.62-test-framework-gru": 0.1458333283662796,
"10.31.35.203-ui-heimdall": 1.9166666269302368,
"10.31.36.108-ui-invoicing": 3.1355931758880615,
"10.31.34.231-regapi-ws": 1.6666666269302368,
"10.31.32.198-ui-heimdall": 1.4406780004501343,
"10.31.35.196-test-framework-gru": 0.125,
"10.31.36.48-ui-rc": 1.8333333730697632,
"10.31.36.87-ui-heimdall": 5.416666507720947,
"10.31.34.191-ui-heimdall": 1.4166666269302368,
"time": 1572861180000,
"10.31.34.200-ui-heimdall": 1.311475396156311
},
{
"10.31.34.166-data-poller": 4.180327892303467,
"10.31.35.156-test-framework-gru": 0.1458333283662796,
"10.31.61.138-io-engine": 25.66666603088379,
"10.31.36.86-jobs": 15.916666984558105,
"10.31.36.242-ui-mex": 1.4166666269302368,
"10.31.32.62-test-framework-gru": 0.125,
"10.31.35.203-ui-heimdall": 1.5833333730697632,
"10.31.36.108-ui-invoicing": 2.75,
"10.31.34.231-regapi-ws": 1.4754098653793335,
"10.31.32.198-ui-heimdall": 1.25,
"10.31.35.196-test-framework-gru": 0.1458333283662796,
"10.31.36.48-ui-rc": 1.8032786846160889,
"10.31.36.87-ui-heimdall": 2.5409836769104004,
"10.31.34.191-ui-heimdall": 1.3934426307678223,
"time": 1572861240000,
"10.31.34.200-ui-heimdall": 1.2711864709854126
},
{
"10.31.34.166-data-poller": 3.8983051776885986,
"10.31.35.156-test-framework-gru": 0.125,
"10.31.61.138-io-engine": 26.16666603088379,
"10.31.36.86-jobs": 15.083333015441895,
"10.31.36.242-ui-mex": 1.6666666269302368,
"10.31.32.62-test-framework-gru": 0.125,
"10.31.34.100-processing-engine": 28.389829635620117,
"10.31.35.203-ui-heimdall": 1.8333333730697632,
"10.31.36.108-ui-invoicing": 3.4166667461395264,
"10.31.34.231-regapi-ws": 1.8644068241119385,
"10.31.32.198-ui-heimdall": 1.3333333730697632,
"10.31.35.196-test-framework-gru": 0.125,
"10.31.36.48-ui-rc": 1.7796610593795776,
"10.31.36.87-ui-heimdall": 2.1186439990997314,
"10.31.34.191-ui-heimdall": 1.4406780004501343,
"time": 1572861300000,
"10.31.34.200-ui-heimdall": 1.4166666269302368
},
{
"10.31.34.166-data-poller": 4.016393661499023,
"10.31.35.156-test-framework-gru": 0.1458333283662796,
"10.31.61.138-io-engine": 25.33333396911621,
"10.31.36.86-jobs": 13.916666984558105,
"10.31.36.242-ui-mex": 1.9166666269302368,
"10.31.32.62-test-framework-gru": 0.1666666716337204,
"10.31.34.100-processing-engine": 15.166666984558105,
"10.31.35.203-ui-heimdall": 1.5,
"10.31.36.108-ui-invoicing": 2.5,
"10.31.34.231-regapi-ws": 2.049180269241333,
"10.31.32.198-ui-heimdall": 1.75,
"10.31.35.196-test-framework-gru": 0.125,
"10.31.36.48-ui-rc": 1.5,
"10.31.36.87-ui-heimdall": 2.4166667461395264,
"10.31.34.191-ui-heimdall": 1.311475396156311,
"time": 1572861360000,
"10.31.34.200-ui-heimdall": 1.5833333730697632
},
{
"10.31.34.166-data-poller": 3.98305082321167,
"10.31.35.156-test-framework-gru": 0.125,
"10.31.61.138-io-engine": 26.065574645996094,
"10.31.36.86-jobs": 13.833333015441895,
"10.31.36.242-ui-mex": 2.6666667461395264,
"10.31.32.62-test-framework-gru": 0.125,
"10.31.35.203-ui-heimdall": 1.75,
"10.31.36.108-ui-invoicing": 3,
"10.31.34.231-regapi-ws": 2,
"10.31.32.198-ui-heimdall": 1.3333333730697632,
"10.31.35.196-test-framework-gru": 0.1458333283662796,
"10.31.36.48-ui-rc": 1.5833333730697632,
"10.31.36.87-ui-heimdall": 6.083333492279053,
"10.31.34.191-ui-heimdall": 1.610169529914856,
"time": 1572861420000,
"10.31.34.200-ui-heimdall": 1.4166666269302368
},
{
"10.31.34.166-data-poller": 4.34426212310791,
"10.31.35.156-test-framework-gru": 0.125,
"10.31.61.138-io-engine": 24.6610164642334,
"10.31.36.86-jobs": 11.065573692321777,
"10.31.36.242-ui-mex": 2,
"10.31.32.62-test-framework-gru": 0.1458333283662796,
"10.31.34.100-processing-engine": 14.166666984558105,
"10.31.35.203-ui-heimdall": 1.4166666269302368,
"10.31.36.108-ui-invoicing": 4.75,
"10.31.34.231-regapi-ws": 2.203389883041382,
"10.31.32.198-ui-heimdall": 1.3333333730697632,
"10.31.35.196-test-framework-gru": 0.1458333283662796,
"10.31.36.48-ui-rc": 1.5833333730697632,
"10.31.36.87-ui-heimdall": 11.5,
"10.31.34.191-ui-heimdall": 1.3333333730697632,
"time": 1572861480000,
"10.31.34.200-ui-heimdall": 1.25
}
],
"keys": [
"10.31.61.138-io-engine",
"10.31.36.108-ui-invoicing",
"10.31.34.100-processing-engine",
"10.31.36.86-jobs",
"10.31.36.87-ui-heimdall",
"10.31.34.166-data-poller",
"10.31.34.200-ui-heimdall",
"10.31.36.48-ui-rc",
"10.31.34.231-regapi-ws",
"10.31.35.203-ui-heimdall",
"10.31.34.191-ui-heimdall",
"10.31.36.242-ui-mex",
"10.31.32.198-ui-heimdall",
"10.31.35.156-test-framework-gru",
"10.31.35.196-test-framework-gru",
"10.31.32.62-test-framework-gru"
],
"groupByItems": {
"regapi-ws": "regapi-ws",
"ui-mex": "ui-mex",
"processing-engine": "processing-engine",
"jobs": "jobs",
"ui-invoicing": "ui-invoicing",
"data-poller": "data-poller",
"ui-rc": "ui-rc",
"test-framework-gru": "test-framework-gru",
"io-engine": "io-engine",
"ui-heimdall": "ui-heimdall"
}
}
{
"data": {
"10.31.33.83": "3.852458953857422",
"10.31.37.224": "3.852458953857422",
"10.31.33.232": "3.852458953857422"
},
"keys": {
"10.31.33.83": "3.852458953857422",
"10.31.37.224": "3.852458953857422",
"10.31.33.232": "3.852458953857422"
},
"groupByItems": {
"processing-engine": "processing-engine",
"data-poller": "data-poller",
"ui-heimdall": "ui-heimdall"
}
}
using ESRestTemplate
from to logic for newrelic to get data from es
every 1 min taking old data also
{"data":{"10.31.33.83-processing-engine":2.0833332538604736,"10.31.37.224-ui-heimdall":3.852458953857422,"10.31.33.232-data-poller":0.6666666865348816},"keys":["10.31.33.232-data-poller","10.31.33.83-processing-engine","10.31.37.224-ui-heimdall"],"groupByItems":{"processing-engine":"processing-engine","data-poller":"data-poller","ui-heimdall":"ui-heimdall"}}
"application" : "io-engine",
"user_p" : 26.0169491525422,
"hostname" : "10.31.59.146",
"@timestamp" : "2019-11-01T06:36:00+00:00"
}
curl -X POST "search-test-framework-es2-rh4ypdodfobsgmd54nfsnphatm.us-west-2.es.amazonaws.com/dev-newrelic-cpu-utilization/system" -H 'Content-Type: application/json' -d'{"application" : "io-engine","user_p" : 26.0169491525422,"hostname" : "10.31.59.146","@timestamp" : "2019-11-01T06:36:00+00:00"}'
{"query":{
"range":{
"@timestamp" : {
"gte": "2019-10-29T06:59:39+00:00",
"lte": "2019-10-30T13:17:43+00:00",
"time_zone": "+01:00"
}
}
}
}
curl -X POST "localhost:9200/sales/_search?size=0&pretty" -H 'Content-Type: application/json' -d'
{
"aggs" : {
"date_histogram" : {
"field" : "@timestamp",
"interval" : "2m",
"min":"2019-10-29T06:59:39+00:00",
"max":"2019-10-30T13:17:43+00:00"
}
}
}
}
'
{
"aggs" : {
"output":{
"date_histogram" : {
"field" : "@timestamp",
"interval" : "2m",
"time_zone":"+05:30",
"min_doc_count":1,
"extended_bounds":{
"min":"2019-10-29T06:59:39+00:00",
"max":"2019-10-30T13:17:43+00:00"
}
}
}
}
}
{ \"match_all\":{} },\"size\":0, \"aggs\":{ \"output\":{ \"terms\":{ \"field\":\""+objectName+"\" } } }
{"query":{
"match_all":{}},
"size":0,
"aggs":{
"output":{
"terms":{
"field":"application"
}
}
}
}
local
{
"took": 0,
"timed_out": false,
"_shards": {
"total": 1,
"successful": 1,
"skipped": 0,
"failed": 0
},
"hits": {
"total": 4,
"max_score": 1,
"hits": [
{
"_index": "dev-newrelic-cpu-utilization",
"_type": "system",
"_id": "AW4cvSAMmevqRYxNzU0u",
"_score": 1,
"_source": {
"id": "1",
"application": "test-framework-minion",
"percent": 0.403333333333338,
"user_p": 0.749999999999993,
"hostname": "ip-10-31-59-78.awsdsi.ghx.com",
"hostIp": "10.31.59.78",
"@timestamp": "2019-10-29T06:59:39+00:00"
}
},
{
"_index": "dev-newrelic-cpu-utilization",
"_type": "system",
"_id": "AW4c0-WKmevqRYxNzU0w",
"_score": 1,
"_source": {
"id": "1",
"application": "test-framework-minion",
"percent": 0.403333333333338,
"user_p": 0.749999999999993,
"hostname": "ip-10-31-59-78.awsdsi.ghx.com",
"hostIp": "10.31.59.78",
"@timestamp": "2019-10-29T06:59:39+00:00"
}
},
{
"_index": "dev-newrelic-cpu-utilization",
"_type": "system",
"_id": "AW4c1JCSmevqRYxNzU0x",
"_score": 1,
"_source": {
"id": "1",
"application": "test-framework-minion",
"percent": 0.403333333333338,
"user_p": 0.749999999999993,
"hostname": "ip-10-31-59-78.awsdsi.ghx.com",
"hostIp": "10.31.59.78",
"@timestamp": "2019-10-30T13:17:43+00:00"
}
},
{
"_index": "dev-newrelic-cpu-utilization",
"_type": "system",
"_id": "AW4mjJ-o3vysBZWiw4FB",
"_score": 1,
"_source": {
"application": "DEV-data-poller",
"user_p": 0,
"hostname": "10.31.33.240",
"@timestamp": "2019-11-01T07:45:12.039Z"
}
}
]
}
}
{"query":
{"bool":
{"must":{
"match_all":{}
},
"filter":{
"bool":{
"must":[{"range":
{"@timestamp":{
"gte":"2019-10-29T06:59:39+00:00",
"lte":"2019-10-30T13:17:43+00:00"
}
}
},{"term":{
"application":"All"
}
}
],"must_not":[{
"range":{"user_p":{
"lte":0}}}]
}}}},"size":0,
"aggs":{"items":{
"terms":{"field":"hostname"
,"size":100,
"order":{"count":"desc"}},
"aggs":{"count":{
"avg":{"field":"user_p"}}}}}}
{
"query": {
"bool": {
"must": {
"match_all": {}
},
"filter": {
"bool": {
"must": [
{
"range": {
"@timestamp": {
"gte": "2019-10-29T06:59:39+00:00",
"lte": "2019-10-30T13:17:43+00:00"
}
}
},
{
"term": {
"application": "All"
}
}
],
"must_not": [
{
"range": {
"user_p": {
"lte": 0
}
}
}
]
}
}
}
},
"size": 0,
"aggs": {
"items": {
"terms": {
"field": "hostname",
"size": 100,
"order": {
"count": "desc"
}
},
"aggs": {
"count": {
"avg": {
"field": "user_p"
}
}
}
}
}
}
{\"bool\":{\"must\":{\"match_all\":{}},\"filter\":{\"bool\":{\"must\":[{\"range\":{\"@timestamp\":{\"gte\":"
+ qFromDate + ",\"lte\":" + qToDate + "}}}
,{\"term\":{\"application\":\"" + filterType + "\"}}
"],\"must_not\":[{ \"range\": { \"user_p\": { \"lte\": 0 } } }]}}}}
"\"size\":0,\"aggs\":{\"output\":{\"date_histogram\":{\"field\":\"@timestamp\",\"interval\":"
+ qInterval
+ ",\"time_zone\":\"+05:30\",\"min_doc_count\":1,\"extended_bounds\":{\"min\":"
+ qFromDate
+ ",\"max\":"
+ qToDate
+ "}},\"aggs\":{\"items\":{\"terms\":{\"field\":\"hostname\",\"size\":100,\"order\":{\"count\":\"desc\"}},\"aggs\":{\"count\":{\"avg\":{\"field\":\"user_p\"}}}}}}}";
curl -X GET "localhost:9200/_search?pretty" -H 'Content-Type: application/json' -d'
{
"query": {
"match" : {
"message" : {
"query" : "to be or not to be",
"operator" : "and",
"zero_terms_query": "all"
}
}
}
}
'
curl -X GET "https://search-test-framework-es2-rh4ypdodfobsgmd54nfsnphatm.us-west-2.es.amazonaws.com/dev-newrelic-cpu-utilization/_search?pretty" -H 'Content-Type: application/json' -d'{
"query": {
"bool": {
"must": {
"match_all": {}
},
"filter": {
"bool": {
"must": [
{
"range": {
"@timestamp": {
"gte": "2019-11-01T07:44:12.039Z",
"lte": "2019-11-01T07:56:07.429Z"
}
}
},
{
"term": {
"application": "ui-heimdall"
}
}
],
"must_not": [
{
"range": {
"user_p": {
"lte": 0
}
}
}
]
}
}
}
},
"size": 0,
"aggs": {
"items": {
"terms": {
"field": "hostname",
"size": 100,
"order": {
"count": "desc"
}
},
"aggs": {
"count": {
"avg": {
"field": "user_p"
}
}
}
}
}
}'
curl -X GET "https://search-test-framework-es2-rh4ypdodfobsgmd54nfsnphatm.us-west-2.es.amazonaws.com/dev-newrelic-cpu-utilization/_search?pretty" -H 'Content-Type: application/json' -d'{
"query": {
"match_all":{}}
}'
curl -X POST "localhost:9200/_search?pretty" -H 'Content-Type: application/json' -d'
{
"query": {
"bool" : {
"must" : {
"term" : { "application" : "All" }
},
"filter": {
"term" : { "tag" : "tech" }
},
"must_not" : {
"range" : {
"@timestamp" : { "gte" : "2019-11-01T06:36:00+00:00", "lte" : "2019-11-01T07:45:00+00:00" }
}
},
"should" : [
{ "term" : { "tag" : "wow" } },
{ "term" : { "tag" : "elasticsearch" } }
],
"minimum_should_match" : 1,
"boost" : 1.0
}
}
}
'
curl -X POST "https://search-test-framework-es2-rh4ypdodfobsgmd54nfsnphatm.us-west-2.es.amazonaws.com/dev-newrelic-cpu-utilization/_search?pretty" -H 'Content-Type: application/json' -d'
{
"query": {
"bool" : {
"must" : {
"term" : { "application" : "ui-heimdall" }
},
"must" : {
"range" : {
"@timestamp" : { "gte" : "2019-11-01T06:36:00+00:00", "lte" : "2019-11-01T07:45:00+00:00" }
}
}
}
}
}
'
curl -X POST "https://search-test-framework-es2-rh4ypdodfobsgmd54nfsnphatm.us-west-2.es.amazonaws.com/dev-newrelic-cpu-utilization/_search?pretty" -H 'Content-Type: application/json' -d'
{
"query": {
"bool": {
"must" : {
"range" : {
"@timestamp" : { "gte" : "2019-11-01T06:36:00+00:00", "lte" : "2019-11-01T07:45:00+00:00" }
}
}
}
}
}
'
curl -X POST "https://search-test-framework-es2-rh4ypdodfobsgmd54nfsnphatm.us-west-2.es.amazonaws.com/dev-newrelic-cpu-utilization/_search?pretty" -H 'Content-Type: application/json' -d'
{
"query":{ "match_all":{} },"size":0, "aggs":{ "output":{ "terms":{ "field":"user_p" } } }
}'
curl -X POST "https://search-test-framework-es2-rh4ypdodfobsgmd54nfsnphatm.us-west-2.es.amazonaws.com/dev-newrelic-cpu-utilization/_search?pretty" -H 'Content-Type: application/json' -d'
{
"query":{ "match_all":{} },"size":0, "aggs":{ "output":{ "terms":{ "field":"hostname" } } }
}'
curl -X POST "https://search-test-framework-es2-rh4ypdodfobsgmd54nfsnphatm.us-west-2.es.amazonaws.com/dev-newrelic-cpu-utilization/_search?pretty" -H 'Content-Type: application/json' -d'
{
"query":{ "match_all":{} },"size":0, "aggs":{ "output":{ "terms":{ "field":"application" } } }
}'
curl -X POST "https://search-test-framework-es2-rh4ypdodfobsgmd54nfsnphatm.us-west-2.es.amazonaws.com/dev-newrelic-cpu-utilization/_search?pretty" -H 'Content-Type: application/json' -d'
{"query": {
"bool": {
"must" : {
"terms":{ "application" : "ui-heimdall" },
"range" : {
"@timestamp" : { "gte" : "2019-10-29T06:59:39+00:00",
"lte" : "2019-11-01T07:45:00+00:00" }
}
}
}
},"size":0,
"aggs" : {
"output":{
"date_histogram" : {
"field" : "@timestamp",
"interval" : "2m",
"time_zone":"+05:30",
"min_doc_count":1
}
}
}
}'
curl -X POST "https://search-test-framework-es2-rh4ypdodfobsgmd54nfsnphatm.us-west-2.es.amazonaws.com/dev-newrelic-cpu-utilization/_search?pretty" -H 'Content-Type: application/json' -d'
{"query": {
"bool": {
"must":{"match_all":{}},
"filter":{"bool":{
"must" : [{
"range" : {
"@timestamp" : { "gte" : "2019-10-29T06:59:39+00:00",
"lte" : "2019-11-01T07:45:00+00:00" }
}},
{"term":{"application":"ui-heimdall"}}
]
}
}
}
},"size":0,
"aggs" : {
"output":{
"date_histogram" : {
"field" : "@timestamp",
"interval" : "2m",
"time_zone":"+05:30",
"min_doc_count":1
}
}
}
}'
curl -X POST "https://search-test-framework-es2-rh4ypdodfobsgmd54nfsnphatm.us-west-2.es.amazonaws.com/dev-newrelic-cpu-utilization/_search?pretty" -H 'Content-Type: application/json' -d'
{"query": {
"bool": {
"must":{"match_all":{}},
"filter":{"bool":{
"must" : [{
"range" : {
"@timestamp" : { "gte" : "2019-10-29T06:59:39+00:00",
"lte" : "2019-11-01T07:45:00+00:00" }
}}
],"must_not":[{ "range": { "user_p": { "lte": 0 } } }]}}}},"size":0,
"aggs" : {
"output":{
"date_histogram" : {
"field" : "@timestamp",
"interval" : "2m",
"time_zone":"+05:30",
"min_doc_count":1
}
}
}
}'
curl -X POST "https://search-test-framework-es2-rh4ypdodfobsgmd54nfsnphatm.us-west-2.es.amazonaws.com/dev-newrelic-cpu-utilization/_search?pretty" -H 'Content-Type: application/json' -d'
{"query": {
"bool": {
"must":{"match_all":{}},
"filter":{"bool":{
"must" : [{
"range" : {
"@timestamp" : { "gte" : "2019-10-29T06:59:39+00:00",
"lte" : "2019-11-01T07:45:00+00:00" }
}}
],"must_not":[{ "range": { "user_p": { "lte": 0 } } }]}}}},"size":0,
"aggs" : {
"output":{
"date_histogram" : {
"field" : "@timestamp",
"interval" : "2m",
"time_zone":"+05:30",
"min_doc_count":1,
"extended_bounds":{
"min":"2019-10-29T06:59:39+00:00",
"max":"2019-11-01T07:45:00+00:00"
}},"aggs":{
"items":{"terms":{"field":"hostname","size":100,
"order":{"count":"desc"}},
"aggs":{"count":{"avg":{"field":"user_p"}}}}}}
}
}
}'
curl -X POST "https://search-test-framework-es2-rh4ypdodfobsgmd54nfsnphatm.us-west-2.es.amazonaws.com/dev-newrelic-cpu-utilization/_search?pretty" -H 'Content-Type: application/json' -d'
{"query": {
"bool": {
"must":{"match_all":{}},
"filter":{"bool":{
"must" : [{
"range" : {
"@timestamp" : { "gte" : "2019-11-01T06:36:00+00:00",
"lte" : "2019-11-01T07:45:00+00:00" }
}}
],"must_not":[{ "range": { "user_p": { "lte": 0 } } }]}}}},"size":0,
"aggs" : {
"output":{
"date_histogram" : {
"field" : "@timestamp",
"interval" : "2m",
"time_zone":"+05:30",
"min_doc_count":1,
"extended_bounds":{
"min":"2019-11-01T06:36:00+00:00",
"max":"2019-11-01T07:45:00+00:00"
}},"aggs":{
"items":{"terms":{"field":"hostname","size":100,
"order":{"count":"desc"}},
"aggs":{"count":{"avg":{"field":"user_p"}}}}}}
}
}
}'
"2019-11-01T06:36:00+00:00", "lte" : "2019-11-01T07:45:00+00:00"
(base) sys-user@SMI-243:~/backup/elastic/cerebro-0.7.3/bin$ curl -X GET "search-test-framework-es2-rh4ypdodfobsgmd54nfsnphatm.us-west-2.es.amazonaws.com/dev-newrelic-cpu-utilization/_search?pretty=true"
{
"took" : 1,
"timed_out" : false,
"_shards" : {
"total" : 1,
"successful" : 1,
"failed" : 0
},
"hits" : {
"total" : 4,
"max_score" : 1.0,
"hits" : [ {
"_index" : "dev-newrelic-cpu-utilization",
"_type" : "system",
"_id" : "AW41OLyA_4fAvohBolss",
"_score" : 1.0,
"_ttl" : 70347962,
"_source" : {
"application" : "processing-engine",
"user_p" : 0.666666666666664,
"hostname" : "10.31.33.232",
"@timestamp" : "2019-11-01T07:45:00+00:00"
}
}, {
"_index" : "dev-newrelic-cpu-utilization",
"_type" : "system",
"_id" : "AW41OsWkwEcMd9IvnSp0",
"_score" : 1.0,
"_ttl" : 70481374,
"_source" : {
"application" : "data-poller",
"user_p" : 3.85245901639348,
"hostname" : "10.31.37.224",
"@timestamp" : "2019-11-01T06:38:00+00:00"
}
}, {
"_index" : "dev-newrelic-cpu-utilization",
"_type" : "system",
"_id" : "AW47n95GwEcMd9IvzsyX",
"_score" : 1.0,
"_ttl" : 177770112,
"_source" : {
"application" : "ui-heimdall",
"user_p" : 2.08333333333333,
"hostname" : "10.31.33.83",
"@timestamp" : "2019-11-01T06:38:00+00:00"
}
}, {
"_index" : "dev-newrelic-cpu-utilization",
"_type" : "system",
"_id" : "AW4_dq0rwEcMd9Iv72Ir",
"_score" : 1.0,
"_ttl" : 242179429,
"_source" : {
"application" : "io-engine",
"user_p" : 26.0169491525422,
"hostname" : "10.31.59.146",
"@timestamp" : "2019-11-01T06:36:00+00:00"
}
} ]
}
}
(base) sys-user@SMI-243:~/backup/elastic/cerebro-0.7.3/bin$ curl -X POST "https://search-test-framework-es2-rh4ypdodfobsgmd54nfsnphatm.us-west-2.es.amazonaws.com/dev-newrelic-cpu-utilization/_search?pretty" -H 'Content-Type: application/json' -d'
{"query": {
"bool": {
"must":{"match_all":{}},
"filter":{"bool":{
"must" : [{
"range" : {
"@timestamp" : { "gte" : "2019-11-01T06:36:00+00:00",
"lte" : "2019-11-01T07:45:00+00:00" }
}}
],"must_not":[{ "range": { "user_p": { "lte": 0 } } }]}}}},"size":0,
"aggs" : {
"output":{
"date_histogram" : {
"field" : "@timestamp",
"interval" : "2m",
"time_zone":"+05:30",
"min_doc_count":1,
"extended_bounds":{
"min":"2019-11-01T06:36:00+00:00",
"max":"2019-11-01T07:45:00+00:00"
}},"aggs":{
"items":{"terms":{"field":"hostname","size":100,
"order":{"count":"desc"}},
"aggs":{"count":{"avg":{"field":"user_p"}}}}}}
}
}
}'
{
"took" : 1,
"timed_out" : false,
"_shards" : {
"total" : 1,
"successful" : 1,
"failed" : 0
},
"hits" : {
"total" : 4,
"max_score" : 0.0,
"hits" : [ ]
},
"aggregations" : {
"output" : {
"buckets" : [ {
"key_as_string" : "2019-11-01T12:06:00.000+05:30",
"key" : 1572590160000,
"doc_count" : 1,
"items" : {
"doc_count_error_upper_bound" : 0,
"sum_other_doc_count" : 0,
"buckets" : [ {
"key" : "10.31.59.146",
"doc_count" : 1,
"count" : {
"value" : 26.016948699951172
}
} ]
}
}, {
"key_as_string" : "2019-11-01T12:08:00.000+05:30",
"key" : 1572590280000,
"doc_count" : 2,
"items" : {
"doc_count_error_upper_bound" : 0,
"sum_other_doc_count" : 0,
"buckets" : [ {
"key" : "10.31.37.224",
"doc_count" : 1,
"count" : {
"value" : 3.852458953857422
}
}, {
"key" : "10.31.33.83",
"doc_count" : 1,
"count" : {
"value" : 2.0833332538604736
}
} ]
}
}, {
"key_as_string" : "2019-11-01T13:14:00.000+05:30",
"key" : 1572594240000,
"doc_count" : 1,
"items" : {
"doc_count_error_upper_bound" : 0,
"sum_other_doc_count" : 0,
"buckets" : [ {
"key" : "10.31.33.232",
"doc_count" : 1,
"count" : {
"value" : 0.6666666865348816
}
} ]
}
} ]
}
}
}
If filter type All for Cpu Utilization:
curl -X GET "https://search-test-framework-es2-rh4ypdodfobsgmd54nfsnphatm.us-west-2.es.amazonaws.com/dev-newrelic-cpu-utilization/_search?pretty" -H 'Content-Type: application/json' -d'
{"query": {
"bool": {
"must":{"match_all":{}},
"filter":{"bool":{
"must" : [{
"range" : {
"@timestamp" : { "gte" : "2019-11-11T08:15:00.404Z",
"lte" : "2019-11-11T08:35:34.797Z" }
}}
],"must_not":[{ "range": { "user_p": { "lte": 0 } } }]}}}},"size":0,
"aggs" : {
"output":{
"date_histogram" : {
"field" : "@timestamp",
"interval" : "2m",
"time_zone":"+05:30",
"min_doc_count":1,
"extended_bounds":{
"min":"2019-11-11T08:15:00.404Z",
"max":"2019-11-11T08:35:34.797Z"
}},"aggs":{
"items":{"terms":{"field":"hostname","size":100,
"order":{"count":"desc"}},
"aggs":{"count":{"avg":{"field":"user_p"}}}}}}
}
}'
curl -X GET "https://search-test-framework-es2-rh4ypdodfobsgmd54nfsnphatm.us-west-2.es.amazonaws.com/dev-cpu-utilization/_search?pretty" -H 'Content-Type: application/json' -d'
{"query": {
"bool": {
"must":{"match_all":{}},
"filter":{"bool":{
"must" : [{
"range" : {
"@timestamp" : { "gte" : "2019-11-08T13:24:23.095Z",
"lte" : "2019-11-08T13:35:07.652Z" }
}}
],"must_not":[{ "range": { "user_p": { "lte": 0 } } }]}}}},"size":0,
"aggs" : {
"output":{
"date_histogram" : {
"field" : "@timestamp",
"interval" : "2m",
"time_zone":"+05:30",
"min_doc_count":1,
"extended_bounds":{
"min":"2019-11-08T13:24:23.095Z",
"max":"2019-11-08T13:35:07.652Z"
}},"aggs":{
"items":{"terms":{"field":"hostname","size":100,
"order":{"count":"desc"}},
"aggs":{"count":{"avg":{"field":"user_p"}}}}}}
}
}'
If filter type "application" for Cpu Utilization:
curl -X GET "https://search-test-framework-es2-rh4ypdodfobsgmd54nfsnphatm.us-west-2.es.amazonaws.com/dev-newrelic-cpu-utilization/_search?pretty" -H 'Content-Type: application/json' -d'
{"query": {
"bool": {
"must":{"match_all":{}},
"filter":{"bool":{
"must" : [{
"range" : {
"@timestamp" : { "gte" : "2019-11-11T08:15:00.404Z",
"lte" : "2019-11-11T08:35:34.797Z" }
}}
,{"term":{"application":"DEV-processing-engine"}}
],"must_not":[{ "range": { "user_p": { "lte": 0 } } }]}}}},"size":0,
"aggs" : {
"output":{
"date_histogram" : {
"field" : "@timestamp",
"interval" : "2m",
"time_zone":"+05:30",
"min_doc_count":1,
"extended_bounds":{
"min":"2019-11-11T08:15:00.404Z",
"max":"2019-11-11T08:35:34.797Z"
}},"aggs":{
"items":{"terms":{"field":"hostname","size":100,
"order":{"count":"desc"}},
"aggs":{"count":{"avg":{"field":"user_p"}}}}}}
}
}'
https://internal-testfw-cxtf-1405-ui-heimdall-elb-2058419470.us-west-2.elb.amazonaws.com/rest/testframework/performance/metrics/newrelic?chartGroup=osdao&chartName=CPU+Utilization+Process+Wise&filterType=All&fromDate=2019-11-11T12:24:22.404Z&interval=2m&testResultId=5dc95292d950101027b1d811&toDate=2019-11-11T12:36:18.797Z&viewType=chart
https://internal-testfw-cxtf-1405-ui-heimdall-elb-2058419470.us-west-2.elb.amazonaws.com/rest/testframework/performance/metrics/?chartGroup=osdao&chartName=CPU+Utilization+Process+Wise&filterType=All&fromDate=2019-11-11T12:24:22.404Z&interval=2m&testResultId=5dc95292d950101027b1d811&toDate=2019-11-11T12:36:18.797Z&viewType=chart
curl -X GET "https://search-test-framework-es2-rh4ypdodfobsgmd54nfsnphatm.us-west-2.es.amazonaws.com/dev-topbeat_all/_search?pretty" -H 'Content-Type: application/json' -d'
{"query": {
"bool": {
"must":{"match_all":{}},
"filter":{"bool":{
"must" : [{
"range" : {
"@timestamp" : { "gte" : "2019-11-11T12:24:22.404Z",
"lte" : "2019-11-11T12:36:18.797Z" }
}}
],"must_not":[{ "range": { "user_p": { "lte": 0 } } }]}}}},"size":0,
"aggs" : {
"output":{
"terms":{"field":"beat.hostname","size":100},"aggs":{"inneroutput":{"date_histogram":{"field":"@timestamp","interval":"2m","time_zone":"+05:30","min_doc_count":1,"extended_bounds":{"min":"2019-11-11T12:24:22.404Z","max":"2019-11-11T12:36:18.797Z"}},"aggs":{"items":{"terms":{"field":"proc.name","size":10,"order":{"count":"desc"}},"aggs":{"count":{"avg":{"field":"proc.cpu.user_p"}}}}}}}}}}'
curl -X GET "https://search-test-framework-es2-rh4ypdodfobsgmd54nfsnphatm.us-west-2.es.amazonaws.com/dev-newrelic-cpu-utilization/_search?pretty" -H 'Content-Type: application/json' -d'
{"query": {
"bool": {
"must":{"match_all":{}},
"filter":{"bool":{
"must" : [{
"range" : {
"@timestamp" : { "gte" : "2019-11-11T12:24:22.404Z",
"lte" : "2019-11-11T12:31:52.672Z" }
}}
],"must_not":[{ "range": { "user_p": { "lte": 0 } } }]}}}},"size":0,
"aggs" : {
"output":{
"terms":{"field":"beat.hostname","size":100},"aggs":{"inneroutput":{"date_histogram":{"field":"@timestamp","interval":"2m","time_zone":"+05:30","min_doc_count":1,"extended_bounds":{"min":"2019-11-11T12:24:22.404Z","max":"2019-11-11T12:31:52.672Z"}},"aggs":{"items":{"terms":{"field":"proc.name","size":10,"order":{"count":"desc"}},"aggs":{"count":{"avg":{"field":"proc.cpu.user_p"}}}}}}}}}}'
"terms":{"field":"beat.hostname","size":100},"aggs":{"inneroutput":{"date_histogram":{"field":"@timestamp","interval":"2m","time_zone":"+05+30","min_doc_count":1,"extended_bounds":{"min":"","max":""}},"aggs":{"items":{"terms":{"field":"proc.name","size":0,"order":{"count":"desc"}},"aggs":{"count":{"avg":{"field:"proc.cpu.user_p"}}}}}}}}}
if (null != chartName && chartName.contains(CPU_UTILIZATION_PROCESS_WISE)) {
aggregationsCurrVal =
"\"size\": 0,\"aggs\": {\"output\": {\"terms\": {\"field\": \"beat.hostname\",\"size\": 100},\"aggs\": {\"inneroutput\": {\"date_histogram\": {\"field\": \"@timestamp\",\"interval\" :"
+ qInterval
+ " ,\"time_zone\": \"+05:30\",\"min_doc_count\": 1,\"extended_bounds\": {\"min\": "
+ qFromDate
+ ",\"max\": "
+ qToDate
+ "}},\"aggs\": {\"items\": {\"terms\": {\"field\": \"proc.name\",\"size\": 10,\"order\": {\"count\": \"desc\"}},\"aggs\": {\"count\": {\"avg\": {\"field\": \"proc.cpu.user_p\"}}}}}}}}}";
https://corex-stg.awsdsi.ghx.com/rest/testframework/performance/metrics/?chartGroup=osdao&chartName=CPU+Utilization+Process+Wise&filterType=All&fromDate=2019-10-29T15:38:30.292Z&interval=2m&testResultId=5db85c933c4f1a1006cc7339&toDate=2019-10-29T15:56:52.881Z&viewType=chart
spalanichamy/Testingqwe123457#
After merging latest develop code , i got some db related error. you may get the same.
you need add the below fields in AS2_profile table.
SSL_AUTH_ENABLED tinyint(1)
SSL_CERT_ID INT(11)
VERIFY_SERVER_CERT tinyint(1)
dev-testframework-stats_all
dev-testframework-stats
https://internal-testfw-cxtf-1405-ui-heimdall-elb-382767437.us-west-2.elb.amazonaws.com/rest/testframework/performance/metrics/?chartGroup=jvmdao&chartName=Line+Chart+JVM+Heap+Stats&filterType=All&fromDate=2019-11-06T07:08:24.703Z&interval=2m&testResultId=5dc270f61c33fa102e215853&toDate=2019-11-06T07:21:07.227Z&viewType=chart
dev-testframework-stats-2019.10.18
{\"bool\":{\"must\":{\"match_all\":{}},\"filter\":{\"bool\":{\"must\":[{\"range\":{\"@timestamp\":{\"gte\":"
+ qFromDate + ",\"lte\":" + qToDate + "}}}"
",{\"term\":{\"application\":\"" + filterType + "\"}}"
"],\"must_not\":[]}}}},\"size\":0,\"sort\": [{\"@timestamp\":{\"order\":\"desc\"}}]"
"\"aggs\":{\"output\":{\"terms\":{\"field\":\"host\",\"size\":100,\"order\":{\"count\":\"desc\"}},\"aggs\":{\"count\":{\"avg\":{\"field\":\"HeapMemory_max\"}},\"items\":{\"date_histogram\":{\"field\":\"@timestamp\",\"interval\":"
+ qInterval
+ ",\"min_doc_count\":1,\"extended_bounds\":{\"min\":"
+ qFromDate
+ ",\"max\":"
+ qToDate
+ "}},\"aggs\":{\"max\":{\"avg\":{\"field\":\"HeapMemory_max\"}},\"committed\":{\"avg\":{\"field\":\"HeapMemory_committed\"}},\"used\":{\"avg\":{\"field\":\"HeapMemory_used\"}}}}}}}";
curl -X GET "https://search-test-framework-es2-rh4ypdodfobsgmd54nfsnphatm.us-west-2.es.amazonaws.com/dev-testframework-stats_all/_search?pretty" -H 'Content-Type: application/json' -d'
{"query":
{"bool":{"must":{"match_all":{}},"filter":{
"bool":{
"must":[{"range":{"@timestamp":{"gte":"2019-11-04T06:47:56.633Z","lte":"2019-11-04T06:48:01.937Z"}}},
{"term":{"application":"processing-engine"}}],"must_not":[]}}}},"size":0,
"sort":[{"@timestamp":{"order":"desc"}}],
"aggs":{"output":{"terms":{"field":"host","size":100,"order":{"count":"desc"}},
"aggs":{"count":{"avg":{"field":"HeapMemory_max"}},"items":{"date_histogram":{"field":"@timestamp",
"interval":"2m","min_doc_count":1,"extended_bounds":{"min":"2019-11-04T06:47:56.633Z","max":"2019-11-04T06:48:01.937Z"}},
"aggs":{"max":{"avg":{"field":"HeapMemory_max"}},"committed":{"avg":{"field":"HeapMemory_committed"}},
"used":{"avg":{"field":"HeapMemory_used"}}}}}}}
}'
(base) sys-user@SMI-243:~/backup/aws$ curl -X GET "https://search-test-framework-es2-rh4ypdodfobsgmd54nfsnphatm.us-west-2.es.amazonaws.com/dev-testframework-stats_all/_search?pretty=true"
{
"took" : 4,
"timed_out" : false,
"_shards" : {
"total" : 145,
"successful" : 145,
"failed" : 0
},
"hits" : {
"total" : 729812,
"max_score" : 1.0,
"hits" : [ {
"_index" : "dev-testframework-stats-2019.11.04",
"_type" : "tpmdao-stats",
"_id" : "AW41K6At_4fAvohBofoy",
"_score" : 1.0,
"_ttl" : 11908,
"_source" : {
"TPM_ClassName" : "DocTypeDAO",
"@timestamp" : "2019-11-04T06:47:56.633Z",
"instanceId" : "i-0efb354032e1a68b6",
"application" : "processing-engine",
"TPM_MethodName" : "findAll",
"TPM_ClassName_MethodName" : "DocTypeDAO.findAll",
"ghxhost" : "10.31.32.218",
"stackname" : "CoreX-DEV-Processing-b6372",
"TPM_ResponseTime" : 71
}
}, {
"_index" : "dev-testframework-stats-2019.11.04",
"_type" : "tpmdao-stats",
"_id" : "AW41K6At_4fAvohBofo2",
"_score" : 1.0,
"_ttl" : 11908,
"_source" : {
"TPM_ClassName" : "ContactSubscriptionDAO",
"@timestamp" : "2019-11-04T06:48:01.305Z",
"instanceId" : "i-0efb354032e1a68b6",
"application" : "processing-engine",
"TPM_MethodName" : "getCronTZGroups",
"TPM_ClassName_MethodName" : "ContactSubscriptionDAO.getCronTZGroups",
"ghxhost" : "10.31.32.218",
"stackname" : "CoreX-DEV-Processing-b6372",
"TPM_ResponseTime" : 165
}
}, {
"_index" : "dev-testframework-stats-2019.11.04",
"_type" : "tpmdao-stats",
"_id" : "AW41K6At_4fAvohBofo5",
"_score" : 1.0,
"_ttl" : 11908,
"_source" : {
"TPM_ClassName" : "ContactSubscriptionDAO",
"@timestamp" : "2019-11-04T06:48:01.824Z",
"instanceId" : "i-0efb354032e1a68b6",
"application" : "processing-engine",
"TPM_MethodName" : "getJobSubscriptions",
"TPM_ClassName_MethodName" : "ContactSubscriptionDAO.getJobSubscriptions",
"ghxhost" : "10.31.32.218",
"stackname" : "CoreX-DEV-Processing-b6372",
"TPM_ResponseTime" : 342
}
}, {
"_index" : "dev-testframework-stats-2019.11.04",
"_type" : "tpmdao-stats",
"_id" : "AW41K6At_4fAvohBofo6",
"_score" : 1.0,
"_ttl" : 11908,
"_source" : {
"TPM_ClassName" : "ContactSubscriptionDAO",
"@timestamp" : "2019-11-04T06:48:01.825Z",
"instanceId" : "i-0efb354032e1a68b6",
"application" : "processing-engine",
"TPM_MethodName" : "getJobSubscriptions",
"TPM_ClassName_MethodName" : "ContactSubscriptionDAO.getJobSubscriptions",
"ghxhost" : "10.31.32.218",
"stackname" : "CoreX-DEV-Processing-b6372",
"TPM_ResponseTime" : 346
}
}, {
"_index" : "dev-testframework-stats-2019.11.04",
"_type" : "tpmdao-stats",
"_id" : "AW41K6CWwEcMd9IvnLsX",
"_score" : 1.0,
"_ttl" : 12013,
"_source" : {
"TPM_ClassName" : "ContactSubscriptionDAO",
"@timestamp" : "2019-11-04T06:48:01.937Z",
"instanceId" : "i-097fb60d1a002e987",
"application" : "jobs",
"TPM_MethodName" : "getJobSubscriptions",
"TPM_ClassName_MethodName" : "ContactSubscriptionDAO.getJobSubscriptions",
"ghxhost" : "10.31.36.43",
"stackname" : "CoreX-DEV-JOBS-b6372",
"TPM_ResponseTime" : 223
}
}, {
"_index" : "dev-testframework-stats-2019.11.04",
"_type" : "mongo-stats",
"_id" : "AW41K6EbGb6oRN1sWzJs",
"_score" : 1.0,
"_ttl" : 12146,
"_source" : {
"Mongo_ClassName_MethodName" : "EventBulkSupportImpl.executeBulk",
"@timestamp" : "2019-11-04T06:47:02.648Z",
"instanceId" : "i-0efb354032e1a68b6",
"Mongo_MethodName" : "executeBulk",
"Mongo_Aspect_Status" : "Error",
"application" : "processing-engine",
"Mongo_ResponseTimeMilliseconds" : 77,
"Mongo_Aspect_Error_Reason" : "Invoked DAO is not an instance of Morphia's BasicDAO",
"ghxhost" : "10.31.32.218",
"stackname" : "CoreX-DEV-Processing-b6372",
"Mongo_ClassName" : "EventBulkSupportImpl"
}
}, {
"_index" : "dev-testframework-stats-2019.11.04",
"_type" : "jvm-heimdall-stats",
"_id" : "AW41Kz_HGb6oRN1sWy7l",
"_score" : 1.0,
"_ttl" : -12770,
"_source" : {
"@version" : "1",
"@timestamp" : "2019-11-04T06:47:36.542Z",
"host" : "10.31.37.108",
"type" : "jvm-heimdall-stats",
"HeapMemory_committed" : 3758096384,
"service" : "corex-test-framework",
"ghxhost" : "10.31.37.108",
"instanceId" : "i-001ee7d20d14c6863",
"ghxenvironment" : "dev",
"appversion" : "1.110.0",
"buildnumber" : "2",
"cfstack" : "TestFW-CoreX-CXTF-1405-UI-Heimdall-b2",
"application" : "ui-heimdall"
}
}, {
"_index" : "dev-testframework-stats-2019.11.04",
"_type" : "jvm-heimdall-stats",
"_id" : "AW41Kz_HGb6oRN1sWy7m",
"_score" : 1.0,
"_ttl" : -12770,
"_source" : {
"@version" : "1",
"@timestamp" : "2019-11-04T06:47:36.542Z",
"host" : "10.31.37.108",
"type" : "jvm-heimdall-stats",
"HeapMemory_max" : 3758096384,
"service" : "corex-test-framework",
"ghxhostcurl -X GET "https://search-test-framework-es2-rh4ypdodfobsgmd54nfsnphatm.us-west-2.es.amazonaws.com/dev-cpu-utilization/_search?pretty" -H 'Content-Type: application/json' -d'
{"query": {
"bool": {
"must":{"match_all":{}},
"filter":{"bool":{
"must" : [{
"range" : {
"@timestamp" : { "gte" : 2019-11-01T06:30:12.039Z,
"lte" : 2019-11-01T07:56:07.429Z }
}}
],"must_not":[{ "range": { "user_p": { "lte": 0 } } }]}}}},"size":0,
"aggs" : {
"output":{
"date_histogram" : {
"field" : "@timestamp",
"interval" : 2m,
"time_zone":"+05:30",
"min_doc_count":1,
"extended_bounds":{
"min":2019-11-01T07:44:12.039Z,
"max":2019-11-01T07:56:07.429Z
}},"aggs":{
"items":{"terms":{"field":"hostname","size":100,
"order":{"count":"desc"}},
"aggs":{"count":{"avg":{"field":"user_p"}}}}}}
}
}'" : "10.31.37.108",
"instanceId" : "i-001ee7d20d14c6863",
"ghxenvironment" : "dev",
"appversion" : "1.110.0",
"buildnumber" : "2",
"cfstack" : "TestFW-CoreX-CXTF-1405-UI-Heimdall-b2",
"application" : "ui-heimdall"
}
}, {
"_index" : "dev-testframework-stats-2019.11.04",
"_type" : "jvm-heimdall-stats",
"_id" : "AW41Kz_HGb6oRN1sWy7r",
"_score" : 1.0,
"_ttl" : -12770,
"_source" : {
"@version" : "1",
"@timestamp" : "2019-11-04T06:47:36.553Z",
"host" : "10.31.37.108",
"type" : "jvm-heimdall-stats",
"Threading_ThreadCount" : 148,
"service" : "corex-test-framework",
"ghxhost" : "10.31.37.108",
"instanceId" : "i-001ee7d20d14c6863",
"ghxenvironment" : "dev",
"appversion" : "1.110.0",
"buildnumber" : "2",
"cfstack" : "TestFW-CoreX-CXTF-1405-UI-Heimdall-b2",
"application" : "ui-heimdall"
}
}, {
"_index" : "dev-testframework-stats-2019.11.04",
"_type" : "jvm-heimdall-stats",
"_id" : "AW41Kz_HGb6oRN1sWy7s",
"_score" : 1.0,
"_ttl" : -12770,
"_source" : {
"@version" : "1",
"@timestamp" : "2019-11-04T06:47:36.554Z",
"host" : "10.31.37.108",
"type" : "jvm-heimdall-stats",
"Threading_TotalStartedThreadCount" : 542,
"service" : "corex-test-framework",
"ghxhost" : "10.31.37.108",
"instanceId" : "i-001ee7d20d14c6863",
"ghxenvironment" : "dev",
"appversion" : "1.110.0",
"buildnumber" : "2",
"cfstack" : "TestFW-CoreX-CXTF-1405-UI-Heimdall-b2",
"application" : "ui-heimdall"
}
} ]
}
}
curl -X GET "https://search-test-framework-es2-rh4ypdodfobsgmd54nfsnphatm.us-west-2.es.amazonaws.com/dev-cpu-utilization/_search?pretty" -H 'Content-Type: application/json' -d'
{"query": {
"bool": {
"must":{"match_all":{}},
"filter":{"bool":{
"must" : [{
"range" : {
"@timestamp" : { "gte" : 2019-11-01T06:30:12.039Z,
"lte" : 2019-11-01T07:56:07.429Z }
}}
],"must_not":[{ "range": { "user_p": { "lte": 0 } } }]}}}},"size":0,
"aggs" : {
"output":{
"date_histogram" : {
"field" : "@timestamp",
"interval" : 2m,
"time_zone":"+05:30",
"min_doc_count":1,
"extended_bounds":{
"min":2019-11-01T07:44:12.039Z,
"max":2019-11-01T07:56:07.429Z
}},"aggs":{
"items":{"terms":{"field":"hostname","size":100,
"order":{"count":"desc"}},
"aggs":{"count":{"avg":{"field":"user_p"}}}}}}
}
}'
curl -X GET "https://search-test-framework-es2-rh4ypdodfobsgmd54nfsnphatm.us-west-2.es.amazonaws.com/dev-topbeat_all/_search?pretty" -H 'Content-Type: application/json' -d'
{"query": {
"bool": {
"must":{"match_all":{}},
"filter":{"bool":{
"must" : [{
"range" : {
"@timestamp" : { "gte" : "2019-11-01T06:30:12.039Z",
"lte" : "2019-11-01T07:56:07.429Z" }
}}
],"must_not":[{ "range": { "user_p": { "lte": 0 } } }]}}}},"size":0,
"aggs" : {
"output":{
"date_histogram" : {
"field" : "@timestamp",
"interval" : "2m",
"time_zone":"+05:30",
"min_doc_count":1,
"extended_bounds":{
"min":"2019-11-01T07:44:12.039Z",
"max":"2019-11-01T07:56:07.429Z"
}},"aggs":{
"items":{"terms":{"field":"hostname","size":100,
"order":{"count":"desc"}},
"aggs":{"count":{"avg":{"field":"user_p"}}}}}}
}
}'
new StringBuilder(
"{\"bool\":{\"must\":{\"match_all\":{}},\"filter\":{\"bool\":{\"must\":[{\"range\":{\"@timestamp\":{\"gte\":"
+ qFromDate + ",\"lte\":" + qToDate + "}}}");
commonQuery.append("],\"must_not\":[{ \"range\": { \"proc.cpu.user_p\": { \"lte\": 0 } } }]}}}}");
aggregationsCurrVal =
"\"size\": 0,\"aggs\": {\"output\": {\"terms\": {\"field\": \"beat.hostname\",\"size\": 100},\"aggs\": {\"inneroutput\": {\"date_histogram\": {\"field\": \"@timestamp\",\"interval\" :"
+ qInterval
+ " ,\"time_zone\": \"+05:30\",\"min_doc_count\": 1,\"extended_bounds\": {\"min\": "
+ qFromDate
+ ",\"max\": "
+ qToDate
+ "}},\"aggs\": {\"items\": {\"terms\": {\"field\": \"proc.name\",\"size\": 10,\"order\": {\"count\": \"desc\"}},\"aggs\": {\"count\": {\"avg\": {\"field\": \"proc.cpu.user_p\"}}} }}} }}}";
With FilterType All:
curl -X GET "https://search-test-framework-es2-rh4ypdodfobsgmd54nfsnphatm.us-west-2.es.amazonaws.com/dev-topbeat_all/_search?pretty" -H 'Content-Type: application/json' -d'
{"query": {
"bool": {
"must":{"match_all":{}},
"filter":{"bool":{
"must" : [{
"range" : {
"@timestamp" : { "gte" : "2019-11-04T11:14:46.228Z",
"lte" : "2019-11-04T11:35:26.072Z" }
}}],"must_not":[{"range":{"proc.cpu.user_p":{"lte":0}}}]}}}},
"size":0,"aggs":{"output":{"terms":{"field":"beat.hostname","size":100},
"aggs":{"inneroutput":{"date_histogram":{"field":"@timestamp","interval":"2m",
"time_zone":"+05:30","min_doc_count":1,"extended_bounds":{"min":"2019-11-04T11:14:46.228Z",
"max":"2019-11-04T11:35:26.072Z"}},"aggs":{"items":{"terms":{"field":"proc.name",
"size":10,"order":{"count":"desc"}},"aggs":{"count":{"avg":{"field":"proc.cpu.user_p"}}}}}}}}}}'
Our qury{"bool":{"must":{"match_all":{}},"filter":{"bool":{"must":[{"range":{"@timestamp":{"gte":"2019-11-04T11:14:46.228Z","lte":"2019-11-04T11:35:26.072Z"}}}],"must_not":[]}}}},"size":0,"sort": [{"@timestamp":{"order":"desc"}}],"aggs":{"output":{"terms":{"field":"beat.hostname","size" : 1000},"aggs":{"inneroutput":{"terms":{"field":"beat.name"}}}}}
indexStr is dev-topbeat
2019-11-07 10:48:20,161 |INFO [http-bio-8443-exec-108] c.g.t.a.s.impl.PerformanceMetricsServiceImpl - esquery is {"bool":{"must":{"match_all":{}},"filter":{"bool":{"must":[{"range":{"@timestamp":{"gte":"2019-11-04T11:14:46.228Z","lte":"2019-11-04T11:35:26.072Z"}}}],"must_not":[]}}}},"size":0,"sort": [{"@timestamp":{"order":"desc"}}],"aggs":{"output":{"terms":{"field":"beat.hostname","size" : 1000},"aggs":{"inneroutput":{"terms":{"field":"beat.name"}}}}}
2019-11-07 10:48:20,160 |INFO [http-bio-8443-exec-108] com.ghx.web.filter.security.CRLFFilter - Url : https://internal-testfw-cxtf-1405-ui-heimdall-elb-84960814.us-west-2.elb.amazonaws.com/rest/testframework/performance/metrics/?chartgroup=osdao&chartname=cpu+utilization+process+wise&filtertype=all&fromdate=2019-11-04t11:14:46.228z&interval=2m&testresultid=5dc007efe37efa100ad35e03&todate=2019-11-04t11:35:26.072z&viewtype=chart
2019-11-07 10:48:20,160 |INFO [http-bio-8443-exec-108] com.ghx.web.filter.security.CRLFFilter - CRLF enabled true
2019-11-07 10:48:20,161 |INFO [http-bio-8443-exec-108] c.g.h.service.GHXHeimdallSecurityAspect - user tfwapi@ghx.com (id=3206631) attempt to access com.ghx.testframework.api.rest.PerformanceMetricsRESTService.getPerformanceMetricsStat([CPU Utilization Process Wise, osdao, 2019-11-04T11:14:46.228Z, 2019-11-04T11:35:26.072Z, 2m, chart, All, 5dc007efe37efa100ad35e03, null, null, null, null])
Inside getSearchResultsFromES indexAliasNamedev-topbeat_allindexName>>indexType>>nullquery>>{"bool":{"must":{"match_all":{}},"filter":{"bool":{"must":[{"range":{"@timestamp":{"gte":"2019-11-04T11:14:46.228Z","lte":"2019-11-04T11:35:26.072Z"}}}],"must_not":[]}}}},"size":0,"sort": [{"@timestamp":{"order":"desc"}}],"aggs":{"output":{"terms":{"field":"beat.hostname","size" : 1000},"aggs":{"inneroutput":{"terms":{"field":"beat.name"}}}}}
dev-topbeat_all
dev-topbeat
curl -X GET "https://search-test-framework-es2-rh4ypdodfobsgmd54nfsnphatm.us-west-2.es.amazonaws.com/dev-topbeat_all/_search?pretty" -H 'Content-Type: application/json' -d'
{"query": {
"bool": {
"must":{"match_all":{}},
"filter":{"bool":{
"must" : [{
"range" : {
"@timestamp" : { "gte" : "2019-11-01T06:30:12.039Z",
"lte" : "2019-11-01T07:56:07.429Z" }
}}
],"must_not":[{ "range": { "user_p": { "lte": 0 } } }]}}}},"size":0,
"aggs" : {
"output":{
"date_histogram" : {
"field" : "@timestamp",
"interval" : "2m",
"time_zone":"+05:30",
"min_doc_count":1,
"extended_bounds":{
"min":"2019-11-01T07:44:12.039Z",
"max":"2019-11-01T07:56:07.429Z"
}},"aggs":{
"items":{"terms":{"field":"hostname","size":100,
"order":{"count":"desc"}},
"aggs":{"count":{"avg":{"field":"user_p"}}}}}}
}
}'
For CPU_UTILIZATION_PROCESS_WISE With FilterType All:
curl -X GET "https://search-test-framework-es2-rh4ypdodfobsgmd54nfsnphatm.us-west-2.es.amazonaws.com/dev-topbeat_all/_search?pretty" -H 'Content-Type: application/json' -d'
"bool": {
"must":{"match_all":{}},
"filter":{"bool":{
"must" : [{
"range" : {
"@timestamp" : { "gte" : "2019-11-04T11:14:46.228Z",
"lte" : "2019-11-04T11:35:26.072Z" }
}}],"must_not":[{"range":{"proc.cpu.user_p":{"lte":0}}}]}}}},
"size":0,"aggs":{"output":{"terms":{"field":"beat.hostname","size":100},
"aggs":{"inneroutput":{"date_histogram":{"field":"@timestamp","interval":"2m",
"time_zone":"+05:30","min_doc_count":1,"extended_bounds":{"min":"2019-11-04T11:14:46.228Z",
"max":"2019-11-04T11:35:26.072Z"}},"aggs":{"items":{"terms":{"field":"proc.name",
"size":10,"order":{"count":"desc"}},"aggs":{"count":{"avg":{"field":"proc.cpu.user_p"}}}}}}}}}}'
devcurl -X GET "https://search-test-framework-es2-rh4ypdodfobsgmd54nfsnphatm.us-west-2.es.amazonaws.com/dev-topbeat_all/_search?pretty" -H 'Content-Type: application/json' -d'
{"query": {
"bool": {
"must":{"match_all":{}},
"filter":{"bool":{
"must" : [{
"range" : {
"@timestamp" : { "gte" : "2019-11-04T11:14:46.228Z",
"lte" : "2019-11-04T11:35:26.072Z" }
}}
,{"term":{"application":"ui-heimdall"}}
],"must_not":[{"range":{"proc.cpu.user_p":{"lte":0}}}]}}}},
"size":0,"aggs":{"output":{"terms":{"field":"beat.hostname","size":100},
"aggs":{"inneroutput":{"date_histogram":{"field":"@timestamp","interval":"2m",
"time_zone":"+05:30","min_doc_count":1,"extended_bounds":{"min":"2019-11-04T11:14:46.228Z",
"max":"2019-11-04T11:35:26.072Z"}},"aggs":{"items":{"terms":{"field":"proc.name",
"size":10,"order":{"count":"desc"}},"aggs":{"count":{"avg":{"field":"proc.cpu.user_p"}}}}}}}}}}'
",{\"term\":{\"application\":\"" + filterType + "\"}}"
For CPU_UTILIZATION_PROCESS_WISE With FilterType "application":
curl -X GET "https://search-test-framework-es2-rh4ypdodfobsgmd54nfsnphatm.us-west-2.es.amazonaws.com/dev-topbeat_all/_search?pretty" -H 'Content-Type: application/json' -d'
{"query": {"bool":{"must":{"match_all":{}},"filter":{"bool":{"must":[{"range":{"@timestamp":{"gte":"2019-11-04T11:14:46.228Z","lte":"2019-11-04T11:35:26.072Z"}}},{"term":{"beat.name":"ui-heimdall"}}],"must_not":[{ "range": { "proc.cpu.user_p": { "lte": 0 } } }]}}}},"size": 0,"aggs": {"output": {"terms": {"field": "beat.hostname","size": 100},"aggs": {"inneroutput": {"date_histogram": {"field": "@timestamp","interval" :"1m" ,"time_zone": "+05:30","min_doc_count": 1,"extended_bounds": {"min": "2019-11-04T11:14:46.228Z","max": "2019-11-04T11:35:26.072Z"}},"aggs": {"items": {"terms": {"field": "proc.name","size": 10,"order": {"count": "desc"}},"aggs": {"count": {"avg": {"field": "proc.cpu.user_p"}}}}}}}}}}'
Listener CACHE:Local :
2019-11-07 11:24:47,355 |INFO [http-bio-8443-exec-116] com.ghx.web.filter.security.CRLFFilter - Url : https://internal-testfw-cxtf-1405-ui-heimdall-elb-84960814.us-west-2.elb.amazonaws.com/rest/testframework/performance/metrics/?chartgroup=osdao&chartname=cpu+utilization+process+wise&filtertype=ui-heimdall&fromdate=2019-11-04t11:14:46.228z&interval=2m&testresultid=5dc007efe37efa100ad35e03&todate=2019-11-04t11:35:26.072z&viewtype=chart
2019-11-07 11:24:47,355 |INFO [http-bio-8443-exec-116] com.ghx.web.filter.security.CRLFFilter - CRLF enabled true
2019-11-07 11:24:47,356 |INFO [http-bio-8443-exec-116] c.g.h.service.GHXHeimdallSecurityAspect - user spkannan (id=3186733) attempt to access com.ghx.testframework.api.rest.PerformanceMetricsRESTService.getPerformanceMetricsStat([CPU Utilization Process Wise, osdao, 2019-11-04T11:14:46.228Z, 2019-11-04T11:35:26.072Z, 2m, chart, ui-heimdall, 5dc007efe37efa100ad35e03, null, null, null, null])
Inside getSearchResultsFromES indexAliasNamedev-topbeat_allindexName>>indexType>>nullquery>>{"bool":{"must":{"match_all":{}},"filter":{"bool":{"must":[{"range":{"@timestamp":{"gte":"2019-11-04T11:14:46.228Z","lte":"2019-11-04T11:35:26.072Z"}}}],"must_not":[]}}}},"size":0,"sort": [{"@timestamp":{"order":"desc"}}],"aggs":{"output":{"terms":{"field":"beat.hostname","size" : 1000},"aggs":{"inneroutput":{"terms":{"field":"beat.name"}}}}}
2019-11-07 11:24:47,356 |INFO [http-bio-8443-exec-116] c.g.t.a.s.impl.PerformanceMetricsServiceImpl - indexStr is dev-topbeat
2019-11-07 11:24:47,356 |INFO [http-bio-8443-exec-116] c.g.t.a.s.impl.PerformanceMetricsServiceImpl - esquery is {"bool":{"must":{"match_all":{}},"filter":{"bool":{"must":[{"range":{"@timestamp":{"gte":"2019-11-04T11:14:46.228Z","lte":"2019-11-04T11:35:26.072Z"}}}],"must_not":[]}}}},"size":0,"sort": [{"@timestamp":{"order":"desc"}}],"aggs":{"output":{"terms":{"field":"beat.hostname","size" : 1000},"aggs":{"inneroutput":{"terms":{"field":"beat.name"}}}}}
>>>>>>>>>>>Our qury{"bool":{"must":{"match_all":{}},"filter":{"bool":{"must":[{"range":{"@timestamp":{"gte":"2019-11-04T11:14:46.228Z","lte":"2019-11-04T11:35:26.072Z"}}}],"must_not":[]}}}},"size":0,"sort": [{"@timestamp":{"order":"desc"}}],"aggs":{"output":{"terms":{"field":"beat.hostname","size" : 1000},"aggs":{"inneroutput":{"terms":{"field":"beat.name"}}}}}
2019-11-07 11:24:47,375 |INFO [http-bio-8443-exec-116] c.g.t.a.s.impl.PerformanceMetricsServiceImpl - searchResult.getResponseMetaData(): {TotalShards=145, SuccessShards=145, TotalRecords=20294, ES_MAX_SCORE=0.0, FailedShards=0, TookTime=9}
searchResult.getResponseMetaData()>>>>{TotalShards=145, SuccessShards=145, TotalRecords=20294, ES_MAX_SCORE=0.0, FailedShards=0, TookTime=9}
>>postQueryToEScom.ghx.common.search.model.SearchResult@738d5f5c
>>>Inside getSearchResultsFromES searchResultcom.ghx.common.search.model.SearchResult@738d5f5c
>>>Inside getSearchResultsFromES searchResult.getAggregations(){output={doc_count_error_upper_bound=0, sum_other_doc_count=0, buckets=[{key=ip-10-31-34-200.awsdsi.ghx.com, doc_count=1540, inneroutput={doc_count_error_upper_bound=0, sum_other_doc_count=0, buckets=[{key=ui-heimdall, doc_count=1540}]}}, {key=ip-10-31-34-165.awsdsi.ghx.com, doc_count=1535, inneroutput={doc_count_error_upper_bound=0, sum_other_doc_count=0, buckets=[{key=ui-heimdall, doc_count=1535}]}}, {key=ip-10-31-37-188.awsdsi.ghx.com, doc_count=1516, inneroutput={doc_count_error_upper_bound=0, sum_other_doc_count=0, buckets=[{key=ui-mex, doc_count=1516}]}}, {key=ip-10-31-35-25.awsdsi.ghx.com, doc_count=1496, inneroutput={doc_count_error_upper_bound=0, sum_other_doc_count=0, buckets=[{key=ui-invoicing, doc_count=1496}]}}, {key=ip-10-31-36-38.awsdsi.ghx.com, doc_count=1484, inneroutput={doc_count_error_upper_bound=0, sum_other_doc_count=0, buckets=[{key=processing-engine, doc_count=1484}]}}, {key=ip-10-31-36-76.awsdsi.ghx.com, doc_count=1477, inneroutput={doc_count_error_upper_bound=0, sum_other_doc_count=0, buckets=[{key=ui-rc, doc_count=1477}]}}, {key=ip-10-31-36-254.awsdsi.ghx.com, doc_count=1466, inneroutput={doc_count_error_upper_bound=0, sum_other_doc_count=0, buckets=[{key=regapi-ws, doc_count=1466}]}}, {key=ip-10-31-32-198.awsdsi.ghx.com, doc_count=1453, inneroutput={doc_count_error_upper_bound=0, sum_other_doc_count=0, buckets=[{key=ui-heimdall, doc_count=1453}]}}, {key=ip-10-31-36-13.awsdsi.ghx.com, doc_count=1443, inneroutput={doc_count_error_upper_bound=0, sum_other_doc_count=0, buckets=[{key=ui-heimdall, doc_count=1443}]}}, {key=ip-10-31-35-203.awsdsi.ghx.com, doc_count=1432, inneroutput={doc_count_error_upper_bound=0, sum_other_doc_count=0, buckets=[{key=ui-heimdall, doc_count=1432}]}}, {key=ip-10-31-60-97.awsdsi.ghx.com, doc_count=1400, inneroutput={doc_count_error_upper_bound=0, sum_other_doc_count=0, buckets=[{key=io-engine, doc_count=1400}]}}, {key=ip-10-31-35-169.awsdsi.ghx.com, doc_count=1365, inneroutput={doc_count_error_upper_bound=0, sum_other_doc_count=0, buckets=[{key=data-poller, doc_count=1365}]}}, {key=ip-10-31-34-133.awsdsi.ghx.com, doc_count=1363, inneroutput={doc_count_error_upper_bound=0, sum_other_doc_count=0, buckets=[{key=jobs, doc_count=1363}]}}, {key=ip-10-31-34-191.awsdsi.ghx.com, doc_count=1324, inneroutput={doc_count_error_upper_bound=0, sum_other_doc_count=0, buckets=[{key=ui-heimdall, doc_count=1324}]}}]}}
results{output={doc_count_error_upper_bound=0, sum_other_doc_count=0, buckets=[{key=ip-10-31-34-200.awsdsi.ghx.com, doc_count=1540, inneroutput={doc_count_error_upper_bound=0, sum_other_doc_count=0, buckets=[{key=ui-heimdall, doc_count=1540}]}}, {key=ip-10-31-34-165.awsdsi.ghx.com, doc_count=1535, inneroutput={doc_count_error_upper_bound=0, sum_other_doc_count=0, buckets=[{key=ui-heimdall, doc_count=1535}]}}, {key=ip-10-31-37-188.awsdsi.ghx.com, doc_count=1516, inneroutput={doc_count_error_upper_bound=0, sum_other_doc_count=0, buckets=[{key=ui-mex, doc_count=1516}]}}, {key=ip-10-31-35-25.awsdsi.ghx.com, doc_count=1496, inneroutput={doc_count_error_upper_bound=0, sum_other_doc_count=0, buckets=[{key=ui-invoicing, doc_count=1496}]}}, {key=ip-10-31-36-38.awsdsi.ghx.com, doc_count=1484, inneroutput={doc_count_error_upper_bound=0, sum_other_doc_count=0, buckets=[{key=processing-engine, doc_count=1484}]}}, {key=ip-10-31-36-76.awsdsi.ghx.com, doc_count=1477, inneroutput={doc_count_error_upper_bound=0, sum_other_doc_count=0, buckets=[{key=ui-rc, doc_count=1477}]}}, {key=ip-10-31-36-254.awsdsi.ghx.com, doc_count=1466, inneroutput={doc_count_error_upper_bound=0, sum_other_doc_count=0, buckets=[{key=regapi-ws, doc_count=1466}]}}, {key=ip-10-31-32-198.awsdsi.ghx.com, doc_count=1453, inneroutput={doc_count_error_upper_bound=0, sum_other_doc_count=0, buckets=[{key=ui-heimdall, doc_count=1453}]}}, {key=ip-10-31-36-13.awsdsi.ghx.com, doc_count=1443, inneroutput={doc_count_error_upper_bound=0, sum_other_doc_count=0, buckets=[{key=ui-heimdall, doc_count=1443}]}}, {key=ip-10-31-35-203.awsdsi.ghx.com, doc_count=1432, inneroutput={doc_count_error_upper_bound=0, sum_other_doc_count=0, buckets=[{key=ui-heimdall, doc_count=1432}]}}, {key=ip-10-31-60-97.awsdsi.ghx.com, doc_count=1400, inneroutput={doc_count_error_upper_bound=0, sum_other_doc_count=0, buckets=[{key=io-engine, doc_count=1400}]}}, {key=ip-10-31-35-169.awsdsi.ghx.com, doc_count=1365, inneroutput={doc_count_error_upper_bound=0, sum_other_doc_count=0, buckets=[{key=data-poller, doc_count=1365}]}}, {key=ip-10-31-34-133.awsdsi.ghx.com, doc_count=1363, inneroutput={doc_count_error_upper_bound=0, sum_other_doc_count=0, buckets=[{key=jobs, doc_count=1363}]}}, {key=ip-10-31-34-191.awsdsi.ghx.com, doc_count=1324, inneroutput={doc_count_error_upper_bound=0, sum_other_doc_count=0, buckets=[{key=ui-heimdall, doc_count=1324}]}}]}}
resultList[{key=ip-10-31-34-200.awsdsi.ghx.com, doc_count=1540, inneroutput={doc_count_error_upper_bound=0, sum_other_doc_count=0, buckets=[{key=ui-heimdall, doc_count=1540}]}}, {key=ip-10-31-34-165.awsdsi.ghx.com, doc_count=1535, inneroutput={doc_count_error_upper_bound=0, sum_other_doc_count=0, buckets=[{key=ui-heimdall, doc_count=1535}]}}, {key=ip-10-31-37-188.awsdsi.ghx.com, doc_count=1516, inneroutput={doc_count_error_upper_bound=0, sum_other_doc_count=0, buckets=[{key=ui-mex, doc_count=1516}]}}, {key=ip-10-31-35-25.awsdsi.ghx.com, doc_count=1496, inneroutput={doc_count_error_upper_bound=0, sum_other_doc_count=0, buckets=[{key=ui-invoicing, doc_count=1496}]}}, {key=ip-10-31-36-38.awsdsi.ghx.com, doc_count=1484, inneroutput={doc_count_error_upper_bound=0, sum_other_doc_count=0, buckets=[{key=processing-engine, doc_count=1484}]}}, {key=ip-10-31-36-76.awsdsi.ghx.com, doc_count=1477, inneroutput={doc_count_error_upper_bound=0, sum_other_doc_count=0, buckets=[{key=ui-rc, doc_count=1477}]}}, {key=ip-10-31-36-254.awsdsi.ghx.com, doc_count=1466, inneroutput={doc_count_error_upper_bound=0, sum_other_doc_count=0, buckets=[{key=regapi-ws, doc_count=1466}]}}, {key=ip-10-31-32-198.awsdsi.ghx.com, doc_count=1453, inneroutput={doc_count_error_upper_bound=0, sum_other_doc_count=0, buckets=[{key=ui-heimdall, doc_count=1453}]}}, {key=ip-10-31-36-13.awsdsi.ghx.com, doc_count=1443, inneroutput={doc_count_error_upper_bound=0, sum_other_doc_count=0, buckets=[{key=ui-heimdall, doc_count=1443}]}}, {key=ip-10-31-35-203.awsdsi.ghx.com, doc_count=1432, inneroutput={doc_count_error_upper_bound=0, sum_other_doc_count=0, buckets=[{key=ui-heimdall, doc_count=1432}]}}, {key=ip-10-31-60-97.awsdsi.ghx.com, doc_count=1400, inneroutput={doc_count_error_upper_bound=0, sum_other_doc_count=0, buckets=[{key=io-engine, doc_count=1400}]}}, {key=ip-10-31-35-169.awsdsi.ghx.com, doc_count=1365, inneroutput={doc_count_error_upper_bound=0, sum_other_doc_count=0, buckets=[{key=data-poller, doc_count=1365}]}}, {key=ip-10-31-34-133.awsdsi.ghx.com, doc_count=1363, inneroutput={doc_count_error_upper_bound=0, sum_other_doc_count=0, buckets=[{key=jobs, doc_count=1363}]}}, {key=ip-10-31-34-191.awsdsi.ghx.com, doc_count=1324, inneroutput={doc_count_error_upper_bound=0, sum_other_doc_count=0, buckets=[{key=ui-heimdall, doc_count=1324}]}}]
Inside getSearchResultsFromES indexAliasNamedev-topbeat_allindexName>>indexType>>processquery>>{"bool":{"must":{"match_all":{}},"filter":{"bool":{"must":[{"range":{"@timestamp":{"gte":"2019-11-04T11:14:46.228Z","lte":"2019-11-04T11:35:26.072Z"}}},{"term":{"beat.name":"ui-heimdall"}}],"must_not":[{ "range": { "proc.cpu.user_p": { "lte": 0 } } }]}}}},"size": 0,"aggs": {"output": {"terms": {"field": "beat.hostname","size": 100},"aggs": {"inneroutput": {"date_histogram": {"field": "@timestamp","interval" :"1m" ,"time_zone": "+05:30","min_doc_count": 1,"extended_bounds": {"min": "2019-11-04T11:14:46.228Z","max": "2019-11-04T11:35:26.072Z"}},"aggs": {"items": {"terms": {"field": "proc.name","size": 10,"order": {"count": "desc"}},"aggs": {"count": {"avg": {"field": "proc.cpu.user_p"}}}}}}}}}
2019-11-07 11:24:47,375 |INFO [http-bio-8443-exec-116] c.g.t.a.s.impl.PerformanceMetricsServiceImpl - indexStr is dev-topbeat/process
2019-11-07 11:24:47,376 |INFO [http-bio-8443-exec-116] c.g.t.a.s.impl.PerformanceMetricsServiceImpl - esquery is {"bool":{"must":{"match_all":{}},"filter":{"bool":{"must":[{"range":{"@timestamp":{"gte":"2019-11-04T11:14:46.228Z","lte":"2019-11-04T11:35:26.072Z"}}},{"term":{"beat.name":"ui-heimdall"}}],"must_not":[{ "range": { "proc.cpu.user_p": { "lte": 0 } } }]}}}},"size": 0,"aggs": {"output": {"terms": {"field": "beat.hostname","size": 100},"aggs": {"inneroutput": {"date_histogram": {"field": "@timestamp","interval" :"1m" ,"time_zone": "+05:30","min_doc_count": 1,"extended_bounds": {"min": "2019-11-04T11:14:46.228Z","max": "2019-11-04T11:35:26.072Z"}},"aggs": {"items": {"terms": {"field": "proc.name","size": 10,"order": {"count": "desc"}},"aggs": {"count": {"avg": {"field": "proc.cpu.user_p"}}}}}}}}}
>>>>>>>>>>>Our qury{"bool":{"must":{"match_all":{}},"filter":{"bool":{"must":[{"range":{"@timestamp":{"gte":"2019-11-04T11:14:46.228Z","lte":"2019-11-04T11:35:26.072Z"}}},{"term":{"beat.name":"ui-heimdall"}}],"must_not":[{ "range": { "proc.cpu.user_p": { "lte": 0 } } }]}}}},"size": 0,"aggs": {"output": {"terms": {"field": "beat.hostname","size": 100},"aggs": {"inneroutput": {"date_histogram": {"field": "@timestamp","interval" :"1m" ,"time_zone": "+05:30","min_doc_count": 1,"extended_bounds": {"min": "2019-11-04T11:14:46.228Z","max": "2019-11-04T11:35:26.072Z"}},"aggs": {"items": {"terms": {"field": "proc.name","size": 10,"order": {"count": "desc"}},"aggs": {"count": {"avg": {"field": "proc.cpu.user_p"}}}}}}}}}
dev-newrelic-topbeat_all
dev-newrelic-topbeat
curl -X POST "https://search-test-framework-es2-rh4ypdodfobsgmd54nfsnphatm.us-west-2.es.amazonaws.com/_aliases?pretty" -H 'Content-Type: application/json' -d'
{
"actions" : [
{ "add" : { "index" : "dev-newrelic-cpu-utilization", "alias" : "dev-newrelic-cpu-utilization_all" } }
]
}
'
Wednesday, November 6, 2019 12:50:00 PM GMT+05:30
curl -X GET "https://search-test-framework-es2-rh4ypdodfobsgmd54nfsnphatm.us-west-2.es.amazonaws.com/dev-newrelic-cpu-utilization/_search?pretty" -H 'Content-Type: application/json' -d'
{"query": {
"bool": {
"must":{"match_all":{}},
"filter":{"bool":{
"must" : [{
"range" : {
"@timestamp" : { "gte" : "2019-11-01T06:30:12.039Z",
"lte" : "2019-11-01T07:56:07.429Z" }
}}
],"must_not":[{ "range": { "user_p": { "lte": 0 } } }]}}}},"size":0,
"aggs" : {
"output":{
"date_histogram" : {
"field" : "@timestamp",
"interval" : "2m",
"time_zone":"+05:30",
"min_doc_count":1,
"extended_bounds":{
"min":"2019-11-01T07:44:12.039Z",
"max":"2019-11-01T07:56:07.429Z"
}},"aggs":{
"items":{"terms":{"field":"hostname","size":100,
"order":{"count":"desc"}},
"aggs":{"count":{"avg":{"field":"user_p"}}}}}}
}
}'
{"bool": {"must":{"match_all":{}},"filter":{"bool":{ "must" : [{"range" : {"@timestamp" : { "gte" : "2019-11-07T07:14:00.226Z","lte" : "2019-11-07T07:19:37.670Z"}}}],"must_not":[{ "range": { "user_p": { "lte": 0 } } }]}}}},"size":0,"aggs" : {"output":{"date_histogram" : {"field" : "@timestamp","interval" :"2m","time_zone":"+05:30","min_doc_count":1,"extended_bounds":{"min":"2019-11-07T07:14:00.226Z","max":"2019-11-07T07:19:37.670Z"}},"aggs":{"items":{"terms":{"field":"hostname","size":100,"order":{"count":"desc"}},"aggs":{"count":{"avg":{"field":"user_p"}}}}}}}
(base) sys-user@SMI-243:~/backup/aws$ curl -X GET "https://search-test-framework-es2-rh4ypdodfobsgmd54nfsnphatm.us-west-2.es.amazonaws.com/dev-testframework-stats_all/_search?pretty"
{
"took" : 4,
"timed_out" : false,
"_shards" : {
"total" : 145,
"successful" : 145,
"failed" : 0
},
"hits" : {
"total" : 691817,
"max_score" : 1.0,
"hits" : [ {
"_index" : "dev-testframework-stats-2019.11.05",
"_type" : "jvm-heimdall-stats",
"_id" : "AW47oVGkwEcMd9IvztiP",
"_score" : 1.0,
"_ttl" : -21390,
"_source" : {
"@version" : "1",
"@timestamp" : "2019-11-05T12:54:17.677Z",
"host" : "10.31.32.198",
"type" : "jvm-heimdall-stats",
"Threading_TotalStartedThreadCount" : 28761,
"service" : "corex-test-framework",
"ghxhost" : "10.31.32.198",
"instanceId" : "i-01779d0b2891eb907",
"ghxenvironment" : "dev",
"appversion" : "1.109.0",
"buildnumber" : "4",
"cfstack" : "TestFW-CoreX-CXT1373-UI-Heimdall-b4",
"application" : "ui-heimdall"
}
}, {
"_index" : "dev-testframework-stats-2019.11.05",
"_type" : "jvm-heimdall-stats",
"_id" : "AW47oVHuwEcMd9IvztiR",
"_score" : 1.0,
"_ttl" : -21316,
"_source" : {
"@version" : "1",
"@timestamp" : "2019-11-05T12:54:17.747Z",
"host" : "10.31.34.191",
"type" : "jvm-heimdall-stats",
"HeapMemory_committed" : 3758096384,
"service" : "corex-test-framework",
"ghxhost" : "10.31.34.191",
"instanceId" : "i-047ec32ed46a05fdf",
"ghxenvironment" : "dev",
"appversion" : "1.110.0",
"buildnumber" : "1",
"cfstack" : "TestFW-CoreX-CX1373-UI-Heimdall-b1",
"application" : "ui-heimdall"
}
}, {
"_index" : "dev-testframework-stats-2019.11.05",
"_type" : "jvm-heimdall-stats",
"_id" : "AW47oVHuwEcMd9IvztiV",
"_score" : 1.0,
"_ttl" : -21316,
"_source" : {
"@version" : "1",
"@timestamp" : "2019-11-05T12:54:17.749Z",
"host" : "10.31.34.191",
"type" : "jvm-heimdall-stats",
"Class_TotalLoadedClassCount" : 174926,
"service" : "corex-test-framework",
"ghxhost" : "10.31.34.191",
"instanceId" : "i-047ec32ed46a05fdf",
"ghxenvironment" : "dev",
"appversion" : "1.110.0",
"buildnumber" : "1",
"cfstack" : "TestFW-CoreX-CX1373-UI-Heimdall-b1",
"application" : "ui-heimdall"
}
}, {
"_index" : "dev-testframework-stats-2019.11.05",
"_type" : "jvm-heimdall-stats",
"_id" : "AW47oVHuwEcMd9IvztiX",
"_score" : 1.0,
"_ttl" : -21316,
"_source" : {
"@version" : "1",
"@timestamp" : "2019-11-05T12:54:17.752Z",
"host" : "10.31.34.191",
"type" : "jvm-heimdall-stats",
"Threading_ThreadCount" : 135,
"service" : "corex-test-framework",
"ghxhost" : "10.31.34.191",
"instanceId" : "i-047ec32ed46a05fdf",
"ghxenvironment" : "dev",
"appversion" : "1.110.0",
"buildnumber" : "1",
"cfstack" : "TestFW-CoreX-CX1373-UI-Heimdall-b1",
"application" : "ui-heimdall"
}
}, {
"_index" : "dev-testframework-stats-2019.11.05",
"_type" : "jvm-heimdall-stats",
"_id" : "AW47oVNr_4fAvohB1Adp",
"_score" : 1.0,
"_ttl" : -20935,
"_source" : {
"@version" : "1",
"@timestamp" : "2019-11-05T12:54:18.128Z",
"host" : "10.31.34.126",
"type" : "jvm-heimdall-stats",
"HeapMemory_used" : 1817209168,
"service" : "corex-test-framework",
"ghxhost" : "10.31.34.126",
"instanceId" : "i-0cc1e26bc15084b93",
"ghxenvironment" : "dev",
"appversion" : "1.109.15",
"buildnumber" : "2",
"cfstack" : "TestFW-CoreX-CX1445REL-UI-Heimdall-b2",
"application" : "ui-heimdall"
}
}, {
"_index" : "dev-testframework-stats-2019.11.05",
"_type" : "tpmdao-stats",
"_id" : "AW47oTIQ_4fAvohB1Aci",
"_score" : 1.0,
"_ttl" : -29474,
"_source" : {
"TPM_ClassName" : "RuleDAO",
"@timestamp" : "2019-11-05T12:53:55.149Z",
"instanceId" : "i-0afc79d7691e66b3f",
"application" : "processing-engine",
"TPM_MethodName" : "getAllActiveRuleIDs",
"TPM_ClassName_MethodName" : "RuleDAO.getAllActiveRuleIDs",
"ghxhost" : "10.31.37.61",
"stackname" : "CoreX-DEV-Processing-b6384",
"TPM_ResponseTime" : 147
}
}, {
"_index" : "dev-testframework-stats-2019.11.05",
"_type" : "tpmdao-stats",
"_id" : "AW47oTIQ_4fAvohB1Ack",
"_score" : 1.0,
"_ttl" : -29474,
"_source" : {
"TPM_ClassName" : "ContactDAO",
"@timestamp" : "2019-11-05T12:54:02.113Z",
"instanceId" : "i-0afc79d7691e66b3f",
"application" : "processing-engine",
"TPM_MethodName" : "findUnsubscribedFromChannel",
"TPM_ClassName_MethodName" : "ContactDAO.findUnsubscribedFromChannel",
"ghxhost" : "10.31.37.61",
"stackname" : "CoreX-DEV-Processing-b6384",
"TPM_ResponseTime" : 1079
}
}, {
"_index" : "dev-testframework-stats-2019.11.05",
"_type" : "tpmdao-stats",
"_id" : "AW47oTIQ_4fAvohB1Acm",
"_score" : 1.0,
"_ttl" : -29474,
"_source" : {
"TPM_ClassName" : "RuleDAO",
"@timestamp" : "2019-11-05T12:54:05.155Z",
"instanceId" : "i-0afc79d7691e66b3f",
"application" : "processing-engine",
"TPM_MethodName" : "getAllActiveRuleIDs",
"TPM_ClassName_MethodName" : "RuleDAO.getAllActiveRuleIDs",
"ghxhost" : "10.31.37.61",
"stackname" : "CoreX-DEV-Processing-b6384",
"TPM_ResponseTime" : 153
}
}, {
"_index" : "dev-testframework-stats-2019.11.05",
"_type" : "tpmdao-stats",
"_id" : "AW47oTImwEcMd9Ivzth_",
"_score" : 1.0,
"_ttl" : -29452,
"_source" : {
"TPM_ClassName" : "AlertPostponedMessageDAO",
"@timestamp" : "2019-11-05T12:54:06.404Z",
"instanceId" : "i-048347f58df0d8558",
"application" : "jobs",
"TPM_MethodName" : "isPostponedMessageExistsForAlert",
"TPM_ClassName_MethodName" : "AlertPostponedMessageDAO.isPostponedMessageExistsForAlert",
"ghxhost" : "10.31.34.252",
"stackname" : "CoreX-DEV-JOBS-b6384",
"TPM_ResponseTime" : 22
}
}, {
"_index" : "dev-testframework-stats-2019.11.05",
"_type" : "tpmdao-stats",
"_id" : "AW47oTImwEcMd9IvztiE",
"_score" : 1.0,
"_ttl" : -29452,
"_source" : {
"TPM_ClassName" : "AlertPostponedMessageDAO",
"@timestamp" : "2019-11-05T12:54:10.039Z",
"instanceId" : "i-048347f58df0d8558",
"application" : "jobs",
"TPM_MethodName" : "isPostponedMessageExistsForAlert",
"TPM_ClassName_MethodName" : "AlertPostponedMessageDAO.isPostponedMessageExistsForAlert",
"ghxhost" : "10.31.34.252",
"stackname" : "CoreX-DEV-JOBS-b6384",
"TPM_ResponseTime" : 32
}
} ]
}
}
Heap memory Line Chart
curl -X GET "https://search-test-framework-es2-rh4ypdodfobsgmd54nfsnphatm.us-west-2.es.amazonaws.com/dev-testframework-stats_all/_search?pretty" -H 'Content-Type: application/json' -d'
{"query":{"bool":{"must":{"match_all":{}},"filter":{"bool":{"must":[{"range":{"@timestamp":{"gte":"2019-11-05T12:53:10.039Z","lte":"2019-11-05T12:54:18.039Z"}}}],
"must_not":[]}}}},"size":0,"sort":[{"@timestamp":{"order":"desc"}}],"aggs":{"output":{"terms":{"field":"host","size":100,"order":{"count":"desc"}},"aggs":{"count":{"avg":{"field":"HeapMemory_max"}},
"items":{"date_histogram":{"field":"@timestamp","interval":"1","min_doc_count":1,"extended_bounds":{"min":
"2019-11-05T12:53:10.039Z","max":"2019-11-05T12:54:18.039Z"}},"aggs":{"max":{"avg":{"field":"HeapMemory_max"}},"committed":{"avg":{"field":"HeapMemory_committed"}},"used":{"avg":{"field":"HeapMemory_used"}}}}}}}}'
curl -X GET "https://search-test-framework-es2-rh4ypdodfobsgmd54nfsnphatm.us-west-2.es.amazonaws.com/dev-testframework-stats_all/_search?pretty" -H 'Content-Type: application/json' -d'
{"query":{"bool":{"must":{"match_all":{}},"filter":{"bool":{"must":[{"range":{"@timestamp":{"gte":"2019-11-07T14:51:36.719Z","lte":"2019-11-08T04:30:04.557Z"}}}],
"must_not":[]}}}},"size":0,"sort":[{"@timestamp":{"order":"desc"}}],"aggs":{"output":{"terms":{"field":"host","size":100,"order":{"count":"desc"}},"aggs":{"count":{"avg":{"field":"HeapMemory_max"}},
"items":{"date_histogram":{"field":"@timestamp","interval":"1","min_doc_count":1,"extended_bounds":{"min":
"2019-11-07T14:51:36.719Z","max":"2019-11-08T04:30:04.557Z"}},"aggs":{"max":{"avg":{"field":"HeapMemory_max"}},"committed":{"avg":{"field":"HeapMemory_committed"}},"used":{"avg":{"field":"HeapMemory_used"}}}}}}}}'
new StringBuilder(
"{\"bool\":{\"must\":{\"match_all\":{}},\"filter\":{\"bool\":{\"must\":[{\"range\":{\"@timestamp\":{\"gte\":"
+ qFromDate + ",\"lte\":" + qToDate + "}}}");
commonQuery.append("],\"must_not\":[]}}}},\"size\":0,\"sort\": [{\"@timestamp\":{\"order\":\"desc\"}}]");
"\"aggs\":{\"output\":{\"terms\":{\"field\":\"host\",\"size\":100,\"order\":{\"count\":\"desc\"}},\"aggs\":{\"count\":{\"avg\":{\"field\":\"HeapMemory_max\"}},\"items\":{\"date_histogram\":{\"field\":\"@timestamp\",\"interval\":"
+ qInterval
+ ",\"min_doc_count\":1,\"extended_bounds\":{\"min\":"
+ qFromDate
+ ",\"max\":"
+ qToDate
+ "}},\"aggs\":{\"max\":{\"avg\":{\"field\":\"HeapMemory_max\"}},\"committed\":{\"avg\":{\"field\":\"HeapMemory_committed\"}},\"used\":{\"avg\":{\"field\":\"HeapMemory_used\"}}}}}}}";
curl -X GET "https://search-test-framework-es2-rh4ypdodfobsgmd54nfsnphatm.us-west-2.es.amazonaws.com/dev-testframework-stats_all/_search?pretty" -H 'Content-Type: application/json' -d'
{"query":{"bool":{"must":{"match_all":{}},"filter":{"bool":{"must":[{"range":{"@timestamp":{"gte":"2019-11-05T12:53:10.039Z","lte":"2019-11-05T12:54:18.039Z"}}}],
"must_not":[]}}}},"size":0,"sort":[{"@timestamp":{"order":"desc"}}],"aggs":{"output":{"terms":{"field":"host","size":100,"order":{"count":"desc"}},"aggs":{"count":{"avg":{"field":"HeapMemory_max"}},
"items":{"date_histogram":{"field":"@timestamp","interval":"1","min_doc_count":1,"extended_bounds":{"min":
"2019-11-05T12:53:10.039Z","max":"2019-11-05T12:54:18.039Z"}},"aggs":{"max":{"avg":{"field":"HeapMemory_max"}},"committed":{"avg":{"field":"HeapMemory_committed"}},"used":{"avg":{"field":"HeapMemory_used"}}}}}}}}'
(base) sys-user@SMI-243:~/backup/aws$ curl -X GET "https://search-test-framework-es2-rh4ypdodfobsgmd54nfsnphatm.us-west-2.es.amazonaws.com/dev-newrelic-cpu-utilization/_search?pretty"
{
"took" : 1,
"timed_out" : false,
"_shards" : {
"total" : 5,
"successful" : 5,
"failed" : 0
},
"hits" : {
"total" : 48,
"max_score" : 1.0,
"hits" : [ {
"_index" : "dev-newrelic-cpu-utilization",
"_type" : "system",
"_id" : "AW5GWvq9wEcMd9IvJsm9",
"_score" : 1.0,
"_source" : {
"application" : "connectplus-fleet-DEV",
"user_p" : 197,
"hostname" : "10.31.36.208",
"@timestamp" : "2019-11-07T14:48:00+00:00"
}
}, {
"_index" : "dev-newrelic-cpu-utilization",
"_type" : "system",
"_id" : "AW5GWvq9wEcMd9IvJsnC",
"_score" : 1.0,
"_source" : {
"application" : "DEV-processing-engine",
"user_p" : 34.3,
"hostname" : "10.31.35.166",
"@timestamp" : "2019-11-07T14:50:00+00:00"
}
}, {
"_index" : "dev-newrelic-cpu-utilization",
"_type" : "system",
"_id" : "AW5GXAz0Gb6oRN1s5N04",
"_score" : 1.0,
"_source" : {
"application" : "DEV-data-poller",
"user_p" : 4.5,
"hostname" : "10.31.33.224",
"@timestamp" : "2019-11-07T14:49:00+00:00"
}
}, {
"_index" : "dev-newrelic-cpu-utilization",
"_type" : "system",
"_id" : "AW5GXkaY_4fAvohBK_kG",
"_score" : 1.0,
"_source" : {
"application" : "connectplus-fleet-DEV",
"user_p" : 197,
"hostname" : "10.31.36.208",
"@timestamp" : "2019-11-07T14:51:00+00:00"
}
}, {
"_index" : "dev-newrelic-cpu-utilization",
"_type" : "system",
"_id" : "AW5GX1naGb6oRN1s5Pco",
"_score" : 1.0,
"_source" : {
"application" : "DEV-io-engine",
"user_p" : 33.4,
"hostname" : "10.31.61.193",
"@timestamp" : "2019-11-07T14:54:00+00:00"
}
}, {
"_index" : "dev-newrelic-cpu-utilization",
"_type" : "system",
"_id" : "AW5Km9B7_4fAvohBTe_5",
"_score" : 1.0,
"_source" : {
"application" : "connectplus-api-DEV",
"user_p" : 0.588,
"hostname" : "10.31.36.197",
"@timestamp" : "2019-11-08T10:38:00+00:00"
}
}, {
"_index" : "dev-newrelic-cpu-utilization",
"_type" : "system",
"_id" : "AW5GWvq9wEcMd9IvJsm7",
"_score" : 1.0,
"_source" : {
"application" : "connectplus-api-DEVINT",
"user_p" : 0.633,
"hostname" : "10.31.34.145",
"@timestamp" : "2019-11-07T14:48:00+00:00"
}
}, {
"_index" : "dev-newrelic-cpu-utilization",
"_type" : "system",
"_id" : "AW5GWvq9wEcMd9IvJsm8",
"_score" : 1.0,
"_source" : {
"application" : "connectplus-api-DEVINT",
"user_p" : 0.467,
"hostname" : "10.32.33.18",
"@timestamp" : "2019-11-07T14:48:00+00:00"
}
}, {
"_index" : "dev-newrelic-cpu-utilization",
"_type" : "system",
"_id" : "AW5GXAz0Gb6oRN1s5N00",
"_score" : 1.0,
"_source" : {
"application" : "connectplus-api-DEVINT",
"user_p" : 0.633,
"hostname" : "10.31.34.145",
"@timestamp" : "2019-11-07T14:49:00+00:00"
}
}, {
"_index" : "dev-newrelic-cpu-utilization",
"_type" : "system",
"_id" : "AW5GXAz0Gb6oRN1s5N01",
"_score" : 1.0,
"_source" : {
"application" : "connectplus-api-DEVINT",
"user_p" : 0.463,
"hostname" : "10.32.33.18",
"@timestamp" : "2019-11-07T14:49:00+00:00"
}
} ]
}
}
curl -X GET "https://search-test-framework-es2-rh4ypdodfobsgmd54nfsnphatm.us-west-2.es.amazonaws.com/dev-testframework-stats_all/_search?pretty" -H 'Content-Type: application/json' -d'
{"query":{"bool":{"must":{"match_all":{}},"filter":{"bool":{"must":[{"range":{"@timestamp":{"gte":"2019-11-05T12:53:10.039Z","lte":"2019-11-05T12:54:18.039Z"}}}],
"must_not":[]}}}},"size":0,"sort":[{"@timestamp":{"order":"desc"}}],"aggs":{"output":{"terms":{"field":"host","size":100,"order":{"count":"desc"}},"aggs":{"count":{"avg":{"field":"HeapMemory_max"}},
"items":{"date_histogram":{"field":"@timestamp","interval":"1","min_doc_count":1,"extended_bounds":{"min":
"2019-11-05T12:53:10.039Z","max":"2019-11-05T12:54:18.039Z"}},"aggs":{"max":{"avg":{"field":"HeapMemory_max"}},"committed":{"avg":{"field":"HeapMemory_committed"}},"used":{"avg":{"field":"HeapMemory_used"}}}}}}}}'
curl -X GET "https://search-test-framework-es2-rh4ypdodfobsgmd54nfsnphatm.us-west-2.es.amazonaws.com/dev-testframework-stats_all/_search?pretty" -H 'Content-Type: application/json' -d'
{"query":{"bool":{"must":{"match_all":{}},"filter":{"bool":{"must":[{"range":{"@timestamp":{"gte":"2019-11-05T12:53:10.039Z","lte":"2019-11-05T12:54:18.039Z"}}}],
"must_not":[]}}}}}'
new StringBuilder(
"{\"bool\":{\"must\":{\"match_all\":{}},\"filter\":{\"bool\":{\"must\":[{\"range\":{\"@timestamp\":{\"gte\":"
+ qFromDate + ",\"lte\":" + qToDate
+ "}}}],\"must_not\":[]}}}},\"size\":0,\"sort\": [{\"@timestamp\":{\"order\":\"desc\"}}]");
aggregationsCurrVal =
"\"aggs\":{\"output\":{\"terms\":{\"field\":\"" + objectName
+ "\",\"size\" : 1000},\"aggs\":{\"inneroutput\":{\"terms\":{\"field\":\""+targetName+"\"}}" + "}}}";
curl -X GET "https://search-test-framework-es2-rh4ypdodfobsgmd54nfsnphatm.us-west-2.es.amazonaws.com/dev-newrelic-cpu-utilization/_search?pretty" -H 'Content-Type: application/json' -d'
{"query":{"bool":{"must":{"match_all":{}},"filter":{"bool":{"must":[{"range":{"@timestamp":{"gte":"2019-11-08T13:24:23.095Z","lte"
:"2019-11-08T13:35:07.652Z"}}}],"must_not":[]}}}},"size":0,"sort":[{"@timestamp":{"order":"desc"}}],"aggs":{"output":{"terms":{
"field":"hostname","size":1000},"aggs":{"inneroutput":{"terms":{"field":"application"}}}}}}'
For Jvm Heap memory Line Chart with filter type All:
curl -X GET "https://search-test-framework-es2-rh4ypdodfobsgmd54nfsnphatm.us-west-2.es.amazonaws.com/dev-testframework-stats_all/_search?pretty" -H 'Content-Type: application/json' -d'
{"query":{"bool":{"must":{"match_all":{}},"filter":{"bool":{"must":[{"range":{"@timestamp":{"gte":"2019-11-08T13:24:23.095Z","lte":"2019-11-08T13:35:07.652Z"}}}],
"must_not":[]}}}},"size":0,"sort":[{"@timestamp":{"order":"desc"}}],"aggs":{"output":{"terms":{"field":"host","size":100,"order":{"count":"desc"}},"aggs":{"count":{"avg":{"field":"HeapMemory_max"}},
"items":{"date_histogram":{"field":"@timestamp","interval":"2m","min_doc_count":1,"extended_bounds":{"min":
"2019-11-08T13:24:23.095Z","max":"2019-11-08T13:35:07.652Z"}},"aggs":{"max":{"avg":{"field":"HeapMemory_max"}},"committed":{"avg":{"field":"HeapMemory_committed"}},"used":{"avg":{"field":"HeapMemory_used"}}}}}}}}'
For Jvm Heap memory Line Chart with filter type Application:
curl -X GET "https://search-test-framework-es2-rh4ypdodfobsgmd54nfsnphatm.us-west-2.es.amazonaws.com/dev-testframework-stats_all/_search?pretty" -H 'Content-Type: application/json' -d'
{"query":{"bool":{"must":{"match_all":{}},"filter":{"bool":{"must":[{"range":{"@timestamp":{"gte":"2019-11-08T12:20:23.095Z","lte":"2019-11-08T13:35:07.652Z"}}},{"term":{"application":"ui-heimdall"}}],
"must_not":[]}}}},"size":0,"sort":[{"@timestamp":{"order":"desc"}}],"aggs":{"output":{"terms":{"field":"host","size":100,"order":{"count":"desc"}},"aggs":{"count":{"avg":{"field":"HeapMemory_max"}},
"items":{"date_histogram":{"field":"@timestamp","interval":"2m","min_doc_count":1,"extended_bounds":{"min":
"2019-11-08T13:24:23.095Z","max":"2019-11-08T13:35:07.652Z"}},"aggs":{"max":{"avg":{"field":"HeapMemory_max"}},"committed":{"avg":{"field":"HeapMemory_committed"}},"used":{"avg":{"field":"HeapMemory_used"}}}}}}}}'
(base) sys-user@SMI-243:~$ curl -X GET "https://search-test-framework-es2-rh4ypdodfobsgmd54nfsnphatm.us-west-2.es.amazonaws.com/_template/dev-cpu-utilization*?pretty"
{
"dev-cpu-utilization_v1" : {
"order" : 0,
"template" : "dev-cpu-utilization*",
"settings" : { },
"mappings" : {
"system" : {
"_ttl" : {
"default" : "3d",
"enabled" : true
},
"properties" : {
"hostname" : {
"analyzer" : "keyword",
"type" : "string"
},
"application" : {
"analyzer" : "keyword",
"type" : "string"
},
"user_p" : {
"type" : "float"
}
}
}
},
"aliases" : {
"dev-cpu-utilization_all" : { }
}
}
}
Creating Template:
curl -X PUT "https://search-test-framework-es2-rh4ypdodfobsgmd54nfsnphatm.us-west-2.es.amazonaws.com/_template/dev-newrelic-cpu-utilization*?pretty" -H 'Content-Type: application/json' -d'
{"template": "dev-newrelic-cpu-utilization*","settings": {"number_of_shards": "5","number_of_replicas": "1"},"mappings": {"system": {"_ttl": {"default": "3d","enabled": true},"properties": {"user_p": {"type": "float"},"hostname": {"analyzer": "keyword","type": "string"},"application": {"analyzer": "keyword","type": "string"}}}},"aliases": {"dev-newrelic-cpu-utilization_all": {}}}'
Getting template created:
(base) sys-user@SMI-243:~$ curl -X GET "https://search-test-framework-es2-rh4ypdodfobsgmd54nfsnphatm.us-west-2.es.amazonaws.com/_template/dev-newrelic-cpu-utilization*?pretty"
{
"dev-newrelic-cpu-utilization*" : {
"order" : 0,
"template" : "dev-newrelic-cpu-utilization*",
"settings" : {
"index" : {
"number_of_shards" : "5",
"number_of_replicas" : "0"
}
},
"mappings" : {
"system" : {
"_ttl" : {
"default" : "3d",
"enabled" : true
},
"properties" : {
"hostname" : {
"analyzer" : "keyword",
"type" : "string"
},
"application" : {
"analyzer" : "keyword",
"type" : "string"
},
"user_p" : {
"type" : "float"
}
}
}
},
"aliases" : {
"dev-newrelic-cpu-utilization_all" : { }
}
}
}
creating Index
curl -X PUT "https://search-test-framework-es2-rh4ypdodfobsgmd54nfsnphatm.us-west-2.es.amazonaws.com/dev-newrelic-cpu-utilization?pretty" -H 'Content-Type: application/json' -d'
{
"settings" : {
"index" : {
"number_of_shards" : 5,
"number_of_replicas" : 1
}
},
"mappings" : {
"system" : {
"_ttl" : {
"default" : "3d",
"enabled" : true
},
"properties" : {
"hostname" : {
"analyzer" : "keyword",
"type" : "string"
},
"application" : {
"analyzer" : "keyword",
"type" : "string"
},
"user_p" : {
"type" : "float"
}
}
}
},
}
'
curl -X PUT "https://search-test-framework-es2-rh4ypdodfobsgmd54nfsnphatm.us-west-2.es.amazonaws.com/dev-newrelic-cpu-utilization?pretty" -H 'Content-Type: application/json' -d'
{
"settings" : {
"index" : {
"number_of_shards" : 5,
"number_of_replicas" : 1
}
},
"mappings" : {
"system" : {
"_ttl" : {
"default" : "3d",
"enabled" : true
},
"properties" : {
"hostname" : {
"analyzer" : "keyword",
"type" : "string"
},
"application" : {
"analyzer" : "keyword",
"type" : "string"
},
"user_p" : {
"type" : "float"
}
}
}
},
"aliases" : {
"dev-newrelic-cpu-utilization_all" : { }
}
}
'
curl -X PUT "https://search-test-framework-es2-rh4ypdodfobsgmd54nfsnphatm.us-west-2.es.amazonaws.com/stg-newrelic-heap-utilization?pretty" -H 'Content-Type: application/json' -d'
{"settings": {"index": {"number_of_shards": 5,"number_of_replicas": 1}},"mappings": {"system": {"_ttl": {"default": "3d","enabled": true},"properties": {"used_bytes_by_host": {"type": "float"},"used_mb_by_host": {"type": "float"},"total_used_mb": {"type": "float"},"hostname": {"analyzer": "keyword","type": "string"},"application": {"analyzer": "keyword","type": "string"}}}},"aliases": {"stg-newrelic-heap-utilization_all": {}}}'
2019-11-11T08:12:00+00:00
2019-11-11T08:18:00+00:00
For CPU Utilization application grouping:
curl -X GET "https://search-test-framework-es2-rh4ypdodfobsgmd54nfsnphatm.us-west-2.es.amazonaws.com/dev-newrelic-cpu-utilization/_search?pretty" -H 'Content-Type: application/json' -d'{"query":{"bool":{"must":{"match_all":{}},"filter":{"bool":{"must":[{"range":{"@timestamp":{"gte":"2019-11-11T08:12:00.095Z","lte":"2019-11-11T08:18:00.652Z"}}}],"must_not":[]}}}},"size":0,"sort":[{"@timestamp":{"order":"desc"}}],"aggs":{"output":{"terms":{
"field":"hostname","size":1000},"aggs":{"inneroutput":{"terms":{"field":"application"}}}}}}'
(base) sys-user@SMI-243:~/backup/aws$ curl -X GET "https://search-test-framework-es2-rh4ypdodfobsgmd54nfsnphatm.us-west-2.es.amazonaws.com/dev-testframework-stats_all/_search?pretty"
{
"took" : 4,
"timed_out" : false,
"_shards" : {
"total" : 160,
"successful" : 160,
"failed" : 0
},
"hits" : {
"total" : 647899,
"max_score" : 1.0,
"hits" : [ {
"_index" : "dev-testframework-stats-2019.11.08",
"_type" : "jvm-ue-stats",
"_id" : "AW5K-GSc_4fAvohBUKOl",
"_score" : 1.0,
"_ttl" : -15490,
"_source" : {
"@version" : "1",
"@timestamp" : "2019-11-08T12:23:42.633Z",
"host" : "10.31.34.62",
"type" : "jvm-ue-stats",
"HeapMemory_max" : 3758096384,
"service" : "corex-dp",
"ghxhost" : "10.31.34.62",
"instanceId" : "i-0501072a7fb0e7fc6",
"ghxenvironment" : "dev",
"appversion" : "1.110.0",
"buildnumber" : "6413",
"cfstack" : "CoreX-DEV-DP-b6413",
"application" : "data-poller"
}
}, {
"_index" : "dev-testframework-stats-2019.11.08",
"_type" : "jvm-ue-stats",
"_id" : "AW5K-GSc_4fAvohBUKOo",
"_score" : 1.0,
"_ttl" : -15490,
"_source" : {
"@version" : "1",
"@timestamp" : "2019-11-08T12:23:42.636Z",
"host" : "10.31.34.62",
"type" : "jvm-ue-stats",
"Class_TotalLoadedClassCount" : 183637,
"service" : "corex-dp",
"ghxhost" : "10.31.34.62",
"instanceId" : "i-0501072a7fb0e7fc6",
"ghxenvironment" : "dev",
"appversion" : "1.110.0",
"buildnumber" : "6413",
"cfstack" : "CoreX-DEV-DP-b6413",
"application" : "data-poller"
}
}, {
"_index" : "dev-testframework-stats-2019.11.08",
"_type" : "jvm-ue-stats",
"_id" : "AW5K-GSc_4fAvohBUKOs",
"_score" : 1.0,
"_ttl" : -15490,
"_source" : {
"@version" : "1",
"@timestamp" : "2019-11-08T12:23:42.642Z",
"host" : "10.31.34.62",
"type" : "jvm-ue-stats",
"Threading_PeakThreadCount" : 387,
"service" : "corex-dp",
"ghxhost" : "10.31.34.62",
"instanceId" : "i-0501072a7fb0e7fc6",
"ghxenvironment" : "dev",
"appversion" : "1.110.0",
"buildnumber" : "6413",
"cfstack" : "CoreX-DEV-DP-b6413",
"application" : "data-poller"
}
}, {
"_index" : "dev-testframework-stats-2019.11.08",
"_type" : "tpmdao-stats",
"_id" : "AW5K-DCdGb6oRN1sCdeq",
"_score" : 1.0,
"_ttl" : -28801,
"_source" : {
"TPM_ClassName" : "AdapterDAO",
"@timestamp" : "2019-11-08T12:23:12.768Z",
"instanceId" : "i-09df1658adfb4fd1d",
"application" : "processing-engine",
"TPM_MethodName" : "findAllAdapters",
"TPM_ClassName_MethodName" : "AdapterDAO.findAllAdapters",
"ghxhost" : "10.31.34.64",
"stackname" : "CoreX-DEV-Processing-b6413",
"TPM_ResponseTime" : 5726
}
}, {
"_index" : "dev-testframework-stats-2019.11.08",
"_type" : "tpmdao-stats",
"_id" : "AW5K-DCdGb6oRN1sCdet",
"_score" : 1.0,
"_ttl" : -28801,
"_source" : {
"TPM_ClassName" : "ContactSubscriptionDAO",
"@timestamp" : "2019-11-08T12:23:20.106Z",
"instanceId" : "i-09df1658adfb4fd1d",
"application" : "processing-engine",
"TPM_MethodName" : "getJobSubscriptions",
"TPM_ClassName_MethodName" : "ContactSubscriptionDAO.getJobSubscriptions",
"ghxhost" : "10.31.34.64",
"stackname" : "CoreX-DEV-Processing-b6413",
"TPM_ResponseTime" : 52
}
}, {
"_index" : "dev-testframework-stats-2019.11.08",
"_type" : "tpmdao-stats",
"_id" : "AW5K-IBbwEcMd9IvS7-h",
"_score" : 1.0,
"_ttl" : -8387,
"_source" : {
"TPM_ClassName" : "RuleDAO",
"@timestamp" : "2019-11-08T12:23:34.663Z",
"instanceId" : "i-09df1658adfb4fd1d",
"application" : "processing-engine",
"TPM_MethodName" : "getAllActiveRuleIDs",
"TPM_ClassName_MethodName" : "RuleDAO.getAllActiveRuleIDs",
"ghxhost" : "10.31.34.64",
"stackname" : "CoreX-DEV-Processing-b6413",
"TPM_ResponseTime" : 133
}
}, {
"_index" : "dev-testframework-stats-2019.11.08",
"_type" : "tpmdao-stats",
"_id" : "AW5K-IBbwEcMd9IvS7-m",
"_score" : 1.0,
"_ttl" : -8387,
"_source" : {
"TPM_ClassName" : "RuleDAO",
"@timestamp" : "2019-11-08T12:23:44.663Z",
"instanceId" : "i-09df1658adfb4fd1d",
"application" : "processing-engine",
"TPM_MethodName" : "getAllActiveRuleIDs",
"TPM_ClassName_MethodName" : "RuleDAO.getAllActiveRuleIDs",
"ghxhost" : "10.31.34.64",
"stackname" : "CoreX-DEV-Processing-b6413",
"TPM_ResponseTime" : 132
}
}, {
"_index" : "dev-testframework-stats-2019.11.08",
"_type" : "tpmdao-stats",
"_id" : "AW5K-BQvwEcMd9IvS7tX",
"_score" : 1.0,
"_ttl" : -36079,
"_source" : {
"TPM_ClassName" : "RuleDAO",
"@timestamp" : "2019-11-08T12:22:42.410Z",
"instanceId" : "i-0501072a7fb0e7fc6",
"application" : "data-poller",
"TPM_MethodName" : "getAllActiveRuleIDs",
"TPM_ClassName_MethodName" : "RuleDAO.getAllActiveRuleIDs",
"ghxhost" : "10.31.34.62",
"stackname" : "CoreX-DEV-DP-b6413",
"TPM_ResponseTime" : 132
}
}, {
"_index" : "dev-testframework-stats-2019.11.08",
"_type" : "tpmdao-stats",
"_id" : "AW5K-BQvwEcMd9IvS7te",
"_score" : 1.0,
"_ttl" : -36079,
"_source" : {
"TPM_ClassName" : "RuleDAO",
"@timestamp" : "2019-11-08T12:23:12.409Z",
"instanceId" : "i-0501072a7fb0e7fc6",
"application" : "data-poller",
"TPM_MethodName" : "getAllActiveRuleIDs",
"TPM_ClassName_MethodName" : "RuleDAO.getAllActiveRuleIDs",
"ghxhost" : "10.31.34.62",
"stackname" : "CoreX-DEV-DP-b6413",
"TPM_ResponseTime" : 130
}
}, {
"_index" : "dev-testframework-stats-2019.11.08",
"_type" : "tpmdao-stats",
"_id" : "AW5K-AFkGb6oRN1sCdak",
"_score" : 1.0,
"_ttl" : -40890,
"_source" : {
"TPM_ClassName" : "RuleDAO",
"@timestamp" : "2019-11-08T12:23:12.604Z",
"instanceId" : "i-0b528dbda7775ce09",
"application" : "jobs",
"TPM_MethodName" : "getAllActiveRuleIDs",
"TPM_ClassName_MethodName" : "RuleDAO.getAllActiveRuleIDs",
"ghxhost" : "10.31.34.156",
"stackname" : "CoreX-DEV-JOBS-b6413",
"TPM_ResponseTime" : 133
}
} ]
}
}
curl -X GET "https://search-test-framework-es2-rh4ypdodfobsgmd54nfsnphatm.us-west-2.es.amazonaws.com/dev-newrelic-cpu-utilization/_search?pretty" -H 'Content-Type: application/json' -d'
{
"from":0,"size":100,
"query": {"match_all":{}}}}'
For stg-newrelic-heap-utilization with FilterType All:
curl -X GET "https://search-test-framework-es2-rh4ypdodfobsgmd54nfsnphatm.us-west-2.es.amazonaws.com/stg-newrelic-heap-utilization/_search?pretty" -H 'Content-Type: application/json' -d'
{"query": {
"bool": {
"must":{"match_all":{}},
"filter":{"bool":{
"must" : [{
"range" : {
"@timestamp" : { "gte" : "2019-11-12T05:10:00.095Z",
"lte" : "2019-11-12T05:12:00.652Z" }
}}
],"must_not":[{ "range": { "total_used_mb": { "lte": 0 } } }]}}}},"size":0,
"aggs" : {
"output":{
"date_histogram" : {
"field" : "@timestamp",
"interval" : "1m",
"time_zone":"+05:30",
"min_doc_count":1,
"extended_bounds":{
"min":"2019-11-12T05:10:00.095Z",
"max":"2019-11-12T05:12:00.652Z"
}},"aggs":{
"items":{"terms":{"field":"hostname","size":100,
"order":{"count":"desc"}},
"aggs":{"count":{"avg":{"field":"total_used_mb"}}}}}}
}
}'
For stg-newrelic-heap-utilization with FilterType Application:
curl -X GET "https://search-test-framework-es2-rh4ypdodfobsgmd54nfsnphatm.us-west-2.es.amazonaws.com/dev-newrelic-heap-utilization/_search?pretty" -H 'Content-Type: application/json' -d'
{"query": {
"bool": {
"must":{"match_all":{}},
"filter":{"bool":{
"must" : [{
"range" : {
"@timestamp" : { "gte" : "2019-11-12T14:15:00.095Z",
"lte" : "2019-11-12T14:18:00.652Z" }
}}
,{"term":{"application":"DEV-processing-engine"}}
],"must_not":[{ "range": { "total_used_mb": { "lte": 0 } } }]}}}},"size":0,
"aggs" : {
"output":{
"date_histogram" : {
"field" : "@timestamp",
"interval" : "1m",
"time_zone":"+05:30",
"min_doc_count":1,
"extended_bounds":{
"min":"2019-11-12T14:15:00.095Z",
"max":"2019-11-12T14:18:00.652Z"
}},"aggs":{
"items":{"terms":{"field":"hostname","size":100,
"order":{"count":"desc"}},
"aggs":{"count":{"avg":{"field":"total_used_mb"}}}}}}
}
}'
curl -X GET "https://search-test-framework-es2-rh4ypdodfobsgmd54nfsnphatm.us-west-2.es.amazonaws.com/stg-newrelic-heap-utilization/_search?pretty" -H 'Content-Type: application/json' -d'
{"query": {
"bool": {
"must":{"match_all":{}},
"filter":{"bool":{
"must" : [{
"range" : {
"@timestamp" : { "gte" : "2019-11-12T05:10:00.095Z",
"lte" : "2019-11-12T05:12:00.652Z" }
}},{"term":{"application":"STG-processing-engine"}}
],"must_not":[{ "range": { "total_used_mb": { "lte": 0 } } }]}}}},"size":0,
"aggs" : {
"output":{
"date_histogram" : {
"field" : "@timestamp",
"interval" : "1m",
"time_zone":"+05:30",
"min_doc_count":0,
"extended_bounds":{
"min":"2019-11-12T05:10:00.095Z",
"max":"2019-11-12T05:12:00.652Z"
}},"aggs":{
"items":{"terms":{"field":"hostname","size":100,
"order":{"count":"desc"}},
"aggs":{"count":{"avg":{"field":"total_used_mb"}}}}}}
}
}'
(base) sys-user@SMI-243:~$ curl -X GET "https://search-test-framework-es2-rh4ypdodfobsgmd54nfsnphatm.us-west-2.es.amazonaws.com/stg-newrelic-heap-utilization/_search?pretty"
{
"took" : 1,
"timed_out" : false,
"_shards" : {
"total" : 5,
"successful" : 5,
"failed" : 0
},
"hits" : {
"total" : 43,
"max_score" : 1.0,
"hits" : [ {
"_index" : "stg-newrelic-heap-utilization",
"_type" : "system",
"_id" : "AW5eCSNjwEcMd9IvyY39",
"_score" : 1.0,
"_source" : {
"@timestamp" : "2019-11-12T05:10:00+00:00",
"hostname" : "10.31.36.92",
"total_used_mb" : 1050,
"application" : "connectplus-api-STG",
"used_bytes_by_host" : 92100000,
"used_mb_by_host" : 87.8
}
}, {
"_index" : "stg-newrelic-heap-utilization",
"_type" : "system",
"_id" : "AW5eCmvs_4fAvohBzlVQ",
"_score" : 1.0,
"_source" : {
"@timestamp" : "2019-11-12T05:10:00+00:00",
"hostname" : "10.32.37.186",
"total_used_mb" : 1980,
"application" : "connectplus-api-STG",
"used_bytes_by_host" : 173000000,
"used_mb_by_host" : 165
}
}, {
"_index" : "stg-newrelic-heap-utilization",
"_type" : "system",
"_id" : "AW5eCmvs_4fAvohBzlVX",
"_score" : 1.0,
"_source" : {
"@timestamp" : "2019-11-12T05:10:00+00:00",
"hostname" : "10.31.61.34",
"total_used_mb" : 29600,
"application" : "STG-io-engine",
"used_bytes_by_host" : 2590000000,
"used_mb_by_host" : 2470
}
}, {
"_index" : "stg-newrelic-heap-utilization",
"_type" : "system",
"_id" : "AW5eCmvs_4fAvohBzlVe",
"_score" : 1.0,
"_source" : {
"@timestamp" : "2019-11-12T05:11:00+00:00",
"hostname" : "10.31.35.39",
"total_used_mb" : 58100,
"application" : "STG-processing-engine",
"used_bytes_by_host" : 5080000000,
"used_mb_by_host" : 4840
}
}, {
"_index" : "stg-newrelic-heap-utilization",
"_type" : "system",
"_id" : "AW5eCmvs_4fAvohBzlVh",
"_score" : 1.0,
"_source" : {
"@timestamp" : "2019-11-12T05:11:00+00:00",
"hostname" : "10.31.32.60",
"total_used_mb" : 55300,
"application" : "STG-processing-engine",
"used_bytes_by_host" : 4830000000,
"used_mb_by_host" : 4600
}
}, {
"_index" : "stg-newrelic-heap-utilization",
"_type" : "system",
"_id" : "AW5eC7SsGb6oRN1sh2DB",
"_score" : 1.0,
"_source" : {
"@timestamp" : "2019-11-12T05:12:00+00:00",
"hostname" : "10.31.34.148",
"total_used_mb" : 24300,
"application" : "STG-jobs",
"used_bytes_by_host" : 2160000000,
"used_mb_by_host" : 2060
}
}, {
"_index" : "stg-newrelic-heap-utilization",
"_type" : "system",
"_id" : "AW5eC7SsGb6oRN1sh2C7",
"_score" : 1.0,
"_source" : {
"@timestamp" : "2019-11-12T05:12:00+00:00",
"hostname" : "10.31.34.97",
"total_used_mb" : 23100,
"application" : "STG-data-poller",
"used_bytes_by_host" : 2020000000,
"used_mb_by_host" : 1920
}
}, {
"_index" : "stg-newrelic-heap-utilization",
"_type" : "system",
"_id" : "AW5eC7SsGb6oRN1sh2DC",
"_score" : 1.0,
"_source" : {
"@timestamp" : "2019-11-12T05:12:00+00:00",
"hostname" : "10.31.32.26",
"total_used_mb" : 50000,
"application" : "STG-processing-engine",
"used_bytes_by_host" : 4370000000,
"used_mb_by_host" : 4170
}
}, {
"_index" : "stg-newrelic-heap-utilization",
"_type" : "system",
"_id" : "AW5eC7SsGb6oRN1sh2DE",
"_score" : 1.0,
"_source" : {
"@timestamp" : "2019-11-12T05:12:00+00:00",
"hostname" : "10.31.36.43",
"total_used_mb" : 68400,
"application" : "STG-processing-engine",
"used_bytes_by_host" : 5980000000,
"used_mb_by_host" : 5700
}
}, {
"_index" : "stg-newrelic-heap-utilization",
"_type" : "system",
"_id" : "AW5eC7SsGb6oRN1sh2DF",
"_score" : 1.0,
"_source" : {
"@timestamp" : "2019-11-12T05:12:00+00:00",
"hostname" : "10.31.35.39",
"total_used_mb" : 74100,
"application" : "STG-processing-engine",
"used_bytes_by_host" : 6480000000,
"used_mb_by_host" : 6180
}
} ]
}
}
curl -X GET "https://search-test-framework-es2-rh4ypdodfobsgmd54nfsnphatm.us-west-2.es.amazonaws.com/stg-newrelic-heap-utilization/_search?pretty" -H 'Content-Type: application/json' -d'
{"query": {
"bool": {
"must":{"match_all":{}},
"filter":{"bool":{
"must" : [{
"range" : {
"@timestamp" : { "gte" : "2019-11-12T07:08:00.404Z",
"lte" : "2019-11-12T07:11:00.797Z" }
}}
,{"term":{"application":"connectplus-api-STG"}}
],"must_not":[{ "range": { "total_used_mb": { "lte": 0 } } }]}}}},"size":0,
"aggs" : {
"output":{
"date_histogram" : {
"field" : "@timestamp",
"interval" : "2m",
"time_zone":"+05:30",
"min_doc_count":1,
"extended_bounds":{
"min":"2019-11-12T07:08:00.404Z",
"max":"2019-11-12T07:11:00.797Z"
}},"aggs":{
"items":{"terms":{"field":"hostname","size":100,
"order":{"count":"desc"}},
"aggs":{"count":{"avg":{"field":"total_used_mb"}}}}}}
}
}'
(base) sys-user@SMI-243:~$ curl -X GET "https://search-test-framework-es2-rh4ypdodfobsgmd54nfsnphatm.us-west-2.es.amazonaws.com/stg-newrelic-heap-utilization/_search?pretty" -H 'Content-Type: application/json' -d'
> {"query": {
> "bool": {
> "must":{"match_all":{}},
> "filter":{"bool":{
> "must" : [{
> "range" : {
> "@timestamp" : { "gte" : "2019-11-12T07:08:00.404Z",
> "lte" : "2019-11-12T07:11:00.797Z" }
> }}
> ,{"term":{"application":"connectplus-api-STG"}}
> ],"must_not":[{ "range": { "total_used_mb": { "lte": 0 } } }]}}}},"size":0,
> "aggs" : {
> "output":{
> "date_histogram" : {
> "field" : "@timestamp",
> "interval" : "2m",
> "time_zone":"+05:30",
> "min_doc_count":1,
> "extended_bounds":{
> "min":"2019-11-12T07:08:00.404Z",
> "max":"2019-11-12T07:11:00.797Z"
> }},"aggs":{
> "items":{"terms":{"field":"hostname","size":100,
> "order":{"count":"desc"}},
> "aggs":{"count":{"avg":{"field":"total_used_mb"}}}}}}
> }
> }'
{
"took" : 1,
"timed_out" : false,
"_shards" : {
"total" : 5,
"successful" : 5,
"failed" : 0
},
"hits" : {
"total" : 4,
"max_score" : 0.0,
"hits" : [ ]
},
"aggregations" : {
"output" : {
"buckets" : [ {
"key_as_string" : "2019-11-12T12:40:00.000+05:30",
"key" : 1573542600000,
"doc_count" : 4,
"items" : {
"doc_count_error_upper_bound" : 0,
"sum_other_doc_count" : 0,
"buckets" : [ {
"key" : "10.32.37.186",
"doc_count" : 2,
"count" : {
"value" : 2255.0
}
}, {
"key" : "10.31.36.92",
"doc_count" : 2,
"count" : {
"value" : 944.0
}
} ]
}
} ]
}
}
}
2019-11-12T07:08:00
https://qbox.io/blog/comprehensive-guide-to-buckets-aggregations-in-elasticsearch
"gte" : "2019-11-12T07:08:00.404Z",
"lte" : "2019-11-12T07:11:00.797Z"
For Heap Utilization application grouping:
curl -X GET "https://search-test-framework-es2-rh4ypdodfobsgmd54nfsnphatm.us-west-2.es.amazonaws.com/stg-newrelic-heap-utilization/_search?pretty" -H 'Content-Type: application/json' -d'{"query":{"bool":{"must":{"match_all":{}},"filter":{"bool":{"must":[{"range":{"@timestamp":{"gte":"2019-11-12T07:08:00.404Z","lte":"2019-11-12T07:11:00.797Z"}}}],"must_not":[]}}}},"size":0,"sort":[{"@timestamp":{"order":"desc"}}],"aggs":{"output":{"terms":{
"field":"hostname","size":1000},"aggs":{"inneroutput":{"terms":{"field":"application"}}}}}}'
/*public static void main(String[] args) {
Client client;
try {
client = TransportClient.builder().build().
addTransportAddress(new InetSocketTransportAddress(InetAddress.getByName("localhost"), 9300));
QueryBuilder qb = QueryBuilders.boolQuery().mustNot(QueryBuilders.termQuery("user_agent", ""));
SearchResponse scrollResp = client.prepareSearch("demo_risk_data")
.addSort(SortParseElement.DOC_FIELD_NAME, SortOrder.ASC)
.setScroll(new TimeValue(60000))
.setQuery(qb)
.setSize(100).execute().actionGet();
//Scroll until no hits are returned
while (true) {
//Break condition: No hits are returned
if (scrollResp.getHits().getHits().length == 0) {
break;
}
// otherwise read results
for (SearchHit hit : scrollResp.getHits().getHits()) {
JSONObject value = new JSONObject(searchData.getSource());
System.out.println(value.toString());
}
// prepare next query
scrollResp = client.prepareSearchScroll(scrollResp.getScrollId()).setScroll(new TimeValue(60000)).execute().actionGet();
}
}
}*/
curl -X GET "https://search-test-framework-es2-rh4ypdodfobsgmd54nfsnphatm.us-west-2.es.amazonaws.com/dev-newrelic-heap-utilization/_search?pretty" -H 'Content-Type: application/json' -d'{"query":{"bool":{"must":{"match_all":{}},"filter":{"bool":{"must":[{"range":{"@timestamp":{"gte":"2019-11-12T14:18:12.988Z","lte":"2019-11-12T14:20:07.811Z"}}}],"must_not":[]}}}},"size":0,"sort":[{"@timestamp":{"order":"desc"}}],"aggs":{"output":{"terms":{
"field":"hostname","size":1000},"aggs":{"inneroutput":{"terms":{"field":"application"}}}}}}'
curl -X GET "https://search-test-framework-es2-rh4ypdodfobsgmd54nfsnphatm.us-west-2.es.amazonaws.com/dev-newrelic-heap-utilization/_search?pretty" -H 'Content-Type: application/json' -d'{"query":
{"bool":{"must":{"match_all":{}},"filter":{"bool":{"must":[{"range":{"@timestamp":{"gte":"2019-11-12T14:18:12.988Z","lte":"2019-11-12T14:20:07.811Z"}}}],"must_not":[]}}}},"size":0,"sort": [{"@timestamp":{"order":"desc"}}],"aggs":{"output":{"terms":{"field":"host","size" : 1000},"aggs":{"inneroutput":{"terms":{"field":"application"}}}}}}'
#########################2019-11-12 14:54:57,016 |INFO [http-bio-8443-exec-160] com.ghx.web.filter.security.CRLFFilter - Url : https://internal-testfw-cxtf-1405-ui-heimdall-elb-1347314042.us-west-2.elb.amazonaws.com/rest/testframework/performance/metrics/newrelic?chartgroup=jvmdao&chartname=line+chart+jvm+heap+stats&filtertype=all&fromdate=2019-11-12t14:18:12.988z&interval=2m&testresultid=5dcabec2e309741040fa86da&todate=2019-11-12t14:20:07.811z&viewtype=chart
2019-11-12 14:54:57,016 |INFO [http-bio-8443-exec-160] com.ghx.web.filter.security.CRLFFilter - CRLF enabled true
2019-11-12 14:54:57,022 |INFO [http-bio-8443-exec-160] c.g.h.service.GHXHeimdallSecurityAspect - user tfwapi@ghx.com (id=3206631) attempt to access com.ghx.testframework.api.rest.PerformanceMetricsRESTService.getPerformanceMetricsStatForNewrelic([Line Chart JVM Heap Stats, jvmdao, 2019-11-12T14:18:12.988Z, 2019-11-12T14:20:07.811Z, 2m, chart, All, 5dcabec2e309741040fa86da, null, null, null, null])
>>Inside getObjectStackMappedForNewrelic fromDate2019-11-12T14:18:12.988ZtoDate2019-11-12T14:20:07.811ZosIndexAliasNamedev-newrelic-heap-utilization_allosIndexNamedev-newrelic-heap-utilizationindexTypenullobjectNamehosttargetNameapplication
query>>>{"bool":{"must":{"match_all":{}},"filter":{"bool":{"must":[{"range":{"@timestamp":{"gte":"2019-11-12T14:18:12.988Z","lte":"2019-11-12T14:20:07.811Z"}}}],"must_not":[]}}}},"size":0,"sort": [{"@timestamp":{"order":"desc"}}],"aggs":{"output":{"terms":{"field":"host","size" : 1000},"aggs":{"inneroutput":{"terms":{"field":"application"}}}}}
Inside getSearchResultsFromES indexAliasNamedev-newrelic-heap-utilization_allindexName>>indexType>>nullquery>>{"bool":{"must":{"match_all":{}},"filter":{"bool":{"must":[{"range":{"@timestamp":{"gte":"2019-11-12T14:18:12.988Z","lte":"2019-11-12T14:20:07.811Z"}}}],"must_not":[]}}}},"size":0,"sort": [{"@timestamp":{"order":"desc"}}],"aggs":{"output":{"terms":{"field":"host","size" : 1000},"aggs":{"inneroutput":{"terms":{"field":"application"}}}}}
2019-11-12 14:54:57,022 |INFO [http-bio-8443-exec-160] c.g.t.a.s.impl.PerformanceMetricsServiceImpl - indexStr is dev-newrelic-heap-utilization
2019-11-12 14:54:57,022 |INFO [http-bio-8443-exec-160] c.g.t.a.s.impl.PerformanceMetricsServiceImpl - esquery is {"bool":{"must":{"match_all":{}},"filter":{"bool":{"must":[{"range":{"@timestamp":{"gte":"2019-11-12T14:18:12.988Z","lte":"2019-11-12T14:20:07.811Z"}}}],"must_not":[]}}}},"size":0,"sort": [{"@timestamp":{"order":"desc"}}],"aggs":{"output":{"terms":{"field":"host","size" : 1000},"aggs":{"inneroutput":{"terms":{"field":"application"}}}}}
>>>>>>>>>>>Our qury{"bool":{"must":{"match_all":{}},"filter":{"bool":{"must":[{"range":{"@timestamp":{"gte":"2019-11-12T14:18:12.988Z","lte":"2019-11-12T14:20:07.811Z"}}}],"must_not":[]}}}},"size":0,"sort": [{"@timestamp":{"order":"desc"}}],"aggs":{"output":{"terms":{"field":"host","size" : 1000},"aggs":{"inneroutput":{"terms":{"field":"application"}}}}}
2019-11-12 14:54:57,040 |INFO [http-bio-8443-exec-160] c.g.t.a.s.impl.PerformanceMetricsServiceImpl - searchResult.getResponseMetaData(): {TotalShards=5, SuccessShards=5, TotalRecords=12, ES_MAX_SCORE=0.0, FailedShards=0, TookTime=1}
searchResult.getResponseMetaData()>>>>{TotalShards=5, SuccessShards=5, TotalRecords=12, ES_MAX_SCORE=0.0, FailedShards=0, TookTime=1}
>>postQueryToEScom.ghx.common.search.model.SearchResult@27441d14
>>>Inside getSearchResultsFromES searchResultcom.ghx.common.search.model.SearchResult@27441d14
>>>Inside getSearchResultsFromES searchResult.getAggregations(){output={doc_count_error_upper_bound=0, sum_other_doc_count=0, buckets=[]}}
results{output={doc_count_error_upper_bound=0, sum_other_doc_count=0, buckets=[]}}
resultList[]
stackObjectMapList>>[]
????stackObjectMap{}
ipAddressStackMapped{}
chartNameLine Chart JVM Heap StatsfromDate2019-11-12T14:18:12.988ZtoDate2019-11-12T14:20:07.811Zinterval2mfilterType(application):All
query{"bool": {"must":{"match_all":{}},"filter":{"bool":{ "must" : [{"range" : {"@timestamp" : { "gte" : "2019-11-12T14:18:12.988Z","lte" : "2019-11-12T14:20:07.811Z"}}}],"must_not":[{ "range": { "total_used_mb": { "lte": 0 } } }]}}}},"size":0,"aggs" : {"output":{"date_histogram" : {"field" : "@timestamp","interval" :"2m","time_zone":"+05:30","min_doc_count":1,"extended_bounds":{"min":"2019-11-12T14:18:12.988Z","max":"2019-11-12T14:20:07.811Z"}},"aggs":{"items":{"terms":{"field":"hostname","size":100,"order":{"count":"desc"}},"aggs":{"count":{"avg":{"field":"total_used_mb"}}}}}}}
indexType>>>>>>>>>>>>>>>system
Inside getSearchResultsFromES indexAliasNamedev-newrelic-heap-utilization_allindexName>>indexType>>systemquery>>{"bool": {"must":{"match_all":{}},"filter":{"bool":{ "must" : [{"range" : {"@timestamp" : { "gte" : "2019-11-12T14:18:12.988Z","lte" : "2019-11-12T14:20:07.811Z"}}}],"must_not":[{ "range": { "total_used_mb": { "lte": 0 } } }]}}}},"size":0,"aggs" : {"output":{"date_histogram" : {"field" : "@timestamp","interval" :"2m","time_zone":"+05:30","min_doc_count":1,"extended_bounds":{"min":"2019-11-12T14:18:12.988Z","max":"2019-11-12T14:20:07.811Z"}},"aggs":{"items":{"terms":{"field":"hostname","size":100,"order":{"count":"desc"}},"aggs":{"count":{"avg":{"field":"total_used_mb"}}}}}}}
2019-11-12 14:54:57,040 |INFO [http-bio-8443-exec-160] c.g.t.a.s.impl.PerformanceMetricsServiceImpl - indexStr is dev-newrelic-heap-utilization/system
2019-11-12 14:54:57,040 |INFO [http-bio-8443-exec-160] c.g.t.a.s.impl.PerformanceMetricsServiceImpl - esquery is {"bool": {"must":{"match_all":{}},"filter":{"bool":{ "must" : [{"range" : {"@timestamp" : { "gte" : "2019-11-12T14:18:12.988Z","lte" : "2019-11-12T14:20:07.811Z"}}}],"must_not":[{ "range": { "total_used_mb": { "lte": 0 } } }]}}}},"size":0,"aggs" : {"output":{"date_histogram" : {"field" : "@timestamp","interval" :"2m","time_zone":"+05:30","min_doc_count":1,"extended_bounds":{"min":"2019-11-12T14:18:12.988Z","max":"2019-11-12T14:20:07.811Z"}},"aggs":{"items":{"terms":{"field":"hostname","size":100,"order":{"count":"desc"}},"aggs":{"count":{"avg":{"field":"total_used_mb"}}}}}}}
>>>>>>>>>>>Our qury{"bool": {"must":{"match_all":{}},"filter":{"bool":{ "must" : [{"range" : {"@timestamp" : { "gte" : "2019-11-12T14:18:12.988Z","lte" : "2019-11-12T14:20:07.811Z"}}}],"must_not":[{ "range": { "total_used_mb": { "lte": 0 } } }]}}}},"size":0,"aggs" : {"output":{"date_histogram" : {"field" : "@timestamp","interval" :"2m","time_zone":"+05:30","min_doc_count":1,"extended_bounds":{"min":"2019-11-12T14:18:12.988Z","max":"2019-11-12T14:20:07.811Z"}},"aggs":{"items":{"terms":{"field":"hostname","size":100,"order":{"count":"desc"}},"aggs":{"count":{"avg":{"field":"total_used_mb"}}}}}}}
2019-11-12 14:54:57,045 |INFO [http-bio-8443-exec-160] c.g.t.a.s.impl.PerformanceMetricsServiceImpl - searchResult.getResponseMetaData(): {TotalShards=5, SuccessShards=5, TotalRecords=11, ES_MAX_SCORE=0.0, FailedShards=0, TookTime=1}
searchResult.getResponseMetaData()>>>>{TotalShards=5, SuccessShards=5, TotalRecords=11, ES_MAX_SCORE=0.0, FailedShards=0, TookTime=1}
>>postQueryToEScom.ghx.common.search.model.SearchResult@567f4571
>>>Inside getSearchResultsFromES searchResultcom.ghx.common.search.model.SearchResult@567f4571
>>>Inside getSearchResultsFromES searchResult.getAggregations(){output={buckets=[{key_as_string=2019-11-12T19:48:00.000+05:30, key=1573568280000, doc_count=1, items={doc_count_error_upper_bound=0, sum_other_doc_count=0, buckets=[{key=10.31.37.188, doc_count=1, count={value=28400.0}}]}}, {key_as_string=2019-11-12T19:50:00.000+05:30, key=1573568400000, doc_count=10, items={doc_count_error_upper_bound=0, sum_other_doc_count=0, buckets=[{key=10.31.32.204, doc_count=1, count={value=30200.0}}, {key=10.31.61.133, doc_count=1, count={value=28100.0}}, {key=10.31.37.188, doc_count=1, count={value=25300.0}}, {key=10.31.35.120, doc_count=1, count={value=22000.0}}, {key=10.31.32.112, doc_count=1, count={value=16300.0}}, {key=10.31.34.157, doc_count=1, count={value=6410.0}}, {key=10.32.35.238, doc_count=1, count={value=3630.0}}, {key=10.32.33.18, doc_count=1, count={value=3150.0}}, {key=10.31.37.147, doc_count=1, count={value=2070.0}}, {key=10.31.34.92, doc_count=1, count={value=1560.0}}]}}]}}
results{output={buckets=[{key_as_string=2019-11-12T19:48:00.000+05:30, key=1573568280000, doc_count=1, items={doc_count_error_upper_bound=0, sum_other_doc_count=0, buckets=[{key=10.31.37.188, doc_count=1, count={value=28400.0}}]}}, {key_as_string=2019-11-12T19:50:00.000+05:30, key=1573568400000, doc_count=10, items={doc_count_error_upper_bound=0, sum_other_doc_count=0, buckets=[{key=10.31.32.204, doc_count=1, count={value=30200.0}}, {key=10.31.61.133, doc_count=1, count={value=28100.0}}, {key=10.31.37.188, doc_count=1, count={value=25300.0}}, {key=10.31.35.120, doc_count=1, count={value=22000.0}}, {key=10.31.32.112, doc_count=1, count={value=16300.0}}, {key=10.31.34.157, doc_count=1, count={value=6410.0}}, {key=10.32.35.238, doc_count=1, count={value=3630.0}}, {key=10.32.33.18, doc_count=1, count={value=3150.0}}, {key=10.31.37.147, doc_count=1, count={value=2070.0}}, {key=10.31.34.92, doc_count=1, count={value=1560.0}}]}}]}}
resultList[{key_as_string=2019-11-12T19:48:00.000+05:30, key=1573568280000, doc_count=1, items={doc_count_error_upper_bound=0, sum_other_doc_count=0, buckets=[{key=10.31.37.188, doc_count=1, count={value=28400.0}}]}}, {key_as_string=2019-11-12T19:50:00.000+05:30, key=1573568400000, doc_count=10, items={doc_count_error_upper_bound=0, sum_other_doc_count=0, buckets=[{key=10.31.32.204, doc_count=1, count={value=30200.0}}, {key=10.31.61.133, doc_count=1, count={value=28100.0}}, {key=10.31.37.188, doc_count=1, count={value=25300.0}}, {key=10.31.35.120, doc_count=1, count={value=22000.0}}, {key=10.31.32.112, doc_count=1, count={value=16300.0}}, {key=10.31.34.157, doc_count=1, count={value=6410.0}}, {key=10.32.35.238, doc_count=1, count={value=3630.0}}, {key=10.32.33.18, doc_count=1, count={value=3150.0}}, {key=10.31.37.147, doc_count=1, count={value=2070.0}}, {key=10.31.34.92, doc_count=1, count={value=1560.0}}]}}]
2019-11-12 14:54:57,045 |INFO [http-bio-8443-exec-160] c.g.t.a.s.impl.PerformanceMetricsServiceImpl - viewType: chart
2019-11-12 14:54:57,045 |INFO [http-bio-8443-exec-160] c.g.t.a.s.impl.PerformanceMetricsServiceImpl - Before Transformation ES resultList size: 2
resultList:[{key_as_string=2019-11-12T19:48:00.000+05:30, key=1573568280000, doc_count=1, items={doc_count_error_upper_bound=0, sum_other_doc_count=0, buckets=[{key=10.31.37.188, doc_count=1, count={value=28400.0}}]}}, {key_as_string=2019-11-12T19:50:00.000+05:30, key=1573568400000, doc_count=10, items={doc_count_error_upper_bound=0, sum_other_doc_count=0, buckets=[{key=10.31.32.204, doc_count=1, count={value=30200.0}}, {key=10.31.61.133, doc_count=1, count={value=28100.0}}, {key=10.31.37.188, doc_count=1, count={value=25300.0}}, {key=10.31.35.120, doc_count=1, count={value=22000.0}}, {key=10.31.32.112, doc_count=1, count={value=16300.0}}, {key=10.31.34.157, doc_count=1, count={value=6410.0}}, {key=10.32.35.238, doc_count=1, count={value=3630.0}}, {key=10.32.33.18, doc_count=1, count={value=3150.0}}, {key=10.31.37.147, doc_count=1, count={value=2070.0}}, {key=10.31.34.92, doc_count=1, count={value=1560.0}}]}}]
chartName:Line Chart JVM Heap Stats
viewType:chart
objectStackMapped:{}
indexAliasName:dev-newrelic-heap-utilization_all
indexName:dev-newrelic-heap-utilization
objectName:application
map.get(KEY) in 3rd if{time=1573568280000}
buketsMap>>>>>{doc_count_error_upper_bound=0, sum_other_doc_count=0, buckets=[{key=10.31.37.188, doc_count=1, count={value=28400.0}}]}
After processBucketList>>>>>
valuesList >>>>>[{10.31.37.188=28400.0, time=1573568280000}]
map.get(KEY) in 3rd if{time=1573568400000}
buketsMap>>>>>{doc_count_error_upper_bound=0, sum_other_doc_count=0, buckets=[{key=10.31.32.204, doc_count=1, count={value=30200.0}}, {key=10.31.61.133, doc_count=1, count={value=28100.0}}, {key=10.31.37.188, doc_count=1, count={value=25300.0}}, {key=10.31.35.120, doc_count=1, count={value=22000.0}}, {key=10.31.32.112, doc_count=1, count={value=16300.0}}, {key=10.31.34.157, doc_count=1, count={value=6410.0}}, {key=10.32.35.238, doc_count=1, count={value=3630.0}}, {key=10.32.33.18, doc_count=1, count={value=3150.0}}, {key=10.31.37.147, doc_count=1, count={value=2070.0}}, {key=10.31.34.92, doc_count=1, count={value=1560.0}}]}
After processBucketList>>>>>
valuesList >>>>>[{10.31.37.188=28400.0, time=1573568280000}, {10.31.35.120=22000.0, 10.31.61.133=28100.0, 10.31.32.204=30200.0, 10.32.33.18=3150.0, 10.31.32.112=16300.0, 10.31.37.147=2070.0, 10.31.37.188=25300.0, time=1573568400000, 10.32.35.238=3630.0, 10.31.34.157=6410.0, 10.31.34.92=1560.0}]
transformedESMap >>>>>{data=[{10.31.37.188=28400.0, time=1573568280000}, {10.31.35.120=22000.0, 10.31.61.133=28100.0, 10.31.32.204=30200.0, 10.32.33.18=3150.0, 10.31.32.112=16300.0, 10.31.37.147=2070.0, 10.31.37.188=25300.0, time=1573568400000, 10.32.35.238=3630.0, 10.31.34.157=6410.0, 10.31.34.92=1560.0}]}
transformedESMap after adding Data and key>>>>>{data=[{10.31.37.188=28400.0, time=1573568280000}, {10.31.35.120=22000.0, 10.31.61.133=28100.0, 10.31.32.204=30200.0, 10.32.33.18=3150.0, 10.31.32.112=16300.0, 10.31.37.147=2070.0, 10.31.37.188=25300.0, time=1573568400000, 10.32.35.238=3630.0, 10.31.34.157=6410.0, 10.31.34.92=1560.0}], keys=[10.31.37.188, 10.31.32.204, 10.31.61.133, 10.31.35.120, 10.31.32.112, 10.31.34.157, 10.32.35.238, 10.32.33.18, 10.31.37.147, 10.31.34.92]}
Inside getSearchResultsFromES indexAliasNamedev-newrelic-heap-utilization_allindexName>>indexType>>nullquery>> { "match_all":{} },"size":0, "aggs":{ "output":{ "terms":{ "field":"application" } } }
2019-11-12 14:54:57,045 |INFO [http-bio-8443-exec-160] c.g.t.a.s.impl.PerformanceMetricsServiceImpl - indexStr is dev-newrelic-heap-utilization
2019-11-12 14:54:57,045 |INFO [http-bio-8443-exec-160] c.g.t.a.s.impl.PerformanceMetricsServiceImpl - esquery is { "match_all":{} },"size":0, "aggs":{ "output":{ "terms":{ "field":"application" } } }
>>>>>>>>>>>Our qury { "match_all":{} },"size":0, "aggs":{ "output":{ "terms":{ "field":"application" } } }
2019-11-12 14:54:57,049 |INFO [http-bio-8443-exec-160] c.g.t.a.s.impl.PerformanceMetricsServiceImpl - searchResult.getResponseMetaData(): {TotalShards=5, SuccessShards=5, TotalRecords=285, ES_MAX_SCORE=0.0, FailedShards=0, TookTime=1}
searchResult.getResponseMetaData()>>>>{TotalShards=5, SuccessShards=5, TotalRecords=285, ES_MAX_SCORE=0.0, FailedShards=0, TookTime=1}
>>postQueryToEScom.ghx.common.search.model.SearchResult@17ef9a68
>>>Inside getSearchResultsFromES searchResultcom.ghx.common.search.model.SearchResult@17ef9a68
>>>Inside getSearchResultsFromES searchResult.getAggregations(){output={doc_count_error_upper_bound=0, sum_other_doc_count=0, buckets=[{key=connectplus-api-DEVINT, doc_count=66}, {key=connectplus-api-DEV, doc_count=41}, {key=DEV-data-poller, doc_count=34}, {key=DEV-processing-engine, doc_count=34}, {key=DEV-io-engine, doc_count=33}, {key=DEV-jobs, doc_count=33}, {key=connectplus-fleet-DEV, doc_count=22}, {key=connectplus-fleet-DEVINT, doc_count=22}]}}
results{output={doc_count_error_upper_bound=0, sum_other_doc_count=0, buckets=[{key=connectplus-api-DEVINT, doc_count=66}, {key=connectplus-api-DEV, doc_count=41}, {key=DEV-data-poller, doc_count=34}, {key=DEV-processing-engine, doc_count=34}, {key=DEV-io-engine, doc_count=33}, {key=DEV-jobs, doc_count=33}, {key=connectplus-fleet-DEV, doc_count=22}, {key=connectplus-fleet-DEVINT, doc_count=22}]}}
resultList[{key=connectplus-api-DEVINT, doc_count=66}, {key=connectplus-api-DEV, doc_count=41}, {key=DEV-data-poller, doc_count=34}, {key=DEV-processing-engine, doc_count=34}, {key=DEV-io-engine, doc_count=33}, {key=DEV-jobs, doc_count=33}, {key=connectplus-fleet-DEV, doc_count=22}, {key=connectplus-fleet-DEVINT, doc_count=22}]
2019-11-12 14:54:57,049 |INFO [http-bio-8443-exec-160] c.g.t.a.s.impl.PerformanceMetricsServiceImpl - Transformed Elastic Search Map size: 3
elasticSearchResultsTransformation:::::::::{data=[{10.31.37.188=28400.0, time=1573568280000}, {10.31.35.120=22000.0, 10.31.61.133=28100.0, 10.31.32.204=30200.0, 10.32.33.18=3150.0, 10.31.32.112=16300.0, 10.31.37.147=2070.0, 10.31.37.188=25300.0, time=1573568400000, 10.32.35.238=3630.0, 10.31.34.157=6410.0, 10.31.34.92=1560.0}], keys=[10.31.37.188, 10.31.32.204, 10.31.61.133, 10.31.35.120, 10.31.32.112, 10.31.34.157, 10.32.35.238, 10.32.33.18, 10.31.37.147, 10.31.34.92], groupByItems={DEV-io-engine=DEV-io-engine, DEV-jobs=DEV-jobs, DEV-data-poller=DEV-data-poller, connectplus-fleet-DEVINT=connectplus-fleet-DEVINT, connectplus-api-DEV=connectplus-api-DEV, connectplus-fleet-DEV=connectplus-fleet-DEV, connectplus-api-DEVINT=connectplus-api-DEVINT, DEV-processing-engine=DEV-processing-engine}}
Inside getSearchResultsFromES indexAliasNamedev-newrelic-heap-utilization_allindexName>>indexType>>systemquery>>{"bool": {"must":{"match_all":{}},"filter":{"bool":{ "must" : [{"range" : {"@timestamp" : { "gte" : "2019-11-12T14:18:12.988Z","lte" : "2019-11-12T14:20:07.811Z"}}}],"must_not":[{ "range": { "total_used_mb": { "lte": 0 } } }]}}}},"size":0,"aggs" : {"output":{"date_histogram" : {"field" : "@timestamp","interval" :"2m","time_zone":"+05:30","min_doc_count":1,"extended_bounds":{"min":"2019-11-12T14:18:12.988Z","max":"2019-11-12T14:20:07.811Z"}},"aggs":{"items":{"terms":{"field":"hostname","size":100,"order":{"count":"desc"}},"aggs":{"count":{"avg":{"field":"total_used_mb"}}}}}}}
2019-11-12 14:54:57,049 |INFO [http-bio-8443-exec-160] c.g.t.a.s.impl.PerformanceMetricsServiceImpl - indexStr is dev-newrelic-heap-utilization/system
2019-11-12 14:54:57,049 |INFO [http-bio-8443-exec-160] c.g.t.a.s.impl.PerformanceMetricsServiceImpl - esquery is {"bool": {"must":{"match_all":{}},"filter":{"bool":{ "must" : [{"range" : {"@timestamp" : { "gte" : "2019-11-12T14:18:12.988Z","lte" : "2019-11-12T14:20:07.811Z"}}}],"must_not":[{ "range": { "total_used_mb": { "lte": 0 } } }]}}}},"size":0,"aggs" : {"output":{"date_histogram" : {"field" : "@timestamp","interval" :"2m","time_zone":"+05:30","min_doc_count":1,"extended_bounds":{"min":"2019-11-12T14:18:12.988Z","max":"2019-11-12T14:20:07.811Z"}},"aggs":{"items":{"terms":{"field":"hostname","size":100,"order":{"count":"desc"}},"aggs":{"count":{"avg":{"field":"total_used_mb"}}}}}}}
>>>>>>>>>>>Our qury{"bool": {"must":{"match_all":{}},"filter":{"bool":{ "must" : [{"range" : {"@timestamp" : { "gte" : "2019-11-12T14:18:12.988Z","lte" : "2019-11-12T14:20:07.811Z"}}}],"must_not":[{ "range": { "total_used_mb": { "lte": 0 } } }]}}}},"size":0,"aggs" : {"output":{"date_histogram" : {"field" : "@timestamp","interval" :"2m","time_zone":"+05:30","min_doc_count":1,"extended_bounds":{"min":"2019-11-12T14:18:12.988Z","max":"2019-11-12T14:20:07.811Z"}},"aggs":{"items":{"terms":{"field":"hostname","size":100,"order":{"count":"desc"}},"aggs":{"count":{"avg":{"field":"total_used_mb"}}}}}}}
2019-11-12 14:54:57,053 |INFO [http-bio-8443-exec-160] c.g.t.a.s.impl.PerformanceMetricsServiceImpl - searchResult.getResponseMetaData(): {TotalShards=5, SuccessShards=5, TotalRecords=11, ES_MAX_SCORE=0.0, FailedShards=0, TookTime=1}
searchResult.getResponseMetaData()>>>>{TotalShards=5, SuccessShards=5, TotalRecords=11, ES_MAX_SCORE=0.0, FailedShards=0, TookTime=1}
>>postQueryToEScom.ghx.common.search.model.SearchResult@4b4be1b6
>>>Inside getSearchResultsFromES searchResultcom.ghx.common.search.model.SearchResult@4b4be1b6
>>>Inside getSearchResultsFromES searchResult.getAggregations(){output={buckets=[{key_as_string=2019-11-12T19:48:00.000+05:30, key=1573568280000, doc_count=1, items={doc_count_error_upper_bound=0, sum_other_doc_count=0, buckets=[{key=10.31.37.188, doc_count=1, count={value=28400.0}}]}}, {key_as_string=2019-11-12T19:50:00.000+05:30, key=1573568400000, doc_count=10, items={doc_count_error_upper_bound=0, sum_other_doc_count=0, buckets=[{key=10.31.32.204, doc_count=1, count={value=30200.0}}, {key=10.31.61.133, doc_count=1, count={value=28100.0}}, {key=10.31.37.188, doc_count=1, count={value=25300.0}}, {key=10.31.35.120, doc_count=1, count={value=22000.0}}, {key=10.31.32.112, doc_count=1, count={value=16300.0}}, {key=10.31.34.157, doc_count=1, count={value=6410.0}}, {key=10.32.35.238, doc_count=1, count={value=3630.0}}, {key=10.32.33.18, doc_count=1, count={value=3150.0}}, {key=10.31.37.147, doc_count=1, count={value=2070.0}}, {key=10.31.34.92, doc_count=1, count={value=1560.0}}]}}]}}
results{output={buckets=[{key_as_string=2019-11-12T19:48:00.000+05:30, key=1573568280000, doc_count=1, items={doc_count_error_upper_bound=0, sum_other_doc_count=0, buckets=[{key=10.31.37.188, doc_count=1, count={value=28400.0}}]}}, {key_as_string=2019-11-12T19:50:00.000+05:30, key=1573568400000, doc_count=10, items={doc_count_error_upper_bound=0, sum_other_doc_count=0, buckets=[{key=10.31.32.204, doc_count=1, count={value=30200.0}}, {key=10.31.61.133, doc_count=1, count={value=28100.0}}, {key=10.31.37.188, doc_count=1, count={value=25300.0}}, {key=10.31.35.120, doc_count=1, count={value=22000.0}}, {key=10.31.32.112, doc_count=1, count={value=16300.0}}, {key=10.31.34.157, doc_count=1, count={value=6410.0}}, {key=10.32.35.238, doc_count=1, count={value=3630.0}}, {key=10.32.33.18, doc_count=1, count={value=3150.0}}, {key=10.31.37.147, doc_count=1, count={value=2070.0}}, {key=10.31.34.92, doc_count=1, count={value=1560.0}}]}}]}}
resultList[{key_as_string=2019-11-12T19:48:00.000+05:30, key=1573568280000, doc_count=1, items={doc_count_error_upper_bound=0, sum_other_doc_count=0, buckets=[{key=10.31.37.188, doc_count=1, count={value=28400.0}}]}}, {key_as_string=2019-11-12T19:50:00.000+05:30, key=1573568400000, doc_count=10, items={doc_count_error_upper_bound=0, sum_other_doc_count=0, buckets=[{key=10.31.32.204, doc_count=1, count={value=30200.0}}, {key=10.31.61.133, doc_count=1, count={value=28100.0}}, {key=10.31.37.188, doc_count=1, count={value=25300.0}}, {key=10.31.35.120, doc_count=1, count={value=22000.0}}, {key=10.31.32.112, doc_count=1, count={value=16300.0}}, {key=10.31.34.157, doc_count=1, count={value=6410.0}}, {key=10.32.35.238, doc_count=1, count={value=3630.0}}, {key=10.32.33.18, doc_count=1, count={value=3150.0}}, {key=10.31.37.147, doc_count=1, count={value=2070.0}}, {key=10.31.34.92, doc_count=1, count={value=1560.0}}]}}]
2019-11-12 14:54:57,053 |INFO [http-bio-8443-exec-160] c.g.t.a.s.impl.PerformanceMetricsServiceImpl - viewType: chart
2019-11-12 14:54:57,053 |INFO [http-bio-8443-exec-160] c.g.t.a.s.impl.PerformanceMetricsServiceImpl - Before Transformation ES resultList size: 2
resultList:[{key_as_string=2019-11-12T19:48:00.000+05:30, key=1573568280000, doc_count=1, items={doc_count_error_upper_bound=0, sum_other_doc_count=0, buckets=[{key=10.31.37.188, doc_count=1, count={value=28400.0}}]}}, {key_as_string=2019-11-12T19:50:00.000+05:30, key=1573568400000, doc_count=10, items={doc_count_error_upper_bound=0, sum_other_doc_count=0, buckets=[{key=10.31.32.204, doc_count=1, count={value=30200.0}}, {key=10.31.61.133, doc_count=1, count={value=28100.0}}, {key=10.31.37.188, doc_count=1, count={value=25300.0}}, {key=10.31.35.120, doc_count=1, count={value=22000.0}}, {key=10.31.32.112, doc_count=1, count={value=16300.0}}, {key=10.31.34.157, doc_count=1, count={value=6410.0}}, {key=10.32.35.238, doc_count=1, count={value=3630.0}}, {key=10.32.33.18, doc_count=1, count={value=3150.0}}, {key=10.31.37.147, doc_count=1, count={value=2070.0}}, {key=10.31.34.92, doc_count=1, count={value=1560.0}}]}}]
chartName:Line Chart JVM Heap Stats
viewType:chart
objectStackMapped:{}
indexAliasName:dev-newrelic-heap-utilization_all
indexName:dev-newrelic-heap-utilization
objectName:application
map.get(KEY) in 3rd if{time=1573568280000}
buketsMap>>>>>{doc_count_error_upper_bound=0, sum_other_doc_count=0, buckets=[{key=10.31.37.188, doc_count=1, count={value=28400.0}}]}
After processBucketList>>>>>
valuesList >>>>>[{10.31.37.188=28400.0, time=1573568280000}]
map.get(KEY) in 3rd if{time=1573568400000}
buketsMap>>>>>{doc_count_error_upper_bound=0, sum_other_doc_count=0, buckets=[{key=10.31.32.204, doc_count=1, count={value=30200.0}}, {key=10.31.61.133, doc_count=1, count={value=28100.0}}, {key=10.31.37.188, doc_count=1, count={value=25300.0}}, {key=10.31.35.120, doc_count=1, count={value=22000.0}}, {key=10.31.32.112, doc_count=1, count={value=16300.0}}, {key=10.31.34.157, doc_count=1, count={value=6410.0}}, {key=10.32.35.238, doc_count=1, count={value=3630.0}}, {key=10.32.33.18, doc_count=1, count={value=3150.0}}, {key=10.31.37.147, doc_count=1, count={value=2070.0}}, {key=10.31.34.92, doc_count=1, count={value=1560.0}}]}
After processBucketList>>>>>
valuesList >>>>>[{10.31.37.188=28400.0, time=1573568280000}, {10.31.35.120=22000.0, 10.31.61.133=28100.0, 10.31.32.204=30200.0, 10.32.33.18=3150.0, 10.31.32.112=16300.0, 10.31.37.147=2070.0, 10.31.37.188=25300.0, time=1573568400000, 10.32.35.238=3630.0, 10.31.34.157=6410.0, 10.31.34.92=1560.0}]
transformedESMap >>>>>{data=[{10.31.37.188=28400.0, time=1573568280000}, {10.31.35.120=22000.0, 10.31.61.133=28100.0, 10.31.32.204=30200.0, 10.32.33.18=3150.0, 10.31.32.112=16300.0, 10.31.37.147=2070.0, 10.31.37.188=25300.0, time=1573568400000, 10.32.35.238=3630.0, 10.31.34.157=6410.0, 10.31.34.92=1560.0}]}
transformedESMap after adding Data and key>>>>>{data=[{10.31.37.188=28400.0, time=1573568280000}, {10.31.35.120=22000.0, 10.31.61.133=28100.0, 10.31.32.204=30200.0, 10.32.33.18=3150.0, 10.31.32.112=16300.0, 10.31.37.147=2070.0, 10.31.37.188=25300.0, time=1573568400000, 10.32.35.238=3630.0, 10.31.34.157=6410.0, 10.31.34.92=1560.0}], keys=[10.31.37.188, 10.31.32.204, 10.31.61.133, 10.31.35.120, 10.31.32.112, 10.31.34.157, 10.32.35.238, 10.32.33.18, 10.31.37.147, 10.31.34.92]}
Inside getSearchResultsFromES indexAliasNamedev-newrelic-heap-utilization_allindexName>>indexType>>nullquery>> { "match_all":{} },"size":0, "aggs":{ "output":{ "terms":{ "field":"application" } } }
2019-11-12 14:54:57,053 |INFO [http-bio-8443-exec-160] c.g.t.a.s.impl.PerformanceMetricsServiceImpl - indexStr is dev-newrelic-heap-utilization
2019-11-12 14:54:57,053 |INFO [http-bio-8443-exec-160] c.g.t.a.s.impl.PerformanceMetricsServiceImpl - esquery is { "match_all":{} },"size":0, "aggs":{ "output":{ "terms":{ "field":"application" } } }
>>>>>>>>>>>Our qury { "match_all":{} },"size":0, "aggs":{ "output":{ "terms":{ "field":"application" } } }
2019-11-12 14:54:57,056 |INFO [http-bio-8443-exec-160] c.g.t.a.s.impl.PerformanceMetricsServiceImpl - searchResult.getResponseMetaData(): {TotalShards=5, SuccessShards=5, TotalRecords=285, ES_MAX_SCORE=0.0, FailedShards=0, TookTime=1}
searchResult.getResponseMetaData()>>>>{TotalShards=5, SuccessShards=5, TotalRecords=285, ES_MAX_SCORE=0.0, FailedShards=0, TookTime=1}
>>postQueryToEScom.ghx.common.search.model.SearchResult@67b37163
>>>Inside getSearchResultsFromES searchResultcom.ghx.common.search.model.SearchResult@67b37163
>>>Inside getSearchResultsFromES searchResult.getAggregations(){output={doc_count_error_upper_bound=0, sum_other_doc_count=0, buckets=[{key=connectplus-api-DEVINT, doc_count=66}, {key=connectplus-api-DEV, doc_count=41}, {key=DEV-data-poller, doc_count=34}, {key=DEV-processing-engine, doc_count=34}, {key=DEV-io-engine, doc_count=33}, {key=DEV-jobs, doc_count=33}, {key=connectplus-fleet-DEV, doc_count=22}, {key=connectplus-fleet-DEVINT, doc_count=22}]}}
results{output={doc_count_error_upper_bound=0, sum_other_doc_count=0, buckets=[{key=connectplus-api-DEVINT, doc_count=66}, {key=connectplus-api-DEV, doc_count=41}, {key=DEV-data-poller, doc_count=34}, {key=DEV-processing-engine, doc_count=34}, {key=DEV-io-engine, doc_count=33}, {key=DEV-jobs, doc_count=33}, {key=connectplus-fleet-DEV, doc_count=22}, {key=connectplus-fleet-DEVINT, doc_count=22}]}}
resultList[{key=connectplus-api-DEVINT, doc_count=66}, {key=connectplus-api-DEV, doc_count=41}, {key=DEV-data-poller, doc_count=34}, {key=DEV-processing-engine, doc_count=34}, {key=DEV-io-engine, doc_count=33}, {key=DEV-jobs, doc_count=33}, {key=connectplus-fleet-DEV, doc_count=22}, {key=connectplus-fleet-DEVINT, doc_count=22}]
2019-11-12 14:54:57,057 |INFO [http-bio-8443-exec-160] c.g.t.a.s.impl.PerformanceMetricsServiceImpl - Transformed Elastic Search Map size: 3
2019-11-12 14:54:57,057 |INFO [http-bio-8443-exec-160] c.g.h.service.GHXHeimdallSecurityAspect - Access to com.ghx.testframework.api.rest.PerformanceMetricsRESTService granted to getPerformanceMetricsStatForNewrelic.[Line Chart JVM Heap Stats, jvmdao, 2019-11-12T14:18:12.988Z, 2019-11-12T14:20:07.811Z, 2m, chart, All, 5dcabec2e309741040fa86da, null, null, null, null](user tfwapi@ghx.com (id=3206631))
2019-11-12 14:55:04,901 |INFO [http-bio-8443-exec-129] com.ghx.web.filter.security.CRLFFilter - Url :
2019-11-12 14:55:04,901 |INFO [http-bio-8443-exec-129] com.ghx.web.filter.security.CRLFFilter - CRLF enabled true
2019-11-12 14:55:04,902 |INFO [http-bio-8443-exec-129] com.ghx.tpm.GHXTpmSecurityAspect - user spkannan (id=3186733) attempt to access com.ghx.tpm.rest.system.monitoring.SystemStatusRESTService.stoppedAndThrottled([])
2019-11-12 14:55:04,903 |INFO [http-bio-8443-exec-129] com.ghx.tpm.GHXTpmSecurityAspect - user spkannan (id=3186733) attempt to access com.ghx.tpm.rest.system.monitoring.cache.ComponentAndAdapterStatusMonitoringConfigCacheImpl.getCacheNameKey([])
2019-11-12 14:55:04,903 |INFO [http-bio-8443-exec-129] com.ghx.tpm.GHXTpmSecurityAspect - Access to com.ghx.tpm.rest.system.monitoring.cache.ComponentAndAdapterStatusMonitoringConfigCacheImpl granted to getCacheNameKey.[](user spkannan (id=3186733))
2019-11-12 14:55:04,903 |INFO [http-bio-8443-exec-129] com.ghx.tpm.GHXTpmSecurityAspect - user spkannan (id=3186733) attempt to access com.ghx.tpm.rest.system.monitoring.cache.ComponentAndAdapterStatusMonitoringConfigCacheImpl.get([componentAndAdapterStatusCache, com.ghx.tpm.rest.system.monitoring.SystemStatusRESTService$$Lambda$795/1382351673@3dfb6724])
2019-11-12 14:55:04,907 |INFO [http-bio-8443-exec-129] com.ghx.tpm.GHXTpmSecurityAspect - user spkannan (id=3186733) attempt to access com.ghx.tpm.rest.system.monitoring.ComponentAdapterReportingServiceImpl.getCurrentComponentAndAdapterStatusReport([com.ghx.system.monitoring.model.dto.StoppedListenersDto@1e341e62])
2019-11-12 14:55:04,908 |INFO [http-bio-8443-exec-129] com.ghx.tpm.GHXTpmSecurityAspect - Acce
***********************************************************************************
***********************************************************************************
***********************************************************************************
___________________________________________________________________________________________________
__________________________________________________________________________________
_____________________________________________________________________________________________________
___________________________________________________________________________________
got to target of the project and check site folder and open coburtura and click index.html you will get UI of code coverage. you can also get code coverage with eclipse and some junit plugins.
Comments
Post a Comment