-
Notifications
You must be signed in to change notification settings - Fork 486
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Log: Add 'country' to geoip pipeline-stage #5924
Conversation
Related to: grafana/loki#11378 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The doc is OK as-is (consistent with the rest of the topic)
Over to @grafana/grafana-agent-maintainers for a technical review
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! Thank you for the contribution @superstes and for prioritizing the Agent feature first! 🙌
@superstes I can't push to your branch :( The linter is complaining about the Could you please put them in a const to satisfy the linter so we can merge this? |
Head branch was pushed to by a user without write access
@tpaschalis Sorry - did not mean to block it. |
@tpaschalis @superstes The build is passing now, so I'll get this one merged :-) |
* Add 'country' to log pipeline-stage geoip * Add tests for log pipeline-stage geoip * Add 'country' to log pipeline-stage geoip * Lint-fix for tests of pipeline-stage geoip
PR Description
Which issue(s) this PR fixes
Maxmind provides multiple GeoIP2 databases.
The three most used ones are City, Country and ASN as they are also available as free GeoLiteIP2 databases.
Some users might want/need to use the 'Country' database - so I added support for it.
A reason: If the user only has the 'Country' database licensed.
Notes to the Reviewer
I've now also added mmdb-specific tests.
To note: The minimal (1 record) testdata-databases are added for the sake of simplicity.
One could also:
PR Checklist