This is a brief instruction on how to deploy pm-mapper in docker env and how to configure filters in pm-mapper
Prerequisite
- Docker
- make
- bash
- linux(ubuntu 18+)
Installation
copy pm-mapper repo from onap gerrit
git clone "https://gerrit.onap.org/r/dcaegen2/services/pm-mapper"
go to sub-directory:
cd tools/development
install dmapp-dr, cbs, consul, files-publisher and dmaap-mr:
make setup-local
install pm-mapper:
make run-pm-mapper
After successful installation, we should see the docker containers:
Config dmaap
config dmaap-dr to create a feed for pm-mapper to subscribe:
make config-dmaap
Subscribe to dmaap-dr feed
config dmaap to create a feed for pm-mapper to subscribe:
make subscribe-pm-mapper
List files in container files-publisher
files-publisher is a micro-servive designed for test/demo purpose, it has some prepared files to publish to dmaap-dr:
make list-files
In real onap instance, files-publisher is replaced by Data-File-Collector.
Publish file to dmapp-dr
in the same sub-directory, there are two scripts to do this:
send-meas-collec.sh & send-meas-data.sh
we can pick one files from above list, eg:
./send-meas-collec.sh A20181002.0000-1000-0015-1000_5G.xml.gz
Check logs on dmaap-mr:
docker logs mr-simulator
We should be able to see a message like below:
After formating:
Pay attention to the "measTypes", we can all the types now because we didn't configure any filters yet.
Configure filters
Clean env
clean env
make clean-env