Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
E
enoch
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
DevOps
enoch
Commits
cd30e705
Commit
cd30e705
authored
Feb 14, 2019
by
xiaoguang.xu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
更换成http协议
parent
53ce29db
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
3 deletions
+4
-3
enoch
enoch
+0
-0
influxdb_conf.go
service/conf/influxdb_conf.go
+3
-3
msg_process.go
service/msg_process.go
+1
-0
No files found.
enoch
View file @
cd30e705
No preview for this file type
service/conf/influxdb_conf.go
View file @
cd30e705
...
...
@@ -7,11 +7,11 @@ import (
func
NewClient
()
client
.
Client
{
conf
:=
client
.
UD
PConfig
{
Addr
:
"
172.20.6.33:8089
"
,
conf
:=
client
.
HTT
PConfig
{
Addr
:
"
http://172.20.6.33:8086
"
,
}
con
,
err
:=
client
.
New
UD
PClient
(
conf
)
con
,
err
:=
client
.
New
HTT
PClient
(
conf
)
if
err
!=
nil
{
log
.
Fatal
(
err
)
...
...
service/msg_process.go
View file @
cd30e705
...
...
@@ -93,6 +93,7 @@ func batchWrite(pointArray []*client.Point) {
points
.
AddPoints
(
pointArray
)
err
=
c
.
Write
(
points
)
fmt
.
Println
(
"写入数据"
,
len
(
pointArray
))
if
err
!=
nil
{
log
.
Fatal
(
err
)
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment