mirror of
https://github.com/goharbor/harbor.git
synced 2024-11-30 06:03:45 +01:00
d95f22448c
Add timed cache for exporter default cache time is 30s, cleanup job run every 4 hours Signed-off-by: DQ <dengq@vmware.com>
24 lines
835 B
Django/Jinja
24 lines
835 B
Django/Jinja
HARBOR_EXPORTER_PORT=8080
|
|
HARBOR_EXPORTER_METRICS_PATH=/metrics
|
|
HARBOR_EXPORTER_METRICS_ENABLED=true
|
|
HARBOR_EXPORTER_MAX_REQUESTS=30
|
|
HARBOR_EXPORTER_CACHE_TIME=30
|
|
HARBOR_EXPORTER_CACHE_CLEAN_INTERVAL=14400
|
|
HARBOR_METRIC_NAMESPACE=harbor
|
|
HARBOR_METRIC_SUBSYSTEM=exporter
|
|
HARBOR_SERVICE_HOST=core
|
|
{%if internal_tls.enabled %}
|
|
HARBOR_SERVICE_PORT=8443
|
|
HARBOR_SERVICE_SCHEME=https
|
|
{% else %}
|
|
HARBOR_SERVICE_PORT=8080
|
|
HARBOR_SERVICE_SCHEME=http
|
|
{% endif %}
|
|
HARBOR_DATABASE_HOST={{harbor_db_host}}
|
|
HARBOR_DATABASE_PORT={{harbor_db_port}}
|
|
HARBOR_DATABASE_USERNAME={{harbor_db_username}}
|
|
HARBOR_DATABASE_PASSWORD={{harbor_db_password}}
|
|
HARBOR_DATABASE_DBNAME={{harbor_db_name}}
|
|
HARBOR_DATABASE_SSLMODE={{harbor_db_sslmode}}
|
|
HARBOR_DATABASE_MAX_IDLE_CONNS={{harbor_db_max_idle_conns}}
|
|
HARBOR_DATABASE_MAX_OPEN_CONNS={{harbor_db_max_open_conns}} |