An open API service indexing awesome lists of open source software.

https://github.com/ymyzk/bq-globalip

Record the current global IPv4 address to a BigQuery table.
https://github.com/ymyzk/bq-globalip

bigquery golang

Last synced: 2 months ago
JSON representation

Record the current global IPv4 address to a BigQuery table.

Awesome Lists containing this project

README

          

# bq-globalip
Record the current global IPv4 address to a BigQuery table.

## Preparation
Create a BigQuery table with the following schema:
```json
[
{
"name": "time",
"type": "TIMESTAMP",
"mode": "REQUIRED"
},
{
"name": "address",
"type": "STRING",
"mode": "REQUIRED"
}
]
```

## Usage
```shell
$ export GOOGLE_APPLICATION_CREDENTIALS=.json
$ bq-globalip -bigquery :.
```

If you want to periodically record an address, please run `bq-globalip` with cron or a scheduler you prefer.