Martini Services Tracker Databases
Martini enhances tracking capabilities by integrating GeoIP data into Tracker documents. This document outlines the steps for incorporating MaxMind's GeoIP database to automatically append geolocation data to Tracker documents generated from HTTP requests. This guide is designed for professional developers and assumes familiarity with basic concepts and terminology.
GeoIP Database Integration
Martini can enrich Tracker documents with geolocation data using MaxMind's GeoIP database. This process involves either manually installing the database or configuring Martini to automatically handle the download and updates.
Automatic Installation via User Interface
To enable Martini to automatically download the GeoIP database, follow these steps:
- Sign Up and License Key: Register for access to GeoLite2 databases on the MaxMind website. Once registered, generate a license key.
- Configure Martini: Input the obtained license key into Martini by navigating to the
geoip.maxmind-license-key
application property. - Download Database: Access the Martini Runtime Admin UI, hover over the
Configuration
menu, and selectGeo IP Database
. Martini will then download the database automatically. A confirmation dialog will appear upon successful download.
Installation via REST Endpoints
Martini also supports downloading and updating the GeoIP database through REST endpoints:
- Endpoint for Database Initialization: Send a POST request to
<host>:<port>/esbapi/tracker/geoip/initialize
to start the download process. Utilizing the API Explorer is recommended for simplicity.
Upon successful download, Martini logs the following messages:
1 2 3 4 |
|
GeoIP Data Utilization
After installation, Martini automatically adds geolocation data to new Tracker documents. The data includes:
- Request City
- Request Coordinates
- Request Country
These properties are appended to each document originating from an HTTP request.
Google Maps Integration
For visual geolocation tracking, Martini integrates with Google Maps. This feature requires a Google Maps API key. Follow these steps to enable map display:
- Obtain Google Maps API Key: Secure an API key through the Google Cloud Platform.
- Configure Martini: Add the API key to the
tracker.google-maps-api-key
application property.
After configuration, the Martini Runtime Admin UI will display the GeoIP location on a map for all tracked documents, enhancing the monitoring experience with geographical insights.