Fix up music stuffs
This commit is contained in:
parent
7a72280c6e
commit
760af8dabe
@ -140,9 +140,6 @@
|
|||||||
proxy_pass: http://prometheus:9090
|
proxy_pass: http://prometheus:9090
|
||||||
# desu.ltd media bullshit
|
# desu.ltd media bullshit
|
||||||
- name: music.desu.ltd
|
- name: music.desu.ltd
|
||||||
directives:
|
|
||||||
- "allow {{ common_home_address }}/{{ common_home_address_mask }}"
|
|
||||||
- "deny all"
|
|
||||||
proxy_pass: http://navidrome:4533
|
proxy_pass: http://navidrome:4533
|
||||||
- name: lidarr.media.desu.ltd
|
- name: lidarr.media.desu.ltd
|
||||||
directives:
|
directives:
|
||||||
|
@ -6,6 +6,7 @@
|
|||||||
user: 911:911
|
user: 911:911
|
||||||
env:
|
env:
|
||||||
ND_BASEURL: "https://music.desu.ltd"
|
ND_BASEURL: "https://music.desu.ltd"
|
||||||
|
ND_PROMETHEUS_ENABLED: "true"
|
||||||
ND_LOGLEVEL: "info"
|
ND_LOGLEVEL: "info"
|
||||||
networks:
|
networks:
|
||||||
- name: web
|
- name: web
|
||||||
|
@ -81,6 +81,27 @@ scrape_configs:
|
|||||||
{# #}
|
{# #}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
{% endfor %}
|
||||||
|
|
||||||
|
# This job takes in information from Netbox on the generic "prom-metrics" tag
|
||||||
|
# It's useful for all sorts of stuff
|
||||||
|
- job_name: "generic"
|
||||||
|
scheme: "https"
|
||||||
|
static_configs:
|
||||||
|
- targets:
|
||||||
|
{% for host in groups['tags_nagios'] %}
|
||||||
|
{% set vars = hostvars[host] %}
|
||||||
|
{% for service in vars.services %}
|
||||||
|
{% for tag in service.tags %}
|
||||||
|
{# #}
|
||||||
|
{% if tag.slug == "prom-metrics" %}
|
||||||
|
{% for port in service.ports %}
|
||||||
|
- "{{ service.name }}:{{ port }}"
|
||||||
|
{% endfor %}
|
||||||
|
{% endif %}
|
||||||
|
{# #}
|
||||||
|
{% endfor %}
|
||||||
|
{% endfor %}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
|
||||||
# These two jobs are included for every node in our inventory
|
# These two jobs are included for every node in our inventory
|
||||||
|
Loading…
Reference in New Issue
Block a user