Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Neutrinet
infra-ansible
Commits
87d87db9
Commit
87d87db9
authored
May 15, 2022
by
HgO
Browse files
set prometheus external url
parent
46e0498a
Pipeline
#820
passed with stage
in 3 minutes and 15 seconds
Changes
4
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
inventories/group_vars/prometheus/vars.yml
View file @
87d87db9
telegraf_prometheus_client_listen_address
:
localhost
prometheus_version
:
2.33.3
prometheus_url
:
"
http://{{
ansible_fqdn
}}"
prometheus_telegraf_hosts
:
"
{{
groups.all
}}"
prometheus_username
:
prometheus
...
...
inventories/group_vars/prometheus_haproxy/prometheus.yml
View file @
87d87db9
prometheus_url
:
"
https://prometheus.neutrinet.be"
prometheus_telegraf_hosts
:
-
"
{{
inventory_hostname
}}"
-
vpn.neutri.net
...
...
roles/prometheus/defaults/main.yml
View file @
87d87db9
prometheus_version
:
2.33.3
prometheus_url
:
"
https://{{
ansible_fqdn
}}"
prometheus_telegraf_hosts
:
"
{{
groups.all
}}"
prometheus_username
:
prometheus
prometheus_password
:
neutrinet
...
...
roles/prometheus/templates/systemd/prometheus.service.j2
View file @
87d87db9
...
...
@@ -13,6 +13,7 @@ ExecStart=/usr/local/bin/prometheus \
--storage.tsdb.path={{ prometheus_storage_path }} \
--storage.tsdb.retention.time={{ prometheus_storage_retention }} \
--web.listen-address='localhost:9090' \
--web.external-url='{{ prometheus_url }}' \
{% if not prometheus_remote_write_url %}
{# If we did NOT provide a remote write url, that means we are the receiver #}
--web.enable-remote-write-receiver \
...
...
Write
Preview
Supports
Markdown
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