Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
Picametrics
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Picasoft
Technique
Picametrics
Commits
673e01bd
Unverified
Commit
673e01bd
authored
4 years ago
by
PICHOU Kyâne
Browse files
Options
Downloads
Patches
Plain Diff
Support vmagent that doesn't return x-influxdb-version header
parent
5d402351
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!2
Vmagent
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
main.py
+4
-0
4 additions, 0 deletions
main.py
with
4 additions
and
0 deletions
main.py
+
4
−
0
View file @
673e01bd
...
...
@@ -71,6 +71,10 @@ def influxb_connect(config):
)
client
.
ping
()
return
client
except
KeyError
as
e
:
if
e
.
args
==
(
"
x-influxdb-version
"
,):
print
(
"
Ignoring vmagent missing x-influxdb-version header
"
)
return
client
except
Exception
as
e
:
print
(
"
Cannot connect to {} : {}
"
.
format
(
o
.
hostname
,
e
))
print
(
"
If InfluxDB has just started, this is normal, please wait!
"
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment