Skip to content
/ metrics Public

IONDV. Framework application: Metrics is to collect and show the metrics data.

License

Notifications You must be signed in to change notification settings

iondv/metrics

Repository files navigation

Эта страница на Русском

IONDV. Metrics

Metrics is a IONDV. Framework application.

Start with IONDV. Framework

Description

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=\"http://your.domain/watch/METRIC-IDENTIFICATOR\" style=\"position:absolute; left:-9999px;\" height=1 width=1 alt=\"iondv-metrics\" /></div>"
  }
}

Docker

Follow these steps to deploy docker container:

  1. Run mongodb
docker run  --name mongodb \
            -v mongodb_data:/data/db \
            -p 27017:27017 \
            --restart unless-stopped \
            -d \
            mongo
  1. 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
  1. Create user admin with password 123 and admin 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
  1. Start application
docker run -d -p 80:8888 --name metrics --link mongodb iondv/metrics

Open http://localhost/watch in your browser. Result status is OK. Adress http://your.domain/watch didn't tracking, and used for health check for Docker container. Open http://localhost/watch/test in your browser. Result is the small image in PNG and your request is saved in IONDV. Registry. Open http://localhost/registry in your browser, and after authorisation you will see list with made requests to http://localhost/watch/**.


iondv metrics

Copyright (c) 2019 LLC "ION DV".
All rights reserved.

About

IONDV. Framework application: Metrics is to collect and show the metrics data.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published