Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
alexander lunev
noc
Commits
b8d1d69a
Commit
b8d1d69a
authored
Dec 15, 2016
by
Aleksey Shirokih
Browse files
merge
--HG-- branch : feature/docker
parents
bb9ad17b
2ffc95f8
Changes
162
Hide whitespace changes
Inline
Side-by-side
ansible/roles/escalator/handlers/main.yml
0 → 100644
View file @
b8d1d69a
---
-
name
:
reload telegraf
service
:
name
:
telegraf
state
:
restarted
ansible/roles/escalator/meta/main.yml
0 → 100644
View file @
b8d1d69a
---
ansible/roles/escalator/tasks/main.yml
0 → 100644
View file @
b8d1d69a
-
name
:
"
Include
OS-specific
tasks"
include
:
"
os/{{
ansible_distribution
}}/main.yml"
-
name
:
Install escalator monitoring
template
:
src
:
"
etc/telegraf/telegraf.d/noc-escalator.conf.j2"
dest
:
"
{{etc_prefix}}/telegraf/telegraf.d/noc-escalator.conf"
notify
:
reload telegraf
tags
:
-
config
\ No newline at end of file
ansible/roles/escalator/tasks/os/CentOS/main.yml
0 → 100644
View file @
b8d1d69a
ansible/roles/escalator/tasks/os/Debian/main.yml
0 → 100644
View file @
b8d1d69a
ansible/roles/escalator/tasks/os/FreeBSD/main.yml
0 → 100644
View file @
b8d1d69a
---
ansible/roles/escalator/tasks/os/RedHat/main.yml
0 → 100644
View file @
b8d1d69a
ansible/roles/escalator/tasks/os/Ubuntu/main.yml
0 → 100644
View file @
b8d1d69a
ansible/roles/escalator/templates/etc/telegraf/telegraf.d/noc-escalator.conf.j2
0 → 100644
View file @
b8d1d69a
[[inputs.procstat]]
pattern = "noc-escalator"
fielddrop=["involuntary_context_switches", "voluntary_context_switches", "pid", "cpu_time_guest","cpu_time_guest_nice","cpu_time_idle","cpu_time_iowait","cpu_time_irq","cpu_time_nice","cpu_time_soft_irq","cpu_time_steal","cpu_time_stolen"]
[[inputs.httpjson]]
name = "noc-escalator"
servers = [
{% for service in noc_config.services -%}
{% if "escalator" in service -%}
{% for host in noc_config.services[service] -%}
{% if ansible_host in host -%}
"http://{{host}}/mon/",
{%- endif %}
{%- endfor %}
{%- endif %}
{%- endfor %}
]
method = "GET"
tag_keys = ["service", "instance"]
tagexclude = ["server"]
\ No newline at end of file
ansible/roles/tgsender/handlers/main.yml
0 → 100644
View file @
b8d1d69a
---
-
name
:
reload telegraf
service
:
name
:
telegraf
state
:
restarted
ansible/roles/tgsender/meta/main.yml
0 → 100644
View file @
b8d1d69a
---
\ No newline at end of file
ansible/roles/tgsender/tasks/main.yml
0 → 100644
View file @
b8d1d69a
---
-
include
:
"
os/{{
ansible_distribution
}}/main.yml"
-
name
:
Install tgsender monitoring
template
:
src
:
"
etc/telegraf/telegraf.d/noc-tgsender.conf.j2"
dest
:
"
{{etc_prefix}}/telegraf/telegraf.d/noc-tgsender.conf"
notify
:
reload telegraf
tags
:
-
config
ansible/roles/tgsender/tasks/os/CentOS/main.yml
0 → 100644
View file @
b8d1d69a
---
ansible/roles/tgsender/tasks/os/Debian/main.yml
0 → 100644
View file @
b8d1d69a
---
ansible/roles/tgsender/tasks/os/FreeBSD/main.yml
0 → 100644
View file @
b8d1d69a
---
ansible/roles/tgsender/tasks/os/RedHat/main.yml
0 → 100644
View file @
b8d1d69a
---
ansible/roles/tgsender/tasks/os/Ubuntu/main.yml
0 → 100644
View file @
b8d1d69a
---
ansible/roles/tgsender/templates/etc/telegraf/telegraf.d/noc-tgsender.conf.j2
0 → 100644
View file @
b8d1d69a
[[inputs.procstat]]
pattern = "noc-tgsender"
fielddrop=["involuntary_context_switches", "voluntary_context_switches", "pid", "cpu_time_guest","cpu_time_guest_nice","cpu_time_idle","cpu_time_iowait","cpu_time_irq","cpu_time_nice","cpu_time_soft_irq","cpu_time_steal","cpu_time_stolen"]
[[inputs.httpjson]]
name = "noc-tgsender"
servers = [
{% for service in noc_config.services -%}
{% if "tgsender" in service -%}
{% for host in noc_config.services[service] -%}
{% if ansible_host in host -%}
"http://{{host}}/mon/",
{%- endif %}
{%- endfor %}
{%- endif %}
{%- endfor %}
]
method = "GET"
tag_keys = ["service", "instance"]
tagexclude = ["server"]
\ No newline at end of file
bi/models/dashboard.py
View file @
b8d1d69a
...
...
@@ -11,7 +11,7 @@ import datetime
## Third-party modules
from
mongoengine.document
import
Document
from
mongoengine.fields
import
(
StringField
,
DateTimeField
,
ListField
,
IntField
)
IntField
,
BinaryField
)
class
Dashboard
(
Document
):
...
...
@@ -33,7 +33,7 @@ class Dashboard(Document):
# Config format version
format
=
IntField
(
default
=
1
)
# gzip'ed data
config
=
String
Field
()
config
=
Binary
Field
()
#
created
=
DateTimeField
(
default
=
datetime
.
datetime
.
now
)
changed
=
DateTimeField
(
default
=
datetime
.
datetime
.
now
)
...
...
collections/inv.capabilities/Huawei/NDP.json
0 → 100644
View file @
b8d1d69a
{
"name"
:
"Huawei | NDP"
,
"$collection"
:
"inv.capabilities"
,
"uuid"
:
"4853bafd-51d5-4bde-82e7-99337e88a82b"
,
"description"
:
"Huawei NDP is enabled"
,
"type"
:
"bool"
,
"card_template"
:
""
}
\ No newline at end of file
Prev
1
2
3
4
5
…
9
Next
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment