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

Support left/right_elementwise for operators #506

Closed
mwitkow opened this Issue Feb 5, 2015 · 2 comments

Comments

Projects
None yet
2 participants
@mwitkow
Copy link
Contributor

mwitkow commented Feb 5, 2015

When operating on vectors:
my_stuff_started - my_stuff_stopped, where both have a type label, the entries in my_stuff_started that don't have a matching my_stuff_stopped entry are removed from results. That's understandable, operators do a full join.

However, it should be possible to say that I want to retain stuff from my_stuff_started even if it is not present in my_stuff_stopped.

I understand that best practices are to prepopulate all your labels with default values, but sometimes it's impossible.

Are there any plans to implement left/right_elementwise

@brian-brazil

This comment has been minimized.

Copy link
Member

brian-brazil commented Feb 5, 2015

This is covered by #393.

For that particular use case I'm not sure that's the best way to model it, missing time series are difficult to deal with at the best of times (http://prometheus.io/docs/practices/instrumentation/#avoid-missing-metrics). I'd suggest for determining the duration of batch jobs to export the duration as a separate gauge, see http://prometheus.io/client_java/io/prometheus/client/exporter/PushGateway.html for a Java example.

@lock

This comment has been minimized.

Copy link

lock bot commented Mar 24, 2019

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock bot locked and limited conversation to collaborators Mar 24, 2019

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
You can’t perform that action at this time.