You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Added query-related entities
Gets query path+project id as parameter
Implements collection based on metrics_agentpool.go
Needs to pass projectId to AzureDevopsClient.rest()
Change webdevops/azure-devops-exporter to current repository
Add collectorQueryList and ProjectName
Get Number of Work Items from query
* Getting workitem details
Query each work item and its data for prometheus
* Renamed expected environment variable AZURE_DEVOPS_QUERY to AZURE_DEVOPS_QUERIES
* Parse multiple query entries coming from command line
Parse multiple project whitelist and blacklist entries coming from command line
Uncomment default metrics
* Aligned import statements with rest of the repo
* Fix azure-devops-client package references
* Updated README.md
* Removed updating projects for Query collectors
golint:
Renamed projectId to projectID
Unexported ensureSplitBySpace function
* Added collecting scrape durations of Query collectors
* Added ScrapeTimeQuery defaulting to ScrapeTime (30m)
Removed setting ScrapeTimeLive to ScrapeTime if not set; it's impossible since
ScrapeTimeLive has a default of 30s.
* Changed long option for Query parameter to 'list.query'
Removed ensureSplitBySpace function since it was not a bug;
lists should be passed by repeating same option for every item
ScrapeTimePullRequest*time.Duration`long:"scrape.time.pullrequest" env:"SCRAPE_TIME_PULLREQUEST" description:"Scrape time for pullrequest metrics (time.duration)"`
46
48
ScrapeTimeStats*time.Duration`long:"scrape.time.stats" env:"SCRAPE_TIME_STATS" description:"Scrape time for stats metrics (time.duration)"`
47
49
ScrapeTimeResourceUsage*time.Duration`long:"scrape.time.resourceusage" env:"SCRAPE_TIME_RESOURCEUSAGE" description:"Scrape time for resourceusage metrics (time.duration)"`
50
+
ScrapeTimeQuery*time.Duration`long:"scrape.time.query" env:"SCRAPE_TIME_QUERY" description:"Scrape time for query results (time.duration)"`
48
51
ScrapeTimeLive*time.Duration`long:"scrape.time.live" env:"SCRAPE_TIME_LIVE" description:"Scrape time for live metrics (time.duration)" default:"30s"`
AzureDevopsFilterAgentPoolId []int64`long:"whitelist.agentpool" env:"AZURE_DEVOPS_FILTER_AGENTPOOL" env-delim:" " description:"Filter of agent pool (IDs)"`
57
60
61
+
// query settings
62
+
QueriesWithProjects []string`long:"list.query" env:"AZURE_DEVOPS_QUERIES" env-delim:" " description:"Pairs of query and project UUIDs in the form: '<queryId>@<projectId>'"`
63
+
58
64
// azure settings
59
65
AzureDevopsUrl*string`long:"azuredevops.url" env:"AZURE_DEVOPS_URL" description:"Azure DevOps url (empty if hosted by microsoft)"`
0 commit comments