From 49ab7a55fad78fe0ddef5f2937cfa62f9904f7fa Mon Sep 17 00:00:00 2001 From: Ethan Shold Date: Fri, 21 Jun 2024 21:06:21 -0500 Subject: [PATCH] absolute path --- adguard_exporter.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/adguard_exporter.py b/adguard_exporter.py index 248ab9a..c9c7723 100755 --- a/adguard_exporter.py +++ b/adguard_exporter.py @@ -7,8 +7,8 @@ dns_queries_total = Counter('dns_queries_total', 'Total number of DNS queries') dns_query_duration_seconds = Gauge('dns_query_duration_seconds', 'Duration of DNS queries', ['qh', 'ip', 'qt', 'response_size', 'result_reason', 'status', 'upstream']) -log_file_path = 'querylog.json' -position_file_path = '.position' +log_file_path = '/opt/adguardhome/work/data/querylog.json' +position_file_path = '/opt/adguardhome/work/data/.position' def get_last_position(): try: