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

Add notifier configs to grafana provisioning #110942

Merged
merged 2 commits into from Mar 3, 2021

Conversation

ivanbakel
Copy link
Contributor

@ivanbakel ivanbakel commented Jan 27, 2021

Based on #53874

Motivation for this change

Similar to dashboards and datasources, notifiers in Grafana can also be provisioned. Currently, there is no easy way to configure notifiers through Nix.

See: https://grafana.com/docs/grafana/latest/administration/provisioning/#alert-notification-channels

Things done
  • Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS linux)
  • Built on platform(s)
    • NixOS
    • macOS
    • other Linux distributions
  • Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
  • Tested compilation of all pkgs that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
  • Tested execution of all binary files (usually in ./result/bin/)
  • Determined the impact on package closure size (by running nix path-info -S before and after)
  • Ensured that relevant documentation is up to date
  • Fits CONTRIBUTING.md.

@aanderse
Copy link
Member

I didn't really review but I happened to notice option descriptions are missing a trailing period.

@ivanbakel
Copy link
Contributor Author

Should I add periods to all the other option descriptions in the file as well?

Similar to dashboards and datasources, notifiers in Grafana can also be
provisioned. This adds them to the Grafana service definition.
@ivanbakel
Copy link
Contributor Author

Alright, that's done.

@tomberek tomberek merged commit 3e44995 into NixOS:master Mar 3, 2021
@ghost
Copy link

ghost commented Mar 3, 2021

This broke the build for me:

builder for '/nix/store/wbwsdbqjk9l0flwwzigka4dpbgs7vyal-grafana-provisioning.drv' failed with exit code 1; last 1 log lines:
  ln: failed to create symbolic link '/nix/store/rdl0pzjyxv27gm4ps93wnc3r6bsya3ks-grafana-provisioning/notifiers/notifier.yaml': No such file or directory

The target directory for the symlink is not created.
I will push a fix to master since this is trivial.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants