We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
New processor to map from geoname.id into geo location attributes.
geoname.id
The geoname data can be accessible from http://www.geonames.org using two approaches:
Store all the geoname data in memory extracted from a file. More info about the file
Call API to get the geo location info of a geonameID
geonameID
http://api.geonames.org/getJSON?geonameId=<GeoNameID>&username=<username>
"geonameId": 5128581, "name": "New York", "lat": "40.71427", "lng": "-74.00597", "countryName": "United States", "countryCode": "US", "population": 8175133, "adminName1": "New York", "adminCode1": "NY", "adminName2": "New York County", "timezone": { "timeZoneId": "America/New_York", "gmtOffset": -5, "dstOffset": -4 }, "fcode": "PPL", "fcl": "P", "continentCode": "NA", "elevation": null, "bBox": { "east": -73.7002721, "north": 40.9152555, "south": 40.496044, "west": -74.2557349
processors: geonameprocessor: providers: file: geonames: /tmp/mygeodb api: geonames: username: user1 ttl: 1d context: record attributes: [geoname.id]
providers
file
api
geonames
username
ttl
context
resource
record
attributes
metrics, traces, logs
No response
The text was updated successfully, but these errors were encountered:
cc @andrzej-stencel @michalpristas @rogercoll as geoipprocessor owners
geoipprocessor
Sorry, something went wrong.
No branches or pull requests
The purpose and use-cases of the new component
New processor to map from
geoname.id
into geo location attributes.The geoname data can be accessible from http://www.geonames.org using two approaches:
Store all the geoname data in memory extracted from a file. More info about the file
Call API to get the geo location info of a
geonameID
http://api.geonames.org/getJSON?geonameId=<GeoNameID>&username=<username>
Example configuration for the component
providers
: GeoNames location information providers. It can be configured byfile
orapi
file
: Access the data from a filegeonames
: file with the GeoNames table. More info https://download.geonames.org/export/dump/readme.txtapi
: Access the data from a APIgeonames
: Using the GeoNames API http://www.geonames.org//username
: Require username to make request.http://api.geonames.org/getJSON?geonameId=<GeoNameID>&username=<username>
ttl
: expiration times for datacontext
(default: resource): Allows specifying the underlying telemetry context the processor will work with. Available values:resource
: Resource attributes.record
: Attributes within a data point, log record or a span.attributes
: An array of attribute names, which contains the geoname.id value.Telemetry data types supported
metrics, traces, logs
Code Owner(s)
No response
Sponsor (optional)
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: