Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Metrics: Contract set churn #675

Merged
merged 2 commits into from
Oct 19, 2023
Merged

Metrics: Contract set churn #675

merged 2 commits into from
Oct 19, 2023

Conversation

ChrisSchinnerl
Copy link
Member

This PR implements contract set churn metrics.

Depends on #670

@ChrisSchinnerl ChrisSchinnerl self-assigned this Oct 16, 2023
@ChrisSchinnerl ChrisSchinnerl force-pushed the chris/metrics-dev branch 2 times, most recently from fac9ee7 to 2c24c0e Compare October 17, 2023 07:57
@ChrisSchinnerl ChrisSchinnerl changed the base branch from chris/metrics-dev to chris/metrics October 18, 2023 07:28
@ChrisSchinnerl ChrisSchinnerl marked this pull request as ready for review October 18, 2023 08:07
@peterjan peterjan merged commit f0805a4 into chris/metrics Oct 19, 2023
6 checks passed
@peterjan peterjan deleted the chris/metrics-dev-2 branch October 19, 2023 11:56
@ChrisSchinnerl ChrisSchinnerl mentioned this pull request Oct 30, 2023
6 tasks
peterjan pushed a commit that referenced this pull request Nov 15, 2023
* stores: add another db dedicated to storing metrics

* stores: close metrics db

* stores: add indices

* stores: add recording and querying of contract set metrics as well as TestContractSetMetrics

* bus: fix TestClient

* stores: add missing 'size' tags

* stores: change datatype to int64

* stores: bigint

* stores: metrics.go change ordering

* stores: add api types for contract set metrics

* stores: address review comments

* stores: implement contract set churn metrics

* stores: implement performance metrics

* stores: implement contract metric recording and querying

* bus: hook up contract set churn metrics to bus

* testing: add TestRecordContractSetAndChurnMetric

* stores: catch uint8 slice  for unixTimeMS

* stores: change GormDataType from BIGINT to int

* stores: use strconv to scan unixTimeMS

* stores: use strconv for Scan in unsigned64

* stores: rename Time -> Timestamp

* stores: update comment on Value

* stores: fix scopeTimeRange

* stores: fix TestContractSetMetrics

* bus: hook up contract metrics to API

* stores: record contract metrics when spending is recorded

* stores: fix TestRenewedContract

* testing: fix TestUploadDownloadSpending

* stores: TestBusRecordedMetrics

* testing: fix TestBusRecordedMetrics NDF

* Metrics: Contract set churn (#675)

* stores: implement contract set churn metrics

* stores: fix build

* stores: implement performance metrics

* stores: fix TestPerformanceMetrics

* Metrics: Contract metrics (#679)

* stores: implement contract set churn metrics

* stores: implement performance metrics

* stores: implement contract metric recording and querying

* stores: fix contractMetrics query

* Metrics: Record contract set churn metrics and contract set metrics (#680)

* bus: hook up contract set churn metrics to bus

* testing: add TestRecordContractSetAndChurnMetric

* stores: catch uint8 slice  for unixTimeMS

* stores: change GormDataType from BIGINT to int

* stores: use strconv to scan unixTimeMS

* stores: use strconv for Scan in unsigned64

* stores/autopilot: address review comments

* bus/stores: address review comments

* stores: fix TestSQLContractStore and TestRenewedContract

* testing: fix TestBusRecordedMetrics

* Metrics: Update endpoint to use intervals  (#720)

* bus: update metrics endpoint to use intervals like hostd

* stores: add docstring to scopePeriods

* testing: fix TestBusRecordedMetrics

* stores: fix scopePeriods for MySQL

* stores: add Group By to scopePeriods

* stores: use SELECt in join

* stores: remove select with limit again

* stores: change findPeriods to use window function

* stores: address review comments

* bus: update json tags

* bus: fix merge issues

* testing: fix TestBusRecordedMetrics

* main: specify mysql metrics database
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

2 participants