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
cc61d9c5
Commit
cc61d9c5
authored
Feb 14, 2019
by
Torkel Ödegaard
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' into move-error-boundry
parents
0c72fb3b
4f3b9c6c
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
125 additions
and
4 deletions
+125
-4
devenv/docker/ha_test/docker-compose.yaml
+31
-0
devenv/docker/ha_test/fluentd/fluentd.conf
+74
-0
devenv/docker/ha_test/grafana/provisioning/datasources/datasources.yaml
+5
-0
devenv/docker/ha_test/prometheus/prometheus.yml
+9
-0
docs/sources/auth/generic-oauth.md
+2
-0
public/app/features/dashboard/dashgrid/PanelChrome.tsx
+2
-2
public/sass/_variables.scss.d.ts
+2
-2
No files found.
devenv/docker/ha_test/docker-compose.yaml
View file @
cc61d9c5
...
...
@@ -7,6 +7,13 @@ services:
-
"
80:80"
volumes
:
-
/var/run/docker.sock:/tmp/docker.sock:ro
depends_on
:
db
:
condition
:
service_healthy
logging
:
driver
:
"
fluentd"
options
:
tag
:
nginx
db
:
image
:
mysql:5.6
...
...
@@ -66,6 +73,8 @@ services:
# - GF_DATABASE_SSL_MODE=disable
# - GF_SESSION_PROVIDER=postgres
# - GF_SESSION_PROVIDER_CONFIG=user=grafana password=password host=db port=5432 dbname=grafana sslmode=disable
-
GF_SERVER_ROUTER_LOGGING=true
-
GF_LOG_CONSOLE_FORMAT=json
-
GF_LOG_FILTERS=alerting.notifier:debug,alerting.notifier.slack:debug,auth:debug
-
GF_AUTH_TOKEN_ROTATION_INTERVAL_MINUTES=2
ports
:
...
...
@@ -73,6 +82,10 @@ services:
depends_on
:
db
:
condition
:
service_healthy
logging
:
driver
:
"
fluentd"
options
:
tag
:
grafana
prometheus
:
image
:
prom/prometheus:v2.4.2
...
...
@@ -82,3 +95,21 @@ services:
-
VIRTUAL_HOST=prometheus.loc
ports
:
-
9090
loki
:
image
:
grafana/loki:master
environment
:
-
VIRTUAL_HOST=loki.loc
ports
:
-
3100
command
:
-config.file=/etc/loki/local-config.yaml
fluentd
:
image
:
grafana/fluent-plugin-loki:master
volumes
:
-
./fluentd/fluentd.conf:/fluentd/etc/fluentd.conf
links
:
-
loki
ports
:
-
"
24224:24224"
-
"
24224:24224/udp"
devenv/docker/ha_test/fluentd/fluentd.conf
0 → 100644
View file @
cc61d9c5
<
source
>
@
type
forward
port
24224
bind
0
.
0
.
0
.
0
</
source
>
<
filter
grafana
>
@
type
parser
<
parse
>
@
type
json
json_parser
json
</
parse
>
replace_invalid_sequence
true
emit_invalid_record_to_error
false
key_name
log
reserve_data
true
remove_key_name_field
true
</
filter
>
<
filter
nginx
>
@
type
parser
format
/^.*
m
(?<
host
>[^ ]*) (?<
remote
>[^ ]*) \- \- \[(?<
time
>[^\]]*)\] \
"(?<method>\S+)(?: +(?<path>[^\"
]*) +\
S
*)?\
" (?<code>[^ ]*) (?<size>[^ ]*)(?: \"
(?<
referer
>[^\
"]*)\"
\
"(?<agent>[^\"
]*)\
"
)?$/
time_format
%
d
/%
b
/%
Y
:%
H
:%
M
:%
S
%
z
key_name
log
reserve_data
true
remove_key_name_field
true
</
filter
>
<
filter
**>
@
type
record_transformer
remove_keys
"source,t"
</
filter
>
<
match
grafana
>
@
type
copy
<
store
>
@
type
stdout
output_type
json
</
store
>
<
store
>
@
type
loki
url
"http://loki:3100"
extra_labels
{
"app"
:
"grafana"
}
label_keys
"container_name,container_id,logger"
flush_interval
10
s
flush_at_shutdown
true
buffer_chunk_limit
1
m
</
store
>
</
match
>
<
filter
nginx
>
@
type
record_transformer
<
record
>
lvl
"info"
</
record
>
</
filter
>
<
match
nginx
>
@
type
copy
<
store
>
@
type
stdout
output_type
json
</
store
>
<
store
>
@
type
loki
url
"http://loki:3100"
extra_labels
{
"app"
:
"nginx"
}
label_keys
"container_name,container_id"
flush_interval
10
s
flush_at_shutdown
true
buffer_chunk_limit
1
m
</
store
>
</
match
>
\ No newline at end of file
devenv/docker/ha_test/grafana/provisioning/datasources/datasources.yaml
View file @
cc61d9c5
...
...
@@ -9,3 +9,8 @@ datasources:
timeInterval
:
10s
queryTimeout
:
30s
httpMethod
:
POST
-
name
:
Loki
type
:
loki
access
:
proxy
url
:
http://loki:3100
devenv/docker/ha_test/prometheus/prometheus.yml
View file @
cc61d9c5
...
...
@@ -37,3 +37,11 @@ scrape_configs:
type
:
'
A'
port
:
9104
refresh_interval
:
10s
-
job_name
:
'
loki'
dns_sd_configs
:
-
names
:
-
'
loki'
type
:
'
A'
port
:
3100
refresh_interval
:
10s
\ No newline at end of file
docs/sources/auth/generic-oauth.md
View file @
cc61d9c5
...
...
@@ -211,6 +211,8 @@ allowed_organizations =
## Set up OAuth2 with non-compliant providers
> Only available in Grafana v6.0 and above.
Some OAuth2 providers might not support
`client_id`
and
`client_secret`
passed via Basic Authentication HTTP header, which
results in
`invalid_client`
error. To allow Grafana to authenticate via these type of providers, the client identifiers must be
send via POST body, which can be enabled via the following settings:
...
...
public/app/features/dashboard/dashgrid/PanelChrome.tsx
View file @
cc61d9c5
...
...
@@ -140,8 +140,8 @@ export class PanelChrome extends PureComponent<Props, State> {
panelData=
{
panelData
}
timeRange=
{
timeRange
}
options=
{
panel
.
getOptions
(
plugin
.
exports
.
PanelDefaults
)
}
width=
{
width
-
2
*
variables
.
panel
HorizontalP
adding
}
height=
{
height
-
PANEL_HEADER_HEIGHT
-
variables
.
panel
VerticalP
adding
}
width=
{
width
-
2
*
variables
.
panel
horizontalp
adding
}
height=
{
height
-
PANEL_HEADER_HEIGHT
-
variables
.
panel
verticalp
adding
}
renderCounter=
{
renderCounter
}
onInterpolate=
{
this
.
onInterpolate
}
/>
...
...
public/sass/_variables.scss.d.ts
View file @
cc61d9c5
export
interface
GrafanaVariables
{
panel
HorizontalP
adding
:
number
;
panel
VerticalP
adding
:
number
;
panel
horizontalp
adding
:
number
;
panel
verticalp
adding
:
number
;
}
declare
const
variables
:
GrafanaVariables
;
...
...
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