diff --git a/README.md b/README.md index fa2ce75..12e1911 100644 --- a/README.md +++ b/README.md @@ -16,8 +16,8 @@ Usage: azure-devops-exporter [OPTIONS] Application Options: - --debug debug mode [$DEBUG] - -v, --verbose verbose mode [$VERBOSE] + --log.debug debug mode [$LOG_DEBUG] + --log.devel development mode [$LOG_DEVEL] --log.json Switch log output to json format [$LOG_JSON] --scrape.time= Default scrape time (time.duration) (default: 30m) [$SCRAPE_TIME] --scrape.time.projects= Scrape time for project metrics (time.duration) [$SCRAPE_TIME_PROJECTS] @@ -39,12 +39,14 @@ Application Options: --azuredevops.agentpool= Enable scrape metrics for agent pool (IDs) [$AZURE_DEVOPS_AGENTPOOL] --whitelist.project= Filter projects (UUIDs) [$AZURE_DEVOPS_FILTER_PROJECT] --blacklist.project= Filter projects (UUIDs) [$AZURE_DEVOPS_BLACKLIST_PROJECT] - --list.query= Pairs of query and project UUIDs in the form: '@' - [$AZURE_DEVOPS_QUERIES] - --cache.expiry= Internal cache expiry time (time.duration) (default: 30m) [$CACHE_EXPIRY] - --request.concurrency= Number of concurrent requests against dev.azure.com (default: 10) - [$REQUEST_CONCURRENCY] + --list.query= Pairs of query and project UUIDs in the form: '@' [$AZURE_DEVOPS_QUERIES] + --cache.path= Cache path (to folder, file://path... or + azblob://storageaccount.blob.core.windows.net/containername or + k8scm://{namespace}/{configmap}}) [$CACHE_PATH] + --request.concurrency= Number of concurrent requests against dev.azure.com (default: 10) [$REQUEST_CONCURRENCY] --request.retries= Number of retried requests against dev.azure.com (default: 3) [$REQUEST_RETRIES] + --servicediscovery.refresh= Refresh duration for servicediscovery (time.duration) (default: 30m) + [$SERVICEDISCOVERY_REFRESH] --limit.project= Limit number of projects (default: 100) [$LIMIT_PROJECT] --limit.builds-per-project= Limit builds per project (default: 100) [$LIMIT_BUILDS_PER_PROJECT] --limit.builds-per-definition= Limit builds per definition (default: 10) [$LIMIT_BUILDS_PER_DEFINITION] @@ -52,10 +54,10 @@ Application Options: --limit.releases-per-definition= Limit releases per definition (default: 100) [$LIMIT_RELEASES_PER_DEFINITION] --limit.deployments-per-definition= Limit deployments per definition (default: 100) [$LIMIT_DEPLOYMENTS_PER_DEFINITION] --limit.releasedefinitions-per-project= Limit builds per definition (default: 100) [$LIMIT_RELEASEDEFINITION_PER_PROJECT] - --limit.build-history-duration= Time (time.Duration) how long the exporter should look back for builds (default: - 48h) [$LIMIT_BUILD_HISTORY_DURATION] - --limit.release-history-duration= Time (time.Duration) how long the exporter should look back for releases (default: - 48h) [$LIMIT_RELEASE_HISTORY_DURATION] + --limit.build-history-duration= Time (time.Duration) how long the exporter should look back for builds (default: 48h) + [$LIMIT_BUILD_HISTORY_DURATION] + --limit.release-history-duration= Time (time.Duration) how long the exporter should look back for releases (default: 48h) + [$LIMIT_RELEASE_HISTORY_DURATION] --server.bind= Server address (default: :8080) [$SERVER_BIND] --server.timeout.read= Server read timeout (default: 5s) [$SERVER_TIMEOUT_READ] --server.timeout.write= Server write timeout (default: 10s) [$SERVER_TIMEOUT_WRITE] diff --git a/config/opts.go b/config/opts.go index b4e55dc..9929d81 100644 --- a/config/opts.go +++ b/config/opts.go @@ -57,7 +57,7 @@ type ( // cache settings Cache struct { - Path string `long:"cache.path" env:"CACHE_PATH" description:"Cache path (to folder, file://path... or azblob://storageaccount.blob.core.windows.net/containername)"` + Path string `long:"cache.path" env:"CACHE_PATH" description:"Cache path (to folder, file://path... or azblob://storageaccount.blob.core.windows.net/containername or k8scm://{namespace}/{configmap}})"` } Request struct {