Skip to content
master
Switch branches/tags
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
cmd
 
 
img
 
 
 
 
 
 
 
 
 
 
 
 
 
 

function-natureremo-mackerel

Posting sensor values from Nature Remo to Mackerel.

demo

Settings

Get API Token

Write envs.yaml

  • NATUREREMO_ACCESS_TOKEN: Nature Remo Cloud API Access Token
  • MACKEREL_API_KEY: Mackerel API Key (requires write permission)
  • SERVICE_NAME: Mackerel Service Name
  • METRIC_PREFIX (default: natureremo)
  • USE_SENSOR_EVENT_TIME (default: false)

Deploy

Create a topic

$ gcloud pubsub topics create remo-to-mackerel

Create a scheduler

$ gcloud scheduler jobs create pubsub kick-remo-to-mackerel --topic=remo-to-mackerel --schedule="every 5 mins" --message-body="{}"

Deploy a function subscribing the topic

$ gcloud functions deploy RemoToMackerel --runtime go113 --trigger-topic=remo-to-mackerel --env-vars-file envs.yaml

(* To access external network requires Billing Account configuration in your project.)

About

Posting sensor values from Nature Remo to Mackerel

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages