This App automatically populates Kinetic Gateway info into Elasticsearch and Kibana for easy to use, API driven, EdgeCompute/Gateway telemetry. Allows you to monitor all vital information out of your gateways and even see mapped out gps location of gateways if enabled.
Setup: The instructions here are used to help you get up and running quickly with the use of docker compose.
If you have the above prerequisites this should be quite easy to start up.
Open a terminal or commmand prompt
In your terminal / command prompt window use git clone https://github.com/CiscoDevNet/gmm-gw-data-collect to download this code repo from github.
In your terminal / command prompt window change directories into your repository cd gmm-gw-data-collect
retrieve an org ID from the Kinetic site
The easiest way to get this done is to login in to the Kinetic cloud site (https://us.ciscokinetic.io), selecting an org and grabbing the org ID from the end of the URL https://us.ciscokinetic.io/organizations/<orgId>. We will use the org ID collected for the next steps of the configuration file.
In the gmm-gw-data-collect directory,open the docker-compose.yml file in your favorite text editor.
Edit lines 34, 35, and 36 of the docker-compose.yml file to reflect your login e-mail, login password, and org ID from your Kinetic account.
KINETIC_USER_EMAIL: user@email.com KINETIC_USER_PASS: somepass KINETIC_ORG_ID: 0000
If you do not edit these values to your correct login information, the app will be unable to populate the dashboard correctly.
Optionally: If you are more familiar with Elasticsearch and Kibana and you don't want use the prebuilt dashboard, you can also edit line 44 of the docker-compose.yml file to a value of "no".
This application defaults to using us.ciscokinetic.io for API calls for US based users. However, if you are using Kinetic in europe you will need to edit one more line on your docker-compose.yml file to use this app appropriately.
docker-compose.yml file change the value to match the correct Kinetic URL.From
KINETIC_URL: us.ciscokinetic.io
To
KINETIC_URL: eu.ciscokinetic.io
Save your changes to the docker-compose.yml file and exit your text editor.
In your terminal window, issue the following commands to start the application.
docker-compose -f docker-compose.yml up -d
You should see the following output
Creating network "gmm-gw-data-collect_elk" with driver "bridge" Creating gmm-gw-data-collect_elasticsearch_1 ... done Creating gmm-gw-data-collect_kibana_1 ... done Creating gmm-gw-data-collect_gmm_stats_1 ... done
Note: Your exact Kibana URL address might be different if you are running this on a remote dev environment or if you have a specific setup for docker on your desktop that could be different from standard.
If the below image looks like your response to the website, it might take a minute or two more for the server to be ready. Refresh in a few minutes before it comes up.
Click the refresh button a few times if your data has not loaded yet.
If No results show up after a few minutes, inspect the docker-compose.yml file to make sure your login information is correct, execute the
docker-compose -f docker-compose.yml downcommand and thendocker-compose -f docker-compose.yml up -dto restart.
Once you are showing the the database has hits you can view the prebuilt dashboard.
You may not seen any gateways on your map if GPS is not enabled.
Also, you can add visualizations and build your own dashboards with your gateway data now that it is being collected in Elasticsearch and accessible through Kibana.
Your dashboard will look similar but not exactly like the image below.
If you find any problems, please raise an issue in GitHub so that we might be able to help you.
If you wish to contribute code or updates to this repo, please...
This repo is using a standard MIT License which is available in the license file.
This App automatically populates Kinetic Gateway info into Elasticsearch and Kibana for easy to use, API driven, Edge Compute/Gateway telemetry. Allows you to monitor all vital information from your gateways and even see mapped out GPS location of the gateways, if enabled.
Setup: The instructions here are used to help you get up and running quickly with the use of docker compose on your desktop or dev-environment.
Prereqs for using this Automation:
Code Exchange Community
Get help, share code, and collaborate with other developers in the Code Exchange community.View Community