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
e0dee062
Unverified
Commit
e0dee062
authored
Dec 01, 2020
by
Ryan McKinley
Committed by
GitHub
Dec 01, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Live: publish all dashboard changes to a single channel (#29474)
parent
546f569e
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
4 deletions
+6
-4
pkg/services/live/features/dashboard.go
+5
-1
public/app/features/live/dashboard/dashboardWatcher.ts
+1
-3
No files found.
pkg/services/live/features/dashboard.go
View file @
e0dee062
...
...
@@ -48,7 +48,11 @@ func (h *DashboardHandler) publish(event dashboardEvent) error {
if
err
!=
nil
{
return
err
}
return
h
.
Publisher
(
"grafana/dashboard/"
+
event
.
UID
,
msg
)
err
=
h
.
Publisher
(
"grafana/dashboard/uid/"
+
event
.
UID
,
msg
)
if
err
!=
nil
{
return
err
}
return
h
.
Publisher
(
"grafana/dashboard/changes"
,
msg
)
}
// DashboardSaved will broadcast to all connected dashboards
...
...
public/app/features/live/dashboard/dashboardWatcher.ts
View file @
e0dee062
...
...
@@ -61,13 +61,11 @@ class DashboardWatcher {
this
.
channel
=
live
.
getChannel
({
scope
:
LiveChannelScope
.
Grafana
,
namespace
:
'dashboard'
,
path
:
uid
,
path
:
`uid/
${
uid
}
`
,
});
this
.
channel
.
getStream
().
subscribe
(
this
.
observer
);
this
.
uid
=
uid
;
}
console
.
log
(
'Watch'
,
uid
);
}
leave
()
{
...
...
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