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
Compare revisions
3bb02b3193eb88d5ddc13512bb305d3b6d29b0af to 3a9c57e7e5815e8e5025527ea788db52044c26aa
Compare revisions
Changes are shown as if the
source
revision was being merged into the
target
revision.
Learn more about comparing revisions.
Source
ansible/roles/netdata
Select target project
No results found
3a9c57e7e5815e8e5025527ea788db52044c26aa
Select Git revision
Branches
main
Swap
Target
ansible/roles/netdata
Select target project
ansible/roles/netdata
1 result
3bb02b3193eb88d5ddc13512bb305d3b6d29b0af
Select Git revision
Branches
main
Show changes
Only incoming changes from source
Include changes to target since source was created
Compare
Commits on Source (1)
Move httpcheck from python to go
· 3a9c57e7
jurgenhaas
authored
3 months ago
3a9c57e7
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
tasks/configure.yml
+1
-1
1 addition, 1 deletion
tasks/configure.yml
templates/go.d/httpcheck.conf
+17
-7
17 additions, 7 deletions
templates/go.d/httpcheck.conf
with
18 additions
and
8 deletions
tasks/configure.yml
View file @
3a9c57e7
...
...
@@ -60,7 +60,6 @@
mode
:
0644
backup
:
yes
with_items
:
-
httpcheck.conf
-
phpfpm.conf
-
oracle.conf
notify
:
...
...
@@ -75,6 +74,7 @@
mode
:
0644
backup
:
yes
with_items
:
-
httpcheck.conf
-
fluentd.conf
-
phpfpm.conf
notify
:
...
...
This diff is collapsed.
Click to expand it.
templates/
python
.d/httpcheck.conf
→
templates/
go
.d/httpcheck.conf
View file @
3a9c57e7
chart_cleanup
:
0
redirect
:
no
jobs
:
{%
for
item
in
netdata_httpcheck
|
default
([]) %}
{%
if
not
item
.
disabled
|
default
(
false
)
and
item
.
username
is
not
defined
%}
{{
item
.
name
|
to_uuid
}}:
name
: {{
item
.
name
}}
-
name
: {{
item
.
name
}}
url
: {{
item
.
url
}}
{%
if
item
.
method
is
defined
%}
method
: {{
item
.
method
}}
...
...
@@ -28,6 +26,9 @@ redirect: no
{%
if
item
.
header
is
defined
%}
header
: {{
item
.
header
|
to_json
}}
{%
endif
%}
{%
if
item
.
status_accepted
is
defined
%}
status_accepted
: {{
item
.
status_accepted
|
to_json
}}
{%
endif
%}
{%
endif
%}
{%
endfor
%}
{%
for
drupal
in
drupal_settings
|
default
([]) %}
...
...
@@ -35,7 +36,7 @@ redirect: no
{%
if
site
.
uptime
is
defined
and
not
site
.
uptime
.
disabled
|
default
(
false
) %}
{{
site
.
uptime
.
name
|
to_uuid
}}:
name
: {{
site
.
uptime
.
name
}}
-
name
: {{
site
.
uptime
.
name
}}
url
: {{
site
.
protocol
|
default
(
'https'
) }}://{{
site
.
domain
}}{%
if
site
.
uptime
.
path
is
defined
%}/{{
site
.
uptime
.
path
}}{%
endif
%}
{%
if
site
.
uptime
.
pollerParams
|
default
(
false
)
and
site
.
uptime
.
pollerParams
.
body
|
default
(
false
) %}
...
...
@@ -50,6 +51,9 @@ redirect: no
{%
if
site
.
uptime
.
header
is
defined
%}
header
: {{
site
.
uptime
.
header
|
to_json
}}
{%
endif
%}
{%
if
site
.
status_accepted
is
defined
%}
status_accepted
: {{
site
.
status_accepted
|
to_json
}}
{%
endif
%}
{%
endif
%}
{%
endfor
%}
{%
endfor
%}
...
...
@@ -57,7 +61,7 @@ redirect: no
{%
if
site
.
uptime
is
defined
and
not
site
.
uptime
.
disabled
|
default
(
false
) %}
{{
site
.
uptime
.
name
|
to_uuid
}}:
name
: {{
site
.
uptime
.
name
}}
-
name
: {{
site
.
uptime
.
name
}}
url
: {{
site
.
protocol
|
default
(
'https'
) }}://{{
site
.
domain
}}{%
if
site
.
uptime
.
path
is
defined
%}/{{
site
.
uptime
.
path
}}{%
endif
%}
{%
if
site
.
uptime
.
pollerParams
|
default
(
false
)
and
site
.
uptime
.
pollerParams
.
body
|
default
(
false
) %}
...
...
@@ -70,15 +74,21 @@ redirect: no
{%
if
site
.
uptime
.
header
is
defined
%}
header
: {{
site
.
uptime
.
header
|
to_json
}}
{%
endif
%}
{%
if
site
.
status_accepted
is
defined
%}
status_accepted
: {{
site
.
status_accepted
|
to_json
}}
{%
endif
%}
{%
endif
%}
{%
if
site
.
ocs
is
defined
%}
{{
site
.
domain
|
to_uuid
}}:
name
:
NextCloud
OCS
{{
site
.
id
}}
-
name
:
NextCloud
OCS
{{
site
.
id
}}
url
: {{
site
.
protocol
|
default
(
'https'
) }}://{{
site
.
domain
}}/
ocs
/
v2
.
php
/
apps
/
serverinfo
/
api
/
v1
/
info
?
format
=
json
header
:
Authorization
:
Basic
{{ (
site
.
ocs
.
username
+
':'
+
site
.
ocs
.
password
) |
b64encode
}}
regex
: {{
'"status":"ok"'
|
regex_escape
() }}
update_every
:
1
{{
loop
.
index
}}
{%
if
site
.
status_accepted
is
defined
%}
status_accepted
: {{
site
.
status_accepted
|
to_json
}}
{%
endif
%}
{%
endif
%}
{%
endfor
%}
This diff is collapsed.
Click to expand it.