Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
N
NetData
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Monitor
Incidents
Service Desk
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Ansible
Roles
NetData
Commits
cbfd08ab
Commit
cbfd08ab
authored
8 years ago
by
jurgenhaas
Browse files
Options
Downloads
Patches
Plain Diff
Create local dashboard
parent
bf53ec42
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
handlers/main.yml
+5
-0
5 additions, 0 deletions
handlers/main.yml
tasks/main.yml
+12
-5
12 additions, 5 deletions
tasks/main.yml
templates/tv-company.html
+44
-0
44 additions, 0 deletions
templates/tv-company.html
with
61 additions
and
5 deletions
handlers/main.yml
+
5
−
0
View file @
cbfd08ab
---
# file: roles/netdata/handlers/main.yml
-
name
:
"
Install
and
configure
NetData"
shell
:
./netdata-installer.sh --dont-wait
args
:
chdir
:
/opt/netdata
-
name
:
"
Include
NetData
to
Boot-List"
command
:
update-rc.d netdata defaults
...
...
This diff is collapsed.
Click to expand it.
tasks/main.yml
+
12
−
5
View file @
cbfd08ab
...
...
@@ -23,11 +23,8 @@
dest
:
"
/opt/netdata"
force
:
yes
depth
:
1
-
name
:
"
Install
and
configure
NetData"
shell
:
./netdata-installer.sh --dont-wait
args
:
chdir
:
/opt/netdata
notify
:
-
"
Install
and
configure
NetData"
-
name
:
"
Install
startup
script"
template
:
...
...
@@ -39,3 +36,13 @@
notify
:
-
"
Include
NetData
to
Boot-List"
-
"
Start
NetData"
-
name
:
"
Install
local
dashboard"
template
:
src=tv-company.html
dest=/usr/share/netdata/web/{{ lookup('env','ANSIBLE_COMPANY') }}.html
owner=netdata
group=netdata
mode=644
delegate_to
:
localhost
run_once
:
true
This diff is collapsed.
Click to expand it.
templates/tv-company.html
0 → 100644
+
44
−
0
View file @
cbfd08ab
<!DOCTYPE html>
<html
lang=
"en"
>
<head>
<title>
Tineon NetData
</title>
<meta
http-equiv=
"Content-Type"
content=
"text/html; charset=utf-8"
/>
<meta
charset=
"utf-8"
>
<meta
http-equiv=
"X-UA-Compatible"
content=
"IE=edge,chrome=1"
>
<meta
name=
"viewport"
content=
"width=device-width, initial-scale=1"
>
<meta
name=
"apple-mobile-web-app-capable"
content=
"yes"
>
<meta
name=
"apple-mobile-web-app-status-bar-style"
content=
"black-translucent"
>
<script>
var
netdataTheme
=
'
slate
'
;
</script>
<script
type=
"text/javascript"
src=
"dashboard.js"
></script>
<script>
NETDATA
.
options
.
current
.
destroy_on_hide
=
true
;
NETDATA
.
options
.
current
.
eliminate_zero_dimensions
=
true
;
NETDATA
.
options
.
current
.
stop_updates_when_focus_is_lost
=
false
;
var
RELOAD_EVERY
=
5
;
setTimeout
(
function
(){
location
.
reload
();
},
RELOAD_EVERY
*
60
*
1000
);
</script>
</head>
<body>
<div
style=
"width: 100%; text-align: center; display: inline-block;"
>
{% for host in groups.all %}
<a
href=
"http://{{ host }}:19999"
target=
"_blank"
>
<div
data-netdata=
"system.load"
data-host=
"http://{{ host }}:19999"
data-title=
"{{ host }}"
data-chart-library=
"gauge"
data-width=
"10%"
data-height=
"100px"
></div></a>
{% endfor %}
</div>
</body>
</html>
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