Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
telegraf-nftables
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
Due to inactivity, this project is scheduled to be deleted on 2035-04-24.
Why is this scheduled?
Show more breadcrumbs
vqgroup
telegraf-nftables
Commits
5917a429
Commit
5917a429
authored
9 years ago
by
Cameron Sparr
Browse files
Options
Downloads
Patches
Plain Diff
influxdb output: quote the database name
closes #898
parent
fbe16642
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
CHANGELOG.md
+1
-0
1 addition, 0 deletions
CHANGELOG.md
plugins/outputs/influxdb/influxdb.go
+1
-1
1 addition, 1 deletion
plugins/outputs/influxdb/influxdb.go
with
2 additions
and
1 deletion
CHANGELOG.md
+
1
−
0
View file @
5917a429
...
@@ -15,6 +15,7 @@
...
@@ -15,6 +15,7 @@
### Bugfixes
### Bugfixes
-
[
#890
](
https://github.com/influxdata/telegraf/issues/890
)
: Create TLS config even if only ssl_ca is provided.
-
[
#890
](
https://github.com/influxdata/telegraf/issues/890
)
: Create TLS config even if only ssl_ca is provided.
-
[
#884
](
https://github.com/influxdata/telegraf/issues/884
)
: Do not call write method if there are 0 metrics to write.
-
[
#884
](
https://github.com/influxdata/telegraf/issues/884
)
: Do not call write method if there are 0 metrics to write.
-
[
#898
](
https://github.com/influxdata/telegraf/issues/898
)
: Put database name in quotes, fixes special characters in the database name.
## v0.11.1 [2016-03-17]
## v0.11.1 [2016-03-17]
...
...
This diff is collapsed.
Click to expand it.
plugins/outputs/influxdb/influxdb.go
+
1
−
1
View file @
5917a429
...
@@ -127,7 +127,7 @@ func (i *InfluxDB) Connect() error {
...
@@ -127,7 +127,7 @@ func (i *InfluxDB) Connect() error {
// Create Database if it doesn't exist
// Create Database if it doesn't exist
_
,
e
:=
c
.
Query
(
client
.
Query
{
_
,
e
:=
c
.
Query
(
client
.
Query
{
Command
:
fmt
.
Sprintf
(
"CREATE DATABASE IF NOT EXISTS
%s
"
,
i
.
Database
),
Command
:
fmt
.
Sprintf
(
"CREATE DATABASE IF NOT EXISTS
\"
%s
\"
"
,
i
.
Database
),
})
})
if
e
!=
nil
{
if
e
!=
nil
{
...
...
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