Enabling the Insight Module
The Insight module allows you to collect statistics from the devices that are managed by AppViewX. Also, it displays historical statistics on demand for users.
Install Insight for Statistics Collection
To install Insight for statistics collection:
- Open the terminal and navigate to
/home/appviewx/appviewx_kubernetes/yamldirectory. - Download the
appviewx_kubernetes_insight_<AVX_VERSION>.tar.gzfile. - Extract the contents of the file:
tar -xvf appviewx_kubernetes_insight_<AVX_VERSION>.tar.gz - Navigate to
/home/appviewx/appviewx_kubernetes/scriptsdirectory. - Open the
appviewx.conffile:vi appviewx.conf - Set the following parameters:
INSIGHT=TRUEELASTICSEARCH_BACKUP_HOST=<node1-hostname>,<node2-hostname>ELASTIC_BACKUP_PATH=<path>(example:/home/appviewx/elastic_backup)
- Search for Enabled Plugins and add the following plugins:
appviewx_dependenciesavx_insight_subsystem_adcavx_insight_statistics_botavx_platform_gateway
- Update the datacenter for Insight plugins as shown in the image below.
- Save and exit
appviewx.conf. - Navigate to
/home/appviewx/appviewx_kubernetes/scriptsdirectory and install Insight:./insight_install.sh - Install the plugins:
./plugins_install.sh - Restart subsystems and vendors:
kubectl delete pods <Pod name> -n <datacenter name>For example:
kubectl delete pods avx-insight-statistics-bot-<pod-id> -n <datacenter-name> - For Insight migration, continue only up to step 11.
- View the
elasticsearch-insightservice:kubectl get service elasticsearch-insight -n statistics - Update the service and set
nodePortto31403:kubectl edit service elasticsearch-insight -n statistics - Connect to the elastic database:
kubectl get services -n statistics
Device Syslog Process
The Syslog module receives syslogs from managed devices and updates the AppViewX database accordingly.
- Open
appviewx.confand setSYSLOG=TRUE. - Add the following to
ENABLED_PLUGINS:appviewx_dependencies,avx_platform_syslog,avx_platform_gateway. - Set the syslog assignment:
avx_platform_syslog=syslog. - Save
appviewx.conf. - From the scripts directory, run the below
command.
./insight_install.sh - Retrieve the syslog
port.
kubectl get services -n syslog # Fetch the NodePort from the logstash-syslog-service entry. - In MongoDB, open
avx_app_metadatacollection and setSYSLOG_RECEIVER_ENABLED=TRUE. - Update the ConfigMap for the datacenter
namespace.
kubectl edit configmaps -n <DATACENTER_NAME> # Set: SYSLOG_RECEIVER_ENABLED=True, SYSLOG_HOST=<SYSLOG_NODE_IP>, SYSLOG_PORT=<PORT> - Restart subsystems and vendors
pods.
kubectl delete pods <avx-subsystems-pod> <avx-vendors-pod> -n <DATACENTER_NAME>
