Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
N
nexpie-grafana-theme
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Registry
Registry
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kornkitt Poolsup
nexpie-grafana-theme
Commits
2a0d7a88
Commit
2a0d7a88
authored
Oct 02, 2018
by
Erik Sundell
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
stackdriver: remove debug logging
parent
035be6cb
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
6 deletions
+0
-6
pkg/tsdb/stackdriver/stackdriver.go
+0
-6
No files found.
pkg/tsdb/stackdriver/stackdriver.go
View file @
2a0d7a88
...
...
@@ -15,8 +15,6 @@ import (
"strings"
"time"
"github.com/grafana/grafana/pkg/cmd/grafana-cli/logger"
"golang.org/x/net/context/ctxhttp"
"github.com/grafana/grafana/pkg/api/pluginproxy"
...
...
@@ -172,7 +170,6 @@ func reverse(s string) string {
func
interpolateFilterWildcards
(
value
string
)
string
{
re
:=
regexp
.
MustCompile
(
"[*]"
)
matches
:=
len
(
re
.
FindAllStringIndex
(
value
,
-
1
))
logger
.
Info
(
"len"
,
"len"
,
matches
)
if
matches
==
2
&&
strings
.
HasSuffix
(
value
,
"*"
)
&&
strings
.
HasPrefix
(
value
,
"*"
)
{
value
=
strings
.
Replace
(
value
,
"*"
,
""
,
-
1
)
value
=
fmt
.
Sprintf
(
`has_substring("%s")`
,
value
)
...
...
@@ -192,8 +189,6 @@ func interpolateFilterWildcards(value string) string {
value
=
fmt
.
Sprintf
(
`monitoring.regex.full_match("^%s$")`
,
value
)
}
logger
.
Info
(
"filter"
,
"filter"
,
value
)
return
value
}
...
...
@@ -273,7 +268,6 @@ func (e *StackdriverExecutor) executeQuery(ctx context.Context, query *Stackdriv
}
req
.
URL
.
RawQuery
=
query
.
Params
.
Encode
()
logger
.
Info
(
"req.URL.RawQuery"
,
"req.URL.RawQuery"
,
req
.
URL
.
RawQuery
)
queryResult
.
Meta
.
Set
(
"rawQuery"
,
req
.
URL
.
RawQuery
)
alignmentPeriod
,
ok
:=
req
.
URL
.
Query
()[
"aggregation.alignmentPeriod"
]
...
...
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