Skip to content

Commit 5017994

Browse files
committed
update options
Signed-off-by: Markus Blaschke <[email protected]>
1 parent 122274b commit 5017994

File tree

2 files changed

+14
-12
lines changed

2 files changed

+14
-12
lines changed

README.md

Lines changed: 13 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@ Usage:
1616
azure-devops-exporter [OPTIONS]
1717
1818
Application Options:
19-
--debug debug mode [$DEBUG]
20-
-v, --verbose verbose mode [$VERBOSE]
19+
--log.debug debug mode [$LOG_DEBUG]
20+
--log.devel development mode [$LOG_DEVEL]
2121
--log.json Switch log output to json format [$LOG_JSON]
2222
--scrape.time= Default scrape time (time.duration) (default: 30m) [$SCRAPE_TIME]
2323
--scrape.time.projects= Scrape time for project metrics (time.duration) [$SCRAPE_TIME_PROJECTS]
@@ -39,23 +39,25 @@ Application Options:
3939
--azuredevops.agentpool= Enable scrape metrics for agent pool (IDs) [$AZURE_DEVOPS_AGENTPOOL]
4040
--whitelist.project= Filter projects (UUIDs) [$AZURE_DEVOPS_FILTER_PROJECT]
4141
--blacklist.project= Filter projects (UUIDs) [$AZURE_DEVOPS_BLACKLIST_PROJECT]
42-
--list.query= Pairs of query and project UUIDs in the form: '<queryId>@<projectId>'
43-
[$AZURE_DEVOPS_QUERIES]
44-
--cache.expiry= Internal cache expiry time (time.duration) (default: 30m) [$CACHE_EXPIRY]
45-
--request.concurrency= Number of concurrent requests against dev.azure.com (default: 10)
46-
[$REQUEST_CONCURRENCY]
42+
--list.query= Pairs of query and project UUIDs in the form: '<queryId>@<projectId>' [$AZURE_DEVOPS_QUERIES]
43+
--cache.path= Cache path (to folder, file://path... or
44+
azblob://storageaccount.blob.core.windows.net/containername or
45+
k8scm://{namespace}/{configmap}}) [$CACHE_PATH]
46+
--request.concurrency= Number of concurrent requests against dev.azure.com (default: 10) [$REQUEST_CONCURRENCY]
4747
--request.retries= Number of retried requests against dev.azure.com (default: 3) [$REQUEST_RETRIES]
48+
--servicediscovery.refresh= Refresh duration for servicediscovery (time.duration) (default: 30m)
49+
[$SERVICEDISCOVERY_REFRESH]
4850
--limit.project= Limit number of projects (default: 100) [$LIMIT_PROJECT]
4951
--limit.builds-per-project= Limit builds per project (default: 100) [$LIMIT_BUILDS_PER_PROJECT]
5052
--limit.builds-per-definition= Limit builds per definition (default: 10) [$LIMIT_BUILDS_PER_DEFINITION]
5153
--limit.releases-per-project= Limit releases per project (default: 100) [$LIMIT_RELEASES_PER_PROJECT]
5254
--limit.releases-per-definition= Limit releases per definition (default: 100) [$LIMIT_RELEASES_PER_DEFINITION]
5355
--limit.deployments-per-definition= Limit deployments per definition (default: 100) [$LIMIT_DEPLOYMENTS_PER_DEFINITION]
5456
--limit.releasedefinitions-per-project= Limit builds per definition (default: 100) [$LIMIT_RELEASEDEFINITION_PER_PROJECT]
55-
--limit.build-history-duration= Time (time.Duration) how long the exporter should look back for builds (default:
56-
48h) [$LIMIT_BUILD_HISTORY_DURATION]
57-
--limit.release-history-duration= Time (time.Duration) how long the exporter should look back for releases (default:
58-
48h) [$LIMIT_RELEASE_HISTORY_DURATION]
57+
--limit.build-history-duration= Time (time.Duration) how long the exporter should look back for builds (default: 48h)
58+
[$LIMIT_BUILD_HISTORY_DURATION]
59+
--limit.release-history-duration= Time (time.Duration) how long the exporter should look back for releases (default: 48h)
60+
[$LIMIT_RELEASE_HISTORY_DURATION]
5961
--server.bind= Server address (default: :8080) [$SERVER_BIND]
6062
--server.timeout.read= Server read timeout (default: 5s) [$SERVER_TIMEOUT_READ]
6163
--server.timeout.write= Server write timeout (default: 10s) [$SERVER_TIMEOUT_WRITE]

config/opts.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ type (
5757

5858
// cache settings
5959
Cache struct {
60-
Path string `long:"cache.path" env:"CACHE_PATH" description:"Cache path (to folder, file://path... or azblob://storageaccount.blob.core.windows.net/containername)"`
60+
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}})"`
6161
}
6262

6363
Request struct {

0 commit comments

Comments
 (0)