Sign inSign up

ymyzk/bq-globalip

By ymyzk

Updated over 6 years ago

Image
0

100K+

ymyzk/bq-globalip repository overview

bq-globalip

Record the current global IPv4 address to a BigQuery table.

Preparation

Create a BigQuery table with the following schema:

[
  {
    "name": "time",
    "type": "TIMESTAMP",
    "mode": "REQUIRED"
  },
  {
    "name": "address",
    "type": "STRING",
    "mode": "REQUIRED"
  }
]

Usage

$ export GOOGLE_APPLICATION_CREDENTIALS=<your key>.json
$ bq-globalip -bigquery <project>:<dataset>.<table>

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

Tag summary

Content type

Image

Digest

Size

7.1 MB

Last updated

over 6 years ago

docker pull ymyzk/bq-globalip