N8n /metrics endpoint in docker container

I used the env vars
N8N_METRICS=true
N8N_DIAGNOSTICS_ENABLED=true

but when I GET the /metrics endpoint I only get
Cannot GET /metrics

N8n + Grafana Full Node.js Metrics Dashboard (JSON Example Included!) adding link also u may find useful :slight_smile: Did you rebuild after adding into yml file or did you add env vars onto host machine? @divinskyilia0

k -n dev exec -it n8n-66c48bdb6c-ct5z4 – env | grep -i metrics
N8N_METRICS=true
N8N_METRICS_INCLUDE_DEFAULT_METRICS=true
N8N_METRICS_INCLUDE_CACHE_METRICS=true
N8N_METRICS_INCLUDE_MESSAGE_EVENT_BUS_METRICS=true
N8N_METRICS_INCLUDE_WORKFLOW_ID_LABEL=true
N8N_METRICS_INCLUDE_API_METHOD_LABEL=true
N8N_METRICS_INCLUDE_API_STATUS_CODE_LABEL=true
N8N_METRICS_QUEUE_METRICS_INTERVAL=10


as far as I can tell I did everything correctly

[SOLVED]
the configMap didn’t load correctly, should work fine

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.