add prometheus metrics

This commit is contained in:
AndrewPaglusch
2023-12-08 22:50:16 -06:00
committed by Andrew Paglusch
parent 70be5b0e44
commit 38340be5e2
3 changed files with 24 additions and 0 deletions

View File

@@ -17,6 +17,12 @@ nebula_lighthouse_public_port: 4242
nebula_lighthouse_is_relay: true nebula_lighthouse_is_relay: true
nebula_lighthouse_extra_config: {} nebula_lighthouse_extra_config: {}
nebula_metrics_prometheus_enabled: false
nebula_metrics_prometheus_listen: "127.0.0.1:4244"
nebula_metrics_prometheus_path: "/metrics"
nebula_metrics_prometheus_namespace: nebula
nebula_metrics_prometheus_interval: 10s
nebula_firewall_block_action: drop nebula_firewall_block_action: drop
nebula_inbound_rules: nebula_inbound_rules:

View File

@@ -68,6 +68,15 @@ logging:
level: info level: info
format: text format: text
{% if nebula_metrics_prometheus_enabled %}
stats:
type: prometheus
listen: {{ nebula_metrics_prometheus_listen }}
path: {{ nebula_metrics_prometheus_path }}
namespace: {{ nebula_metrics_prometheus_namespace }}
interval: {{ nebula_metrics_prometheus_interval }}
{% endif %}
# you NEED this firewall section. # you NEED this firewall section.
# #
# Nebula has its own firewall in addition to anything # Nebula has its own firewall in addition to anything

View File

@@ -67,6 +67,15 @@ logging:
level: info level: info
format: text format: text
{% if nebula_metrics_prometheus_enabled %}
stats:
type: prometheus
listen: {{ nebula_metrics_prometheus_listen }}
path: {{ nebula_metrics_prometheus_path }}
namespace: {{ nebula_metrics_prometheus_namespace }}
interval: {{ nebula_metrics_prometheus_interval }}
{% endif %}
# you NEED this firewall section. # you NEED this firewall section.
# #
# Nebula has its own firewall in addition to anything # Nebula has its own firewall in addition to anything