Sonario
Overview
Sonario is a monitoring tool. Click here to read more about Sonario.
If you want to try Onteon with Sonario, go to download page and download the docker
compose file with Sonario monitoring tool. Then go to directory with docker compose file and
execute docker-compose up
. After this, execute docker-compose run --rm onteoncli
, this should run container with
preinstalled OnteonCLI and demo applications.
Click here if you want to install Sonario Server in your OS.
Applications
Before checking the monitoring, you can run a few applications to sends some monitoring and logging data. You can use demo applications and distributions, that can be found in OnteonCLI docker image.
Run onteoncli login --cluster-url http://onteoncc-master:8050
and accept code in your browser to login to Onteon
Control Center.
root@289c2a3930ab:/opt/onteon# onteoncli login --cluster-url http://onteoncc-master:8050
Your code: XIbw-tskm
Trying to open URL ('http://localhost:8050/onteon-auth-access/oauth_20/device?code=XIbw-tskm') in browser...
Cannot run default browser. Please visit this URL and continue authorization: http://localhost:8050/onteon-auth-access/oauth_20/device?code=XIbw-tskm
loggedIn: true
Run:
onteoncli application-registry upload applications/onteon-demo-app-cookbook-native-1.2.1.tar.gz
onteoncli application-registry upload applications/onteon-demo-app-fridge-docker-1.1.1.tar.gz
to upload some applications.
root@289c2a3930ab:/opt/onteon# onteoncli application-registry upload applications/onteon-demo-app-cookbook-native-1.2.1.tar.gz
Starting upload session...
Sending part no 0...
Sending part no 1...
Sending part no 2...
Sending part no 3...
Sending part no 4...
Sending part no 5...
Sending part no 6...
Sending part no 7...
Sending part no 8...
Finishing upload session...
uploaded: true
root@289c2a3930ab:/opt/onteon# onteoncli application-registry upload applications/onteon-demo-app-fridge-docker-1.1.1.tar.gz
Starting upload session...
Sending part no 0...
Finishing upload session...
uploaded: true
root@289c2a3930ab:/opt/onteon# onteoncli application list
id createdAt updatedAt name version type processType
620b9695b035d738ce1dd977 2022-02-15T12:03:33.661Z 2022-02-15T12:03:33.661Z onteon-demo-app-fridge-docker 1.1.1 standard docker
620b9694b035d738ce1dd976 2022-02-15T12:03:32.829Z 2022-02-15T12:03:32.829Z onteon-demo-app-cookbook-native 1.2.1 standard native
Run:
onteoncli distribution create-from-file distributions/cookbook-distribution.yml
onteoncli distribution create-from-file distributions/fridge-distribution.yml
to create some application instances.
root@289c2a3930ab:/opt/onteon# onteoncli distribution create-from-file distributions/cookbook-distribution.yml
id: 620b9739b035d738ce1dda18
createdAT: 2022-02-15T12:06:17.11Z
updatedAt: 2022-02-15T12:06:17.11Z
applicationId: 620b9694b035d738ce1dd976
numberOfInstances: 2
type: total
checkIfNodeCanAcceptNewApplicationInstanceScriptId: 620b9531b035d738ce1dd809
selectNodeForNewApplicationInstanceScriptId: 620b9531b035d738ce1dd805
selectApplicationInstanceToRemoveScriptId: 620b9531b035d738ce1dd807
root@289c2a3930ab:/opt/onteon# onteoncli distribution create-from-file distributions/fridge-distribution.yml
id: 620b973ab035d738ce1dda19
createdAT: 2022-02-15T12:06:18.424Z
updatedAt: 2022-02-15T12:06:18.424Z
applicationId: 620b9695b035d738ce1dd977
numberOfInstances: 2
type: total
checkIfNodeCanAcceptNewApplicationInstanceScriptId: 620b9531b035d738ce1dd809
selectNodeForNewApplicationInstanceScriptId: 620b9531b035d738ce1dd805
selectApplicationInstanceToRemoveScriptId: 620b9531b035d738ce1dd807
# Wait a minute
root@289c2a3930ab:/opt/onteon# onteoncli application-instance list
id createdAt applicationName applicationVersion applicationType applicationId nodeId statuscreated
4f1c33d66a4107fcb7757df8 2022-02-15T12:07:44.344Z onteon-demo-app-cookbook-native 1.2.1 standard 620b9694b035d738ce1dd976 3cc297c95da1c600290b289e running
b1bbd68a2f528d131783bf66 2022-02-15T12:07:43.38Z onteon-demo-app-cookbook-native 1.2.1 standard 620b9694b035d738ce1dd976 50c74f19190d1c8cd70c0179 running
825b0f02906d72681965f902 2022-02-15T12:06:56.95Z onteon-demo-app-fridge-docker 1.1.1 standard 620b9695b035d738ce1dd977 3cc297c95da1c600290b289e running
a28482267457c7a9f6e213b4 2022-02-15T12:06:23.523Z onteon-demo-app-fridge-docker 1.1.1 standard 620b9695b035d738ce1dd977 50c74f19190d1c8cd70c0179 running
34883fe24e4dbf657bea9a36 2022-02-15T11:57:53.47Z nginx-edge 1.0.0 embedded 61bfa57ef284b468a4bc492e 50c74f19190d1c8cd70c0179 running
f7eadbf215ca05a3a3e25bc6 2022-02-15T11:57:53.466Z nginx-edge 1.0.0 embedded 61bfa57ef284b468a4bc492e 3cc297c95da1c600290b289e running
a52d1f195ca72c8e7e6e8d7e 2022-02-15T11:57:52.282Z sonario-metricbeat 1.1.1 embedded d76644da3ea59f8f73b74351 50c74f19190d1c8cd70c0179 running
40e58aa36d8b88d5669e55a8 2022-02-15T11:57:52.28Z sonario-metricbeat 1.1.1 embedded d76644da3ea59f8f73b74351 3cc297c95da1c600290b289e running
bba360741e2edb29d324518c 2022-02-15T11:57:50.741Z nginx-inner 1.0.0 embedded 44a4cfbae99d57756fcf3da4 3cc297c95da1c600290b289e running
Monitoring Dashboards
Go to http://localhost:8100/sonario-kibana/app/home#/ and then go to 'Onteon Cluster' dashboard by typing 'Onteon Cluster' in search bar.
Onteon Cluster Dashboard
Onteon Cluster Dashboard contains basic information about Onteon Cluster such as: nodes, applications or resources usage.
Now click on one of the node id, to go to Node Dashboard.
Node Dashboard
Node Dashboard contains information about application instances located in node and node's resources usage.
Now click on one of the application instance id, to go to Application Instance Dashboard.
Application Instance Dashboard
Application Instance Dashboard contains basic information about application instance.
Now click on application id, to go to Application Dashboard.
Application Dashboard
Application Dashboard contains list of application's instances and basic information about application.
Logs
Go to http://localhost:8100/sonario-kibana/app/home#/ and then go to 'Discover' by typing 'Discover' in search bar. Then select 'onteon-logs*' index pattern. Here you can see logs from nodes and application instances.