-
-
Notifications
You must be signed in to change notification settings - Fork 14.6k
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
grafana-reporter: init at 2.0.1 #38514
Conversation
@GrahamcOfBorg build grafana_reporter |
Success on x86_64-linux (full log) Attempted: grafana_reporter Partial log (click to expand)
|
Success on x86_64-darwin (full log) Attempted: grafana_reporter Partial log (click to expand)
|
Success on aarch64-linux (full log) Attempted: grafana_reporter Partial log (click to expand)
|
e23a223
to
575dc38
Compare
systemd.services.grafana_reporter = { | ||
description = "Grafana Reporter Service Daemon"; | ||
wantedBy = ["multi-user.target"]; | ||
after = ["networking.target"]; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm pretty sure it's network.target
, I can't find a networking.target
unit in my systemctl
. The grafana and openfire services are the only ones using networking.target
, so that should be fixed too at some point.
wantedBy = ["multi-user.target"]; | ||
after = ["networking.target"]; | ||
serviceConfig = { | ||
ExecStart = "${pkgs.grafana_reporter.bin}/bin/grafana-reporter -proto ${cfg.grafana.protocol}:// -ip ${cfg.grafana.addr}:${toString cfg.grafana.port} -port :${toString cfg.port} -templates ${cfg.templateDir}"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I occasionally like to do
{
ExecStart = let args = concatStringsSep [
"-proto ..."
...
]; in "grafana-reporter ${args}";
}
To make the line shorter.
Ping? |
575dc38
to
5b30cd7
Compare
Motivation for this change
Adds grafana-reporter tool that generates PDF from grafana dashboard.
I'll be pushing a nixos module to this PR soon as well.
Things done
build-use-sandbox
innix.conf
on non-NixOS)nix-shell -p nox --run "nox-review wip"
./result/bin/
)