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
721e1d75
Commit
721e1d75
authored
Dec 05, 2018
by
Daniel Lee
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
renames Grafana Logging ds to Loki
parent
3c330c8e
Hide whitespace changes
Inline
Side-by-side
Showing
19 changed files
with
250 additions
and
36 deletions
+250
-36
public/app/features/plugins/built_in_plugins.ts
+2
-2
public/app/plugins/datasource/logging/README.md
+0
-4
public/app/plugins/datasource/loki/README.md
+3
-0
public/app/plugins/datasource/loki/components/LokiCheatSheet.tsx
+1
-1
public/app/plugins/datasource/loki/components/LokiQueryField.tsx
+7
-7
public/app/plugins/datasource/loki/components/LokiStartPage.tsx
+3
-3
public/app/plugins/datasource/loki/datasource.ts
+3
-3
public/app/plugins/datasource/loki/img/grafana_icon.svg
+0
-0
public/app/plugins/datasource/loki/img/loki_icon.svg
+216
-0
public/app/plugins/datasource/loki/language_provider.test.ts
+0
-0
public/app/plugins/datasource/loki/language_provider.ts
+1
-1
public/app/plugins/datasource/loki/module.ts
+6
-6
public/app/plugins/datasource/loki/partials/config.html
+0
-0
public/app/plugins/datasource/loki/plugin.json
+8
-9
public/app/plugins/datasource/loki/query_utils.test.ts
+0
-0
public/app/plugins/datasource/loki/query_utils.ts
+0
-0
public/app/plugins/datasource/loki/result_transformer.test.ts
+0
-0
public/app/plugins/datasource/loki/result_transformer.ts
+0
-0
public/app/plugins/datasource/loki/syntax.ts
+0
-0
No files found.
public/app/features/plugins/built_in_plugins.ts
View file @
721e1d75
...
...
@@ -4,7 +4,7 @@ import * as elasticsearchPlugin from 'app/plugins/datasource/elasticsearch/modul
import
*
as
opentsdbPlugin
from
'app/plugins/datasource/opentsdb/module'
;
import
*
as
grafanaPlugin
from
'app/plugins/datasource/grafana/module'
;
import
*
as
influxdbPlugin
from
'app/plugins/datasource/influxdb/module'
;
import
*
as
lo
ggingPlugin
from
'app/plugins/datasource/logging
/module'
;
import
*
as
lo
kiPlugin
from
'app/plugins/datasource/loki
/module'
;
import
*
as
mixedPlugin
from
'app/plugins/datasource/mixed/module'
;
import
*
as
mysqlPlugin
from
'app/plugins/datasource/mysql/module'
;
import
*
as
postgresPlugin
from
'app/plugins/datasource/postgres/module'
;
...
...
@@ -33,7 +33,7 @@ const builtInPlugins = {
'app/plugins/datasource/opentsdb/module'
:
opentsdbPlugin
,
'app/plugins/datasource/grafana/module'
:
grafanaPlugin
,
'app/plugins/datasource/influxdb/module'
:
influxdbPlugin
,
'app/plugins/datasource/lo
gging/module'
:
logging
Plugin
,
'app/plugins/datasource/lo
ki/module'
:
loki
Plugin
,
'app/plugins/datasource/mixed/module'
:
mixedPlugin
,
'app/plugins/datasource/mysql/module'
:
mysqlPlugin
,
'app/plugins/datasource/postgres/module'
:
postgresPlugin
,
...
...
public/app/plugins/datasource/logging/README.md
deleted
100644 → 0
View file @
3c330c8e
# Grafana Logging Datasource - Native Plugin
This is a
**built in**
datasource that allows you to connect to Grafana's logging service.
\ No newline at end of file
public/app/plugins/datasource/loki/README.md
0 → 100644
View file @
721e1d75
# Loki Datasource - Native Plugin
This is a
**built in**
datasource that allows you to connect to the Loki logging service.
public/app/plugins/datasource/lo
gging/components/Logging
CheatSheet.tsx
→
public/app/plugins/datasource/lo
ki/components/Loki
CheatSheet.tsx
View file @
721e1d75
...
...
@@ -15,7 +15,7 @@ const CHEAT_SHEET_ITEMS = [
export
default
(
props
:
any
)
=>
(
<
div
>
<
h2
>
Lo
gging
Cheat Sheet
</
h2
>
<
h2
>
Lo
ki
Cheat Sheet
</
h2
>
{
CHEAT_SHEET_ITEMS
.
map
(
item
=>
(
<
div
className=
"cheat-sheet-item"
key=
{
item
.
expression
}
>
<
div
className=
"cheat-sheet-item__title"
>
{
item
.
title
}
</
div
>
...
...
public/app/plugins/datasource/lo
gging/components/Logging
QueryField.tsx
→
public/app/plugins/datasource/lo
ki/components/Loki
QueryField.tsx
View file @
721e1d75
...
...
@@ -49,7 +49,7 @@ interface CascaderOption {
disabled
?:
boolean
;
}
interface
Lo
gging
QueryFieldProps
{
interface
Lo
ki
QueryFieldProps
{
datasource
:
any
;
error
?:
string
|
JSX
.
Element
;
hint
?:
any
;
...
...
@@ -60,16 +60,16 @@ interface LoggingQueryFieldProps {
onQueryChange
?:
(
value
:
DataQuery
,
override
?:
boolean
)
=>
void
;
}
interface
Lo
gging
QueryFieldState
{
interface
Lo
ki
QueryFieldState
{
logLabelOptions
:
any
[];
syntaxLoaded
:
boolean
;
}
class
Lo
ggingQueryField
extends
React
.
PureComponent
<
LoggingQueryFieldProps
,
Logging
QueryFieldState
>
{
class
Lo
kiQueryField
extends
React
.
PureComponent
<
LokiQueryFieldProps
,
Loki
QueryFieldState
>
{
plugins
:
any
[];
languageProvider
:
any
;
constructor
(
props
:
Lo
gging
QueryFieldProps
,
context
)
{
constructor
(
props
:
Lo
ki
QueryFieldProps
,
context
)
{
super
(
props
,
context
);
if
(
props
.
datasource
.
languageProvider
)
{
...
...
@@ -208,8 +208,8 @@ class LoggingQueryField extends React.PureComponent<LoggingQueryFieldProps, Logg
onTypeahead=
{
this
.
onTypeahead
}
onWillApplySuggestion=
{
willApplySuggestion
}
onValueChanged=
{
this
.
onChangeQuery
}
placeholder=
"Enter a Lo
ggin
g query"
portalOrigin=
"lo
gging
"
placeholder=
"Enter a Lo
ki Lo
g query"
portalOrigin=
"lo
ki
"
syntaxLoaded=
{
syntaxLoaded
}
/>
{
error
?
<
div
className=
"prom-query-field-info text-error"
>
{
error
}
</
div
>
:
null
}
...
...
@@ -229,4 +229,4 @@ class LoggingQueryField extends React.PureComponent<LoggingQueryFieldProps, Logg
}
}
export
default
Lo
gging
QueryField
;
export
default
Lo
ki
QueryField
;
public/app/plugins/datasource/lo
gging/components/Logging
StartPage.tsx
→
public/app/plugins/datasource/lo
ki/components/Loki
StartPage.tsx
View file @
721e1d75
import
React
,
{
PureComponent
}
from
'react'
;
import
Lo
ggingCheatSheet
from
'./Logging
CheatSheet'
;
import
Lo
kiCheatSheet
from
'./Loki
CheatSheet'
;
interface
Props
{
onClickExample
:
()
=>
void
;
}
export
default
class
Lo
gging
StartPage
extends
PureComponent
<
Props
>
{
export
default
class
Lo
ki
StartPage
extends
PureComponent
<
Props
>
{
render
()
{
return
(
<
div
className=
"grafana-info-box grafana-info-box--max-lg"
>
<
Lo
gging
CheatSheet
onClickExample=
{
this
.
props
.
onClickExample
}
/>
<
Lo
ki
CheatSheet
onClickExample=
{
this
.
props
.
onClickExample
}
/>
</
div
>
);
}
...
...
public/app/plugins/datasource/lo
gging
/datasource.ts
→
public/app/plugins/datasource/lo
ki
/datasource.ts
View file @
721e1d75
...
...
@@ -27,7 +27,7 @@ function serializeParams(data: any) {
.
join
(
'&'
);
}
export
default
class
Lo
gging
Datasource
{
export
default
class
Lo
ki
Datasource
{
languageProvider
:
LanguageProvider
;
/** @ngInject */
...
...
@@ -94,7 +94,7 @@ export default class LoggingDatasource {
}
metadataRequest
(
url
)
{
// HACK to get label values for {job=|}, will be replaced when implementing Lo
gging
QueryField
// HACK to get label values for {job=|}, will be replaced when implementing Lo
ki
QueryField
const
apiUrl
=
url
.
replace
(
'v1'
,
'prom'
);
return
this
.
_request
(
apiUrl
,
{
silent
:
true
}).
then
(
res
=>
{
const
data
=
{
data
:
{
data
:
res
.
data
.
values
||
[]
}
};
...
...
@@ -136,7 +136,7 @@ export default class LoggingDatasource {
}
return
{
status
:
'error'
,
message
:
'Data source connected, but no labels received. Verify that
logging
is configured properly.'
,
message
:
'Data source connected, but no labels received. Verify that
Loki
is configured properly.'
,
};
})
.
catch
(
err
=>
{
...
...
public/app/plugins/datasource/lo
gging
/img/grafana_icon.svg
→
public/app/plugins/datasource/lo
ki
/img/grafana_icon.svg
View file @
721e1d75
File moved
public/app/plugins/datasource/loki/img/loki_icon.svg
0 → 100644
View file @
721e1d75
<?xml version="1.0" encoding="utf-8"?>
<!-- Generator: Adobe Illustrator 19.0.1, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<svg
version=
"1.1"
id=
"Layer_1"
xmlns=
"http://www.w3.org/2000/svg"
xmlns:xlink=
"http://www.w3.org/1999/xlink"
x=
"0px"
y=
"0px"
width=
"200px"
height=
"200px"
viewBox=
"0 0 200 200"
style=
"enable-background:new 0 0 200 200;"
xml:space=
"preserve"
>
<style
type=
"text/css"
>
.st0{fill:url(#SVGID_1_);}
.st1{fill:url(#SVGID_2_);}
.st2{fill:url(#SVGID_3_);}
.st3{fill:url(#SVGID_4_);}
.st4{fill:url(#SVGID_5_);}
.st5{fill:url(#SVGID_6_);}
.st6{fill:url(#SVGID_7_);}
.st7{fill:url(#SVGID_8_);}
.st8{fill:url(#SVGID_9_);}
.st9{fill:url(#SVGID_10_);}
.st10{fill:url(#SVGID_11_);}
.st11{fill:url(#SVGID_12_);}
.st12{fill:url(#SVGID_13_);}
.st13{fill:url(#SVGID_14_);}
.st14{fill:url(#SVGID_15_);}
.st15{fill:url(#SVGID_16_);}
.st16{fill:url(#SVGID_17_);}
.st17{fill:url(#SVGID_18_);}
.st18{fill:url(#SVGID_19_);}
.st19{fill:url(#SVGID_20_);}
.st20{fill:url(#SVGID_21_);}
.st21{fill:url(#SVGID_22_);}
.st22{fill:url(#SVGID_23_);}
.st23{fill:url(#SVGID_24_);}
.st24{fill:url(#SVGID_25_);}
.st25{fill:url(#SVGID_26_);}
.st26{fill:url(#SVGID_27_);}
.st27{fill:url(#SVGID_28_);}
.st28{fill:url(#SVGID_29_);}
.st29{fill:url(#SVGID_30_);}
.st30{fill:url(#SVGID_31_);}
.st31{fill:url(#SVGID_32_);}
</style>
<g>
<linearGradient
id=
"SVGID_1_"
gradientUnits=
"userSpaceOnUse"
x1=
"135.0285"
y1=
"238.7858"
x2=
"135.0285"
y2=
"2.4079"
>
<stop
offset=
"0"
style=
"stop-color:#FBED1D"
/>
<stop
offset=
"1"
style=
"stop-color:#F05A2A"
/>
</linearGradient>
<path
class=
"st0"
d=
"M179.5,130c-6.9-9.5-18.6-16.1-30.2-17.9l-38.1-4.6l0,22.4l34.7,4c5.8,0.9,12.3,4.3,15.8,9.1
c3.5,4.7,4.9,10.5,4,16.3c-1.7,10.8-11,18.5-21.6,18.5c-1.1,0-2.3-0.1-3.4-0.3l-37.9-4.7c-5.1,8-12.2,14.7-20.6,19.2l55.2,7.4
c2.3,0.4,4.6,0.5,6.8,0.5c21.3,0,40-15.6,43.4-37.3C189.3,151.1,186.4,139.5,179.5,130z"
/>
<linearGradient
id=
"SVGID_2_"
gradientUnits=
"userSpaceOnUse"
x1=
"56.0866"
y1=
"238.7858"
x2=
"56.0866"
y2=
"2.4079"
>
<stop
offset=
"0"
style=
"stop-color:#FBED1D"
/>
<stop
offset=
"1"
style=
"stop-color:#F05A2A"
/>
</linearGradient>
<path
class=
"st1"
d=
"M90.5,171c1.3-1.6,2.4-3.3,3.5-5.1c1-1.7,1.9-3.4,2.7-5.2c2.3-5.3,3.5-11.2,3.5-17.3l0-4l0-5.6l0-5.6l0-22.4
l0-5.6l0-5.6L100,43.9C100,19.7,80.2,0,55.9,0S12,19.8,12,44.1l0.1,66.7c5.7-7.6,13.3-13.7,22.1-17.6L34.1,44
c0-12.1,9.8-21.9,21.8-21.9c12.1,0,21.9,9.8,21.9,21.8L78,91.2l0,5.6l0,5.6l0,22.4l0,5.6l0,5.6l0,7.5c0,5.2-1.8,9.9-4.8,13.7
c-1.5,1.9-3.3,3.5-5.3,4.8c-3.4,2.2-7.4,3.5-11.7,3.5c-0.7,0-1.4,0-2,0l-1.4-0.2c-10.8-1.7-18.6-11.1-18.5-21.8
c0-1.1,0.1-2.1,0.2-3.2c0.7-4.3,2.6-8.1,5.3-11.1c1.6-1.8,3.5-3.3,5.5-4.5c3.2-1.8,6.9-2.9,10.8-2.9c1.1,0,2.3,0.1,3.4,0.3l7.5,1.2
l0-22.4l-4-0.6c-2.3-0.4-4.6-0.5-6.8-0.5c-3.7,0-7.3,0.5-10.8,1.4c-1.9,0.5-3.7,1.1-5.5,1.8c-1.9,0.8-3.8,1.7-5.5,2.7
c-11.2,6.4-19.4,17.7-21.6,31.4c-0.4,2.4-0.5,4.9-0.5,7.3c0,1.2,0.1,2.3,0.2,3.5c0,0.3,0.1,0.6,0.1,0.9c0.1,1.1,0.3,2.3,0.5,3.4
c0.1,0.3,0.1,0.7,0.2,1c0.2,1.1,0.5,2.1,0.8,3.2c0.1,0.4,0.2,0.7,0.3,1.1c0.3,1,0.7,2,1.1,3c0.1,0.3,0.3,0.7,0.4,1
c0.4,1,0.9,1.9,1.4,2.9c0.2,0.3,0.3,0.6,0.5,0.9c0.5,1,1.1,1.9,1.7,2.8c0.2,0.2,0.3,0.5,0.5,0.7c0.7,1,1.4,1.9,2.1,2.9
c0.1,0.1,0.2,0.3,0.4,0.4c0.8,1,1.7,1.9,2.6,2.8c0.1,0.1,0.1,0.1,0.2,0.2c1,1,2,1.9,3,2.7c0,0,0.1,0,0.1,0.1
c1.1,0.9,2.2,1.7,3.3,2.5c0,0,0,0,0.1,0.1c1.1,0.8,2.3,1.5,3.5,2.1c0.1,0,0.1,0.1,0.2,0.1c1.1,0.6,2.3,1.2,3.5,1.7
c0.2,0.1,0.3,0.1,0.5,0.2c1.1,0.5,2.2,0.9,3.3,1.2c0.3,0.1,0.6,0.2,0.9,0.3c1,0.3,2.1,0.6,3.2,0.8c0.4,0.1,0.8,0.2,1.2,0.2
c2.7,0.5,5.5,0.8,8.3,0.8C70.1,187.5,82.4,181.1,90.5,171z"
/>
<linearGradient
id=
"SVGID_3_"
gradientUnits=
"userSpaceOnUse"
x1=
"26.7057"
y1=
"238.7858"
x2=
"26.7057"
y2=
"2.4079"
>
<stop
offset=
"0"
style=
"stop-color:#FBED1D"
/>
<stop
offset=
"1"
style=
"stop-color:#F05A2A"
/>
</linearGradient>
<path
class=
"st2"
d=
"M28.2,177.5c-1-0.9-2-1.8-3-2.7"
/>
<linearGradient
id=
"SVGID_4_"
gradientUnits=
"userSpaceOnUse"
x1=
"12.7354"
y1=
"238.7858"
x2=
"12.7354"
y2=
"2.4079"
>
<stop
offset=
"0"
style=
"stop-color:#FBED1D"
/>
<stop
offset=
"1"
style=
"stop-color:#F05A2A"
/>
</linearGradient>
<path
class=
"st3"
d=
"M13,151.9c-0.2-1.1-0.4-2.2-0.5-3.4"
/>
<linearGradient
id=
"SVGID_5_"
gradientUnits=
"userSpaceOnUse"
x1=
"14.8849"
y1=
"238.7858"
x2=
"14.8849"
y2=
"2.4079"
>
<stop
offset=
"0"
style=
"stop-color:#FBED1D"
/>
<stop
offset=
"1"
style=
"stop-color:#F05A2A"
/>
</linearGradient>
<path
class=
"st4"
d=
"M15.4,160.1c-0.4-1-0.8-2-1.1-3"
/>
<linearGradient
id=
"SVGID_6_"
gradientUnits=
"userSpaceOnUse"
x1=
"18.6023"
y1=
"238.7858"
x2=
"18.6023"
y2=
"2.4079"
>
<stop
offset=
"0"
style=
"stop-color:#FBED1D"
/>
<stop
offset=
"1"
style=
"stop-color:#F05A2A"
/>
</linearGradient>
<path
class=
"st5"
d=
"M19.5,167.8c-0.6-0.9-1.2-1.9-1.7-2.8"
/>
<linearGradient
id=
"SVGID_7_"
gradientUnits=
"userSpaceOnUse"
x1=
"16.5561"
y1=
"238.7858"
x2=
"16.5561"
y2=
"2.4079"
>
<stop
offset=
"0"
style=
"stop-color:#FBED1D"
/>
<stop
offset=
"1"
style=
"stop-color:#F05A2A"
/>
</linearGradient>
<path
class=
"st6"
d=
"M17.2,164c-0.5-0.9-1-1.9-1.4-2.9"
/>
<linearGradient
id=
"SVGID_8_"
gradientUnits=
"userSpaceOnUse"
x1=
"12.2907"
y1=
"238.7858"
x2=
"12.2907"
y2=
"2.4079"
>
<stop
offset=
"0"
style=
"stop-color:#FBED1D"
/>
<stop
offset=
"1"
style=
"stop-color:#F05A2A"
/>
</linearGradient>
<path
class=
"st7"
d=
"M12.2,144.1c0,1.2,0.1,2.3,0.2,3.5"
/>
<linearGradient
id=
"SVGID_9_"
gradientUnits=
"userSpaceOnUse"
x1=
"23.7117"
y1=
"238.7858"
x2=
"23.7117"
y2=
"2.4079"
>
<stop
offset=
"0"
style=
"stop-color:#FBED1D"
/>
<stop
offset=
"1"
style=
"stop-color:#F05A2A"
/>
</linearGradient>
<path
class=
"st8"
d=
"M25,174.6c-0.9-0.9-1.8-1.9-2.6-2.8"
/>
<linearGradient
id=
"SVGID_10_"
gradientUnits=
"userSpaceOnUse"
x1=
"20.9974"
y1=
"238.7858"
x2=
"20.9974"
y2=
"2.4079"
>
<stop
offset=
"0"
style=
"stop-color:#FBED1D"
/>
<stop
offset=
"1"
style=
"stop-color:#F05A2A"
/>
</linearGradient>
<path
class=
"st9"
d=
"M22.1,171.3c-0.8-0.9-1.5-1.9-2.1-2.9"
/>
<linearGradient
id=
"SVGID_11_"
gradientUnits=
"userSpaceOnUse"
x1=
"13.6059"
y1=
"238.7858"
x2=
"13.6059"
y2=
"2.4079"
>
<stop
offset=
"0"
style=
"stop-color:#FBED1D"
/>
<stop
offset=
"1"
style=
"stop-color:#F05A2A"
/>
</linearGradient>
<path
class=
"st10"
d=
"M14,156.1c-0.3-1-0.6-2.1-0.8-3.2"
/>
<linearGradient
id=
"SVGID_12_"
gradientUnits=
"userSpaceOnUse"
x1=
"37.1094"
y1=
"238.7858"
x2=
"37.1094"
y2=
"2.4079"
>
<stop
offset=
"0"
style=
"stop-color:#FBED1D"
/>
<stop
offset=
"1"
style=
"stop-color:#F05A2A"
/>
</linearGradient>
<path
class=
"st11"
d=
"M38.8,184c-1.2-0.5-2.3-1.1-3.5-1.7"
/>
<linearGradient
id=
"SVGID_13_"
gradientUnits=
"userSpaceOnUse"
x1=
"45.1619"
y1=
"238.7858"
x2=
"45.1619"
y2=
"2.4079"
>
<stop
offset=
"0"
style=
"stop-color:#FBED1D"
/>
<stop
offset=
"1"
style=
"stop-color:#F05A2A"
/>
</linearGradient>
<path
class=
"st12"
d=
"M46.8,186.5c-1.1-0.2-2.1-0.5-3.2-0.8"
/>
<linearGradient
id=
"SVGID_14_"
gradientUnits=
"userSpaceOnUse"
x1=
"29.9487"
y1=
"238.7858"
x2=
"29.9487"
y2=
"2.4079"
>
<stop
offset=
"0"
style=
"stop-color:#FBED1D"
/>
<stop
offset=
"1"
style=
"stop-color:#F05A2A"
/>
</linearGradient>
<path
class=
"st13"
d=
"M31.6,180c-1.1-0.8-2.2-1.6-3.3-2.5"
/>
<linearGradient
id=
"SVGID_15_"
gradientUnits=
"userSpaceOnUse"
x1=
"41.0239"
y1=
"238.7858"
x2=
"41.0239"
y2=
"2.4079"
>
<stop
offset=
"0"
style=
"stop-color:#FBED1D"
/>
<stop
offset=
"1"
style=
"stop-color:#F05A2A"
/>
</linearGradient>
<path
class=
"st14"
d=
"M42.7,185.4c-1.1-0.4-2.3-0.8-3.3-1.2"
/>
<linearGradient
id=
"SVGID_16_"
gradientUnits=
"userSpaceOnUse"
x1=
"33.4189"
y1=
"238.7858"
x2=
"33.4189"
y2=
"2.4079"
>
<stop
offset=
"0"
style=
"stop-color:#FBED1D"
/>
<stop
offset=
"1"
style=
"stop-color:#F05A2A"
/>
</linearGradient>
<path
class=
"st15"
d=
"M35.2,182.2c-1.2-0.7-2.4-1.4-3.5-2.1"
/>
<linearGradient
id=
"SVGID_17_"
gradientUnits=
"userSpaceOnUse"
x1=
"53.9595"
y1=
"238.7858"
x2=
"53.9595"
y2=
"2.4079"
>
<stop
offset=
"0"
style=
"stop-color:#FBED1D"
/>
<stop
offset=
"1"
style=
"stop-color:#F05A2A"
/>
</linearGradient>
<path
class=
"st16"
d=
"M54.1,154.2c-0.1,0-0.1,0-0.2-0.1"
/>
<linearGradient
id=
"SVGID_18_"
gradientUnits=
"userSpaceOnUse"
x1=
"21.1405"
y1=
"238.7858"
x2=
"21.1405"
y2=
"2.4079"
>
<stop
offset=
"0"
style=
"stop-color:#FBED1D"
/>
<stop
offset=
"1"
style=
"stop-color:#F05A2A"
/>
</linearGradient>
<path
class=
"st17"
d=
"M21.4,178.8c-0.2-0.2-0.3-0.3-0.5-0.5"
/>
<linearGradient
id=
"SVGID_19_"
gradientUnits=
"userSpaceOnUse"
x1=
"35.2646"
y1=
"238.7858"
x2=
"35.2646"
y2=
"2.4079"
>
<stop
offset=
"0"
style=
"stop-color:#FBED1D"
/>
<stop
offset=
"1"
style=
"stop-color:#F05A2A"
/>
</linearGradient>
<path
class=
"st18"
d=
"M35.2,182.2c0.1,0,0.1,0.1,0.2,0.1"
/>
<linearGradient
id=
"SVGID_20_"
gradientUnits=
"userSpaceOnUse"
x1=
"39.0979"
y1=
"238.7858"
x2=
"39.0979"
y2=
"2.4079"
>
<stop
offset=
"0"
style=
"stop-color:#FBED1D"
/>
<stop
offset=
"1"
style=
"stop-color:#F05A2A"
/>
</linearGradient>
<path
class=
"st19"
d=
"M39.3,184.2c-0.2-0.1-0.3-0.1-0.5-0.2"
/>
<linearGradient
id=
"SVGID_21_"
gradientUnits=
"userSpaceOnUse"
x1=
"31.6434"
y1=
"238.7858"
x2=
"31.6434"
y2=
"2.4079"
>
<stop
offset=
"0"
style=
"stop-color:#FBED1D"
/>
<stop
offset=
"1"
style=
"stop-color:#F05A2A"
/>
</linearGradient>
<path
class=
"st20"
d=
"M31.7,180.1C31.7,180.1,31.6,180.1,31.7,180.1"
/>
<linearGradient
id=
"SVGID_22_"
gradientUnits=
"userSpaceOnUse"
x1=
"28.2485"
y1=
"238.7858"
x2=
"28.2485"
y2=
"2.4079"
>
<stop
offset=
"0"
style=
"stop-color:#FBED1D"
/>
<stop
offset=
"1"
style=
"stop-color:#F05A2A"
/>
</linearGradient>
<path
class=
"st21"
d=
"M28.3,177.6C28.3,177.5,28.2,177.5,28.3,177.6"
/>
<linearGradient
id=
"SVGID_23_"
gradientUnits=
"userSpaceOnUse"
x1=
"43.1314"
y1=
"238.7858"
x2=
"43.1314"
y2=
"2.4079"
>
<stop
offset=
"0"
style=
"stop-color:#FBED1D"
/>
<stop
offset=
"1"
style=
"stop-color:#F05A2A"
/>
</linearGradient>
<path
class=
"st22"
d=
"M43.6,185.7c-0.3-0.1-0.6-0.2-0.9-0.3"
/>
<linearGradient
id=
"SVGID_24_"
gradientUnits=
"userSpaceOnUse"
x1=
"47.3468"
y1=
"238.7858"
x2=
"47.3468"
y2=
"2.4079"
>
<stop
offset=
"0"
style=
"stop-color:#FBED1D"
/>
<stop
offset=
"1"
style=
"stop-color:#F05A2A"
/>
</linearGradient>
<path
class=
"st23"
d=
"M46.8,186.5c0.4,0.1,0.8,0.2,1.2,0.2"
/>
<linearGradient
id=
"SVGID_25_"
gradientUnits=
"userSpaceOnUse"
x1=
"19.6975"
y1=
"238.7858"
x2=
"19.6975"
y2=
"2.4079"
>
<stop
offset=
"0"
style=
"stop-color:#FBED1D"
/>
<stop
offset=
"1"
style=
"stop-color:#F05A2A"
/>
</linearGradient>
<path
class=
"st24"
d=
"M19.9,168.4c-0.2-0.2-0.3-0.5-0.5-0.7"
/>
<linearGradient
id=
"SVGID_26_"
gradientUnits=
"userSpaceOnUse"
x1=
"17.4923"
y1=
"238.7858"
x2=
"17.4923"
y2=
"2.4079"
>
<stop
offset=
"0"
style=
"stop-color:#FBED1D"
/>
<stop
offset=
"1"
style=
"stop-color:#F05A2A"
/>
</linearGradient>
<path
class=
"st25"
d=
"M17.7,164.9c-0.2-0.3-0.3-0.6-0.5-0.9"
/>
<linearGradient
id=
"SVGID_27_"
gradientUnits=
"userSpaceOnUse"
x1=
"12.4278"
y1=
"238.7858"
x2=
"12.4278"
y2=
"2.4079"
>
<stop
offset=
"0"
style=
"stop-color:#FBED1D"
/>
<stop
offset=
"1"
style=
"stop-color:#F05A2A"
/>
</linearGradient>
<path
class=
"st26"
d=
"M12.5,148.5c0-0.3-0.1-0.6-0.1-0.9"
/>
<linearGradient
id=
"SVGID_28_"
gradientUnits=
"userSpaceOnUse"
x1=
"13.0965"
y1=
"238.7858"
x2=
"13.0965"
y2=
"2.4079"
>
<stop
offset=
"0"
style=
"stop-color:#FBED1D"
/>
<stop
offset=
"1"
style=
"stop-color:#F05A2A"
/>
</linearGradient>
<path
class=
"st27"
d=
"M13.2,152.9c-0.1-0.3-0.1-0.7-0.2-1"
/>
<linearGradient
id=
"SVGID_29_"
gradientUnits=
"userSpaceOnUse"
x1=
"14.1769"
y1=
"238.7858"
x2=
"14.1769"
y2=
"2.4079"
>
<stop
offset=
"0"
style=
"stop-color:#FBED1D"
/>
<stop
offset=
"1"
style=
"stop-color:#F05A2A"
/>
</linearGradient>
<path
class=
"st28"
d=
"M14.3,157.1c-0.1-0.3-0.2-0.7-0.3-1.1"
/>
<linearGradient
id=
"SVGID_30_"
gradientUnits=
"userSpaceOnUse"
x1=
"15.6479"
y1=
"238.7858"
x2=
"15.6479"
y2=
"2.4079"
>
<stop
offset=
"0"
style=
"stop-color:#FBED1D"
/>
<stop
offset=
"1"
style=
"stop-color:#F05A2A"
/>
</linearGradient>
<path
class=
"st29"
d=
"M15.9,161.1c-0.2-0.3-0.3-0.7-0.4-1"
/>
<linearGradient
id=
"SVGID_31_"
gradientUnits=
"userSpaceOnUse"
x1=
"22.2436"
y1=
"238.7858"
x2=
"22.2436"
y2=
"2.4079"
>
<stop
offset=
"0"
style=
"stop-color:#FBED1D"
/>
<stop
offset=
"1"
style=
"stop-color:#F05A2A"
/>
</linearGradient>
<path
class=
"st30"
d=
"M22.4,171.7c-0.1-0.1-0.2-0.3-0.4-0.4"
/>
<linearGradient
id=
"SVGID_32_"
gradientUnits=
"userSpaceOnUse"
x1=
"25.1051"
y1=
"238.7858"
x2=
"25.1051"
y2=
"2.4079"
>
<stop
offset=
"0"
style=
"stop-color:#FBED1D"
/>
<stop
offset=
"1"
style=
"stop-color:#F05A2A"
/>
</linearGradient>
<path
class=
"st31"
d=
"M25.2,174.8c-0.1-0.1-0.1-0.1-0.2-0.2"
/>
</g>
</svg>
public/app/plugins/datasource/lo
gging
/language_provider.test.ts
→
public/app/plugins/datasource/lo
ki
/language_provider.test.ts
View file @
721e1d75
File moved
public/app/plugins/datasource/lo
gging
/language_provider.ts
→
public/app/plugins/datasource/lo
ki
/language_provider.ts
View file @
721e1d75
...
...
@@ -36,7 +36,7 @@ export function addHistoryMetadata(item: CompletionItem, history: HistoryItem[])
};
}
export
default
class
Lo
gging
LanguageProvider
extends
LanguageProvider
{
export
default
class
Lo
ki
LanguageProvider
extends
LanguageProvider
{
labelKeys
?:
{
[
index
:
string
]:
string
[]
};
// metric -> [labelKey,...]
labelValues
?:
{
[
index
:
string
]:
{
[
index
:
string
]:
string
[]
}
};
// metric -> labelKey -> [labelValue,...]
logLabelOptions
:
any
[];
...
...
public/app/plugins/datasource/lo
gging
/module.ts
→
public/app/plugins/datasource/lo
ki
/module.ts
View file @
721e1d75
import
Datasource
from
'./datasource'
;
import
Lo
ggingStartPage
from
'./components/Logging
StartPage'
;
import
Lo
ggingQueryField
from
'./components/Logging
QueryField'
;
import
Lo
kiStartPage
from
'./components/Loki
StartPage'
;
import
Lo
kiQueryField
from
'./components/Loki
QueryField'
;
export
class
Lo
gging
ConfigCtrl
{
export
class
Lo
ki
ConfigCtrl
{
static
templateUrl
=
'partials/config.html'
;
}
export
{
Datasource
,
Lo
gging
ConfigCtrl
as
ConfigCtrl
,
Lo
gging
QueryField
as
ExploreQueryField
,
Lo
gging
StartPage
as
ExploreStartPage
,
Lo
ki
ConfigCtrl
as
ConfigCtrl
,
Lo
ki
QueryField
as
ExploreQueryField
,
Lo
ki
StartPage
as
ExploreStartPage
,
};
public/app/plugins/datasource/lo
gging
/partials/config.html
→
public/app/plugins/datasource/lo
ki
/partials/config.html
View file @
721e1d75
File moved
public/app/plugins/datasource/lo
gging
/plugin.json
→
public/app/plugins/datasource/lo
ki
/plugin.json
View file @
721e1d75
{
"type"
:
"datasource"
,
"name"
:
"
Grafana Logging
"
,
"id"
:
"lo
gging
"
,
"name"
:
"
Loki
"
,
"id"
:
"lo
ki
"
,
"metrics"
:
false
,
"alerting"
:
false
,
"annotations"
:
false
,
"logs"
:
true
,
"explore"
:
true
,
"info"
:
{
"description"
:
"
Grafana
Logging Data Source for Grafana"
,
"description"
:
"
Loki
Logging Data Source for Grafana"
,
"author"
:
{
"name"
:
"Grafana Project"
,
"url"
:
"https://grafana.com"
},
"logos"
:
{
"small"
:
"img/
grafana
_icon.svg"
,
"large"
:
"img/
grafana
_icon.svg"
"small"
:
"img/
loki
_icon.svg"
,
"large"
:
"img/
loki
_icon.svg"
},
"links"
:
[
{
"name"
:
"
Grafana Logging
"
,
"url"
:
"https://g
rafana.com/
"
"name"
:
"
Loki
"
,
"url"
:
"https://g
ithub.com/grafana/loki
"
}
],
"version"
:
"5.3.0"
}
}
\ No newline at end of file
}
public/app/plugins/datasource/lo
gging
/query_utils.test.ts
→
public/app/plugins/datasource/lo
ki
/query_utils.test.ts
View file @
721e1d75
File moved
public/app/plugins/datasource/lo
gging
/query_utils.ts
→
public/app/plugins/datasource/lo
ki
/query_utils.ts
View file @
721e1d75
File moved
public/app/plugins/datasource/lo
gging
/result_transformer.test.ts
→
public/app/plugins/datasource/lo
ki
/result_transformer.test.ts
View file @
721e1d75
File moved
public/app/plugins/datasource/lo
gging
/result_transformer.ts
→
public/app/plugins/datasource/lo
ki
/result_transformer.ts
View file @
721e1d75
File moved
public/app/plugins/datasource/lo
gging
/syntax.ts
→
public/app/plugins/datasource/lo
ki
/syntax.ts
View file @
721e1d75
File moved
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