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
* start adding support for units
Signed-off-by: Arianna Vespri <arianna.vespri@yahoo.it>
* do not assume units for now
Signed-off-by: Arianna Vespri <arianna.vespri@yahoo.it>
* again, do not assume units
Signed-off-by: Arianna Vespri <arianna.vespri@yahoo.it>
* assume the units
Signed-off-by: Arianna Vespri <arianna.vespri@yahoo.it>
* add units in more places
Signed-off-by: Arianna Vespri <arianna.vespri@yahoo.it>
* fix dependencies in go.mod
Signed-off-by: Arianna Vespri <arianna.vespri@yahoo.it>
* Update version of common in go.mod
Signed-off-by: Arianna Vespri <arianna.vespri@yahoo.it>
* Start modifying handler
Signed-off-by: Arianna Vespri <arianna.vespri@yahoo.it>
* Use different common
Signed-off-by: Arianna Vespri <arianna.vespri@yahoo.it>
* Use the newly named func for OM encoding
Signed-off-by: Arianna Vespri <arianna.vespri@yahoo.it>
* Fix examples and comments
Signed-off-by: Arianna Vespri <arianna.vespri@yahoo.it>
* Fix go.mod
Signed-off-by: Arianna Vespri <arianna.vespri@yahoo.it>
* Adapt go.mod as much as possible
Signed-off-by: Arianna Vespri <arianna.vespri@yahoo.it>
* Use go 1.20
Signed-off-by: Arianna Vespri <arianna.vespri@yahoo.it>
* Use go 1.21
Signed-off-by: Arianna Vespri <arianna.vespri@yahoo.it>
* Upgrade github workflows to go 1.21 needed for common
Signed-off-by: Arianna Vespri <arianna.vespri@yahoo.it>
* Delete test funcs which are unused according to lint
Signed-off-by: Arianna Vespri <arianna.vespri@yahoo.it>
* Upgrade to Go 1.21 in Makefile and workflows for tests
Signed-off-by: Arianna Vespri <arianna.vespri@yahoo.it>
* Upgrade Go version to 1.21 in tutorial
Signed-off-by: Arianna Vespri <arianna.vespri@yahoo.it>
* Adapt to forthcoming new handlers options, reinstate support for old Go
Signed-off-by: Arianna Vespri <arianna.vespri@yahoo.it>
* Update prometheus/promhttp/http.go
Co-authored-by: Bartlomiej Plotka <bwplotka@gmail.com>
Signed-off-by: Arianna Vespri <36129782+vesari@users.noreply.github.com>
* small cleanup
Signed-off-by: Arianna Vespri <arianna.vespri@yahoo.it>
* Make desc funcs variadic
Signed-off-by: Arianna Vespri <arianna.vespri@yahoo.it>
* Adjust http to have unit and test accordingly
Signed-off-by: Arianna Vespri <arianna.vespri@yahoo.it>
* Update prometheus/metric.go
Co-authored-by: Bartlomiej Plotka <bwplotka@gmail.com>
Signed-off-by: Arianna Vespri <36129782+vesari@users.noreply.github.com>
* Update prometheus/promhttp/http.go
Co-authored-by: Bartlomiej Plotka <bwplotka@gmail.com>
Signed-off-by: Arianna Vespri <36129782+vesari@users.noreply.github.com>
* Fix formatting
Signed-off-by: Arianna Vespri <arianna.vespri@yahoo.it>
* Add tests for unit edge cases, ensure unit field is skipped if no unit is given
Signed-off-by: Arianna Vespri <arianna.vespri@yahoo.it>
* Restore original NewDesc signature, replace unit with DescOpt variadic argument in V2 NewDesc
Signed-off-by: Arianna Vespri <arianna.vespri@yahoo.it>
* Eval unit asap
Signed-off-by: Arianna Vespri <arianna.vespri@yahoo.it>
* test runtime metrics unit extraction
Signed-off-by: Arianna Vespri <arianna.vespri@yahoo.it>
* reference modified common code, remove unit flag, adapt tests
Signed-off-by: Arianna Vespri <arianna.vespri@yahoo.it>
* Adopt version of common with the unit flag removed
Signed-off-by: Arianna Vespri <arianna.vespri@yahoo.it>
* Fix merge conflicts
Signed-off-by: Arianna Vespri <arianna.vespri@yahoo.it>
* Update prometheus/desc.go
Co-authored-by: Bartlomiej Plotka <bwplotka@gmail.com>
Signed-off-by: Arianna Vespri <36129782+vesari@users.noreply.github.com>
* Always show unit in Desc.String() output + miscellaneous
Signed-off-by: Arianna Vespri <arianna.vespri@yahoo.it>
* Align go.sum
Signed-off-by: Arianna Vespri <arianna.vespri@yahoo.it>
* Solve conflict
Signed-off-by: Arianna Vespri <arianna.vespri@yahoo.it>
---------
Signed-off-by: Arianna Vespri <arianna.vespri@yahoo.it>
Signed-off-by: Arianna Vespri <36129782+vesari@users.noreply.github.com>
Co-authored-by: Bartlomiej Plotka <bwplotka@gmail.com>
Copy file name to clipboardExpand all lines: prometheus/examples_test.go
+19-13Lines changed: 19 additions & 13 deletions
Original file line number
Diff line number
Diff line change
@@ -310,9 +310,9 @@ func ExampleRegister() {
310
310
311
311
// Output:
312
312
// taskCounter registered.
313
-
// taskCounterVec not registered: a previously registered descriptor with the same fully-qualified name as Desc{fqName: "worker_pool_completed_tasks_total", help: "Total number of tasks completed.", constLabels: {}, variableLabels: {worker_id}} has different label names or a different help string
313
+
// taskCounterVec not registered: a previously registered descriptor with the same fully-qualified name as Desc{fqName: "worker_pool_completed_tasks_total", help: "Total number of tasks completed.", unit: "", constLabels: {}, variableLabels: {worker_id}} has different label names or a different help string
314
314
// taskCounter unregistered.
315
-
// taskCounterVec not registered: a previously registered descriptor with the same fully-qualified name as Desc{fqName: "worker_pool_completed_tasks_total", help: "Total number of tasks completed.", constLabels: {}, variableLabels: {worker_id}} has different label names or a different help string
315
+
// taskCounterVec not registered: a previously registered descriptor with the same fully-qualified name as Desc{fqName: "worker_pool_completed_tasks_total", help: "Total number of tasks completed.", unit: "", constLabels: {}, variableLabels: {worker_id}} has different label names or a different help string
316
316
// taskCounterVec registered.
317
317
// Worker initialization failed: inconsistent label cardinality: expected 1 label values but got 2 in []string{"42", "spurious arg"}
0 commit comments