Эта страница на Русском
Metrics is a IONDV. Framework application.
IONDV. Metrics - is an application for collect and show metrics witch IONDV. Watch module.
Typical use:
- build your IONDV. Metrics application with instructions for typical IONDV. Framework application
- or get ready docker image and start with typical instraction IONDV. Framework
- place html code
<div><img src="https://your.domain/watch/METRIC-IDENTIFICATOR" style="position:absolute; left:-9999px;" alt="iondv metrics"></div>
in your html with URL to IONDV. Metrics application - or set IONDV. Framework application deploy.json
pageEndContent
params in globals (for all modules) or module (for once):
{
"globals": {
"pageEndContent": "<div><img src=\"https://your.domain/watch/METRIC-IDENTIFICATOR\" style=\"position:absolute; left:-9999px;\" height=1 width=1 alt=\"iondv-metrics\" /></div>"
}
}
- open html page or IONDV application, for example https://localhost:8888 for send metrics information about this page visit
- open https://your.domain/registry to view saved metrics.
Follow these steps to deploy docker container:
- Run mongodb
docker run --name mongodb \
-v mongodb_data:/data/db \
-p 27017:27017 \
--restart unless-stopped \
-d \
mongo
- Deploy your IONDV. Metrics application
docker run --entrypoint="" --link mongodb --rm iondv/metrics node bin/import --src ./applications/metrics --ns metrics
docker run --entrypoint="" --link mongodb --rm iondv/metrics node bin/setup metrics --reset
- Create user
admin
with password123
andadmin
role
docker run --entrypoint="" --link mongodb --rm iondv/metrics node bin/adduser --name admin --pwd 123
docker run --entrypoint="" --link mongodb --rm iondv/metrics node bin/acl --u admin@local --role admin --p full
- Start application
docker run -d -p 80:8888 --name metrics --link mongodb iondv/metrics
Open https://localhost/watch
in your browser. Result status is OK
. Adress https://your.domain/watch didn't tracking, and used for health check for Docker container.
Open https://localhost/watch/test
in your browser. Result is the small image in PNG and your request is saved in IONDV. Registry.
Open https://localhost/registry
in your browser, and after authorisation you will see list with made requests to https://localhost/watch/**
.
Copyright (c) 2019 LLC "ION DV".
All rights reserved.