Repository navigation
feat: support db-ip and custom MMDB files for GeoIP - #54
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The exporter can now read GeoIP data from a db-ip subscription or from MMDB files you supply, not only GeoLite2.
--dbip-key(orDBIP_KEY) downloads the db-ip database to--geoip-dirin the background and looks for a new release once a day. A copy already on disk is opened before the log parser starts. A new release is swapped in without a restart. A failed update retries after 3, 6, 12 and then 24 hours.--dbip-dbpicks the db-ip database and defaults toip-to-location-isp.--geoip-filereads one or more MMDB files you manage yourself.maxminddb-golangdirectly with one record struct, so the ASN and org come from the top level (GeoLite2) or fromtraits(db-ip and other Enterprise-style files). The ISP name fills in when a file has no AS org.geoip2-golangis no longer used.unknown|unknowninstead of0|. In dashboard 23181 only the Top ASNs panel (id 33) reads these labels. Its row for these IPs changes from0tounknown, and its query needs no change.