We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4ad265f commit db307ecCopy full SHA for db307ec
prometheus/push/push.go
@@ -168,6 +168,11 @@ func (p *Pusher) Collector(c prometheus.Collector) *Pusher {
168
return p
169
}
170
171
+// Error returns the error that was encountered.
172
+func (p *Pusher) Error() error {
173
+ return p.error
174
+}
175
+
176
// Grouping adds a label pair to the grouping key of the Pusher, replacing any
177
// previously added label pair with the same label name. Note that setting any
178
// labels in the grouping key that are already contained in the metrics to push
0 commit comments