Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
PrivateStorageio
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
PrivateStorage
PrivateStorageio
Commits
8d52252c
Commit
8d52252c
authored
4 years ago
by
Jean-Paul Calderone
Browse files
Options
Downloads
Patches
Plain Diff
Monitoring-related documentation and cleanups
parent
1a6d0248
No related branches found
No related tags found
3 merge requests
!140
Merge staging into production
,
!118
Merge develop into staging
,
!109
Regularize (somewhat) the definition of grids for Morph
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
morph/lib/customize-monitoring.nix
+22
-2
22 additions, 2 deletions
morph/lib/customize-monitoring.nix
morph/lib/monitoring.nix
+2
-18
2 additions, 18 deletions
morph/lib/monitoring.nix
with
24 additions
and
20 deletions
morph/lib/customize-monitoring.nix
+
22
−
2
View file @
8d52252c
{
hostsMap
# Define a function which returns a value which fills in all the holes left by
# ``monitoring.nix``.
{
# A set mapping VPN IP addresses as strings to lists of hostnames as
# strings. The system's ``/etc/hosts`` will be populated with this
# information.
hostsMap
# See ``customize-issuer.nix``.
,
monitoringvpnKeyDir
,
publicIPv4
,
monitoringvpnIPv4
# XXX To be removed
,
publicIPv4
# A list of VPN IP addresses as strings indicating which clients will be
# allowed onto the VPN.
,
vpnClientIPs
# A list of VPN clients (IP addresses or hostnames) as strings indicating
# which nodes to scrape metrics from.
,
nodeExporterTargets
# ...
,
nginxExporterTargets
?
[]
# A string giving the NixOS state version for the system.
,
stateVersion
,
...
}:
{
...
...
This diff is collapsed.
Click to expand it.
morph/lib/monitoring.nix
+
2
−
18
View file @
8d52252c
# Similar to ``issuer.nix`` but for a "monitoring"-type system. Holes are
# filled by ``customize-monitoring.nix``.
rec
{
deployment
=
{
secrets
=
{
"monitoringvpn-private-key"
=
{
# source = ...;
destination
=
"/run/keys/monitoringvpn/server.key"
;
owner
.
user
=
"root"
;
owner
.
group
=
"root"
;
...
...
@@ -10,7 +11,6 @@ rec {
action
=
[
"sudo"
"systemctl"
"restart"
"wireguard-monitoringvpn.service"
];
};
"monitoringvpn-preshared-key"
=
{
# source = ...;
destination
=
"/run/keys/monitoringvpn/preshared.key"
;
owner
.
user
=
"root"
;
owner
.
group
=
"root"
;
...
...
@@ -29,25 +29,9 @@ rec {
# ../../nixos/modules/monitoring/server/loki.nix
];
services
.
private-storage
.
monitoring
.
vpn
.
server
=
{
# enable = ...;
# ip = ...;
# vpnClientIPs = ...;
# pubKeysPath = ...;
};
services
.
private-storage
.
monitoring
.
grafana
=
{
domain
=
"monitoring.private.storage"
;
prometheusUrl
=
"http://localhost:9090/"
;
lokiUrl
=
"http://localhost:3100/"
;
};
services
.
private-storage
.
monitoring
.
prometheus
=
{
# nodeExporterTargets = ...;
# nginxExporterTargets = ...;
};
# system.stateVersion = ...;
# networking.hosts = ...;
}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment