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

prometheus-nixos-exporter: add nix 2.19.0 compat #347

Merged
merged 3 commits into from
Feb 3, 2024

Conversation

mweinelt
Copy link
Member

@mweinelt mweinelt commented Feb 3, 2024

The output of nix path-info --json changed from a list to an object in nix 2.19.0.

Add a simple version detection, so we can support both output formats.

Fixes: #346

@mweinelt mweinelt force-pushed the nixos-exporter-2.19.0-compat branch 2 times, most recently from 62770e1 to 6180cfc Compare February 3, 2024 16:49
@vcunat
Copy link
Member

vcunat commented Feb 3, 2024

Overall I think this is OK to just deploy and see.

@mweinelt mweinelt force-pushed the nixos-exporter-2.19.0-compat branch from 6180cfc to 04e85c0 Compare February 3, 2024 18:48
@mweinelt
Copy link
Member Author

mweinelt commented Feb 3, 2024

Overall I think this is OK to just deploy and see.

Agreed, I just need to bootstrap the VPN on my desktop.

@mweinelt mweinelt force-pushed the nixos-exporter-2.19.0-compat branch 5 times, most recently from 2579616 to b2db5a7 Compare February 3, 2024 21:33
The output of `nix path-info --json` changed from a list to an object
in nix 2.19.0.

Add a simple version detection, so we can support both output formats.

Fixes: #346
Reformat the file using `ruff format`.
This wraps the executable into a standard python build, which fixes
import lag, due to its previous location in the nix store.
@mweinelt mweinelt force-pushed the nixos-exporter-2.19.0-compat branch from b2db5a7 to ffa1f35 Compare February 3, 2024 21:47
@mweinelt mweinelt merged commit f37f852 into master Feb 3, 2024
2 checks passed
@mweinelt mweinelt deleted the nixos-exporter-2.19.0-compat branch February 3, 2024 21:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

prometheus-nixos-exporter traces on rhea
2 participants