feat: add dgiot log

This commit is contained in:
lsxredrain 2021-08-31 10:19:23 +08:00
parent e8ce9d0f40
commit 59b9906bd1
2 changed files with 9 additions and 0 deletions

View File

@ -388,3 +388,11 @@ load_config(File) ->
get_instance() -> get_instance() ->
[_Name, Instance] = string:tokens(atom_to_list(node()), "@"), [_Name, Instance] = string:tokens(atom_to_list(node()), "@"),
Instance. Instance.
%% curl -X PUT -d '{"id": "node-exporter","name": "node-exporter-172.30.12.167","address": "172.30.12.167","port": 9100,"tags": ["test"],"checks": [{"http": "http://172.30.12.167:9100/metrics", "interval": "5s"}]}' http://127.0.0.1:8500/v1/agent/service/register
%%post_consul() ->
%% ok.
%% curl -X PUT http://127.0.0.1:8500/v1/agent/service/deregister/node-exporter
%%delete_consul() ->
%% ok.

1
commitlint.config.js Normal file
View File

@ -0,0 +1 @@
module.exports = {extends: ['@commitlint/config-conventional']}