mirror of
https://gitee.com/dgiiot/dgiot.git
synced 2024-11-29 18:57:41 +08:00
feat: add dgiot log
This commit is contained in:
parent
e8ce9d0f40
commit
59b9906bd1
@ -388,3 +388,11 @@ load_config(File) ->
|
||||
get_instance() ->
|
||||
[_Name, Instance] = string:tokens(atom_to_list(node()), "@"),
|
||||
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
1
commitlint.config.js
Normal file
@ -0,0 +1 @@
|
||||
module.exports = {extends: ['@commitlint/config-conventional']}
|
Loading…
Reference in New Issue
Block a user