Skip to content

Commit

Permalink
Last format changes
Browse files Browse the repository at this point in the history
  • Loading branch information
catttam committed Oct 18, 2024
1 parent e8c8574 commit bca6c09
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 4 deletions.
3 changes: 3 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"python.analysis.typeCheckingMode": "basic"
}
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ RUN pip3 install -r /tmp/requirements.txt

# Create the directory structure for the metrics
RUN mkdir -p /app/metrics/rawmetrics/filtered_by_status_code && \
mkdir -p /app/metrics/goaccess-metrics && \
mkdir -p /app/metrics/logs-metrics && \
mkdir -p /app/metrics/prometheus-metrics && \
mkdir -p /app/ui && \
mkdir -p /var/log/ingresslogs
Expand Down
4 changes: 2 additions & 2 deletions create_index.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,8 +81,8 @@ def generate_html(out_file, dir_path, out_url=''):
icon = get_icon(file_name)
if "dashboard" in file_name:
file_name = "GoAccess Dashboard"
if "goaccess-metrics" in file_name:
file_name = "GoAccess Metrics"
if "logs-metrics" in file_name:
file_name = "Logs Metrics"
if "prometheus-metrics" in file_name:
file_name = "Prometheus Metrics"
file_entry = html_file_entry_template.format(url=file_url, id=i, icon=icon, filename=file_name)
Expand Down
2 changes: 1 addition & 1 deletion logs_metric_parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

TIMESTAMP = str(int(time.time()))

OUTPUT_PATH = "/app/metrics/goaccess-metrics"
OUTPUT_PATH = "/app/metrics/logs-metrics"

parser = argparse.ArgumentParser(description="Command-line to retreive Prometheus metrics from OSCAR", formatter_class=argparse.ArgumentDefaultsHelpFormatter)
parser.add_argument("-f", "--file_path", type=str, help="Logfile path/name")
Expand Down

0 comments on commit bca6c09

Please sign in to comment.