Add prometheus #118
Loading…
Reference in a new issue
No description provided.
Delete branch "prometheus2"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Should give data to grafana through provision
Few things probably need to be changed regarding the prometheus server config and provision config
There is an automatic way to do this, I'll show ye this evening
Since ye are defining
collecter_port
on L31 trytargets = map (server: "${server}.skynet.ie:${cfg.collecter_port}") cfg.servers;
THis should be
services.skynet.prometheus.servers
notservices.skynet.prometheus.server.servers
.And as remarked earlier there is a way to automagically get these.
Take a look at this:
https://colmena.cli.rs/unstable/tutorial/index.html?highlight=nodes#basic-configuration
time.timeZone = nodes.host-b.config.time.timeZone;
Looks good for a start.
Ill talk to ye this evening
changed this line in version 2 of the diff
added 1 commit
4637777e
- Fix servers list locationCompare with previous version
changed this line in version 3 of the diff
added 1 commit
7f5f21dc
- Use port from cfgCompare with previous version
The error about servers was from prometheus.nix, fixed it in a recent commit. Unless your not talking about error from failed pipeline
Ha, that is one way to fix it.
Although the location you had it was better from a schematic point of view.
prometheus.server.servers
vs
prometheus.servers
changed this line in version 4 of the diff
added 1 commit
cf600e2d
- Using nodes instead of hardcoded server namesCompare with previous version
added 2 commits
be56e6b9
- Reorganise prometheus/marvin config82305d43
- fmtCompare with previous version
Changed the server/servers around in prometheus config, now giving server names through nodes-
servers = lib.attrsets.mapAttrsToList (server: server.name) nodes;
Is this what you meant?
Took a look at it and name is not an attribute, however
deployment
is, and inside deployment there ishostname
ye dont have to do this here, you can do it inside prometheus.nix
What would be useful is a place toa dd extra nodes, not handled by nix (we have two of those, game servers)
{collecter_port}
->${collecter_port}
If ye take my other comment of hostname then ye wont need the
.skynet.ie
changed this line in version 6 of the diff
changed this line in version 6 of the diff
added 1 commit
9b3e7265
- Added new option to specify ip and port for other nodes, fixed server.name to...Compare with previous version
Added another option to the config that should allow for this I think
Should be good now
Am I right in thinking that this currentyl does nothing?
What was teh original intention?
Would ye be able to add brackets so its easier to see what is being used in each map function?
This might notbe useful here but I tend to go
{type}_{name}
.For example
port_collector
.Its mroe useful though when ye have a lot of vars in code though, less so for this.
If its the same as the default is there any real need to specify?
Very nice :D
changed this line in version 7 of the diff
changed this line in version 7 of the diff
added 2 commits
ca872275
- remove redundant option11308414
- Make map clearer, more parenthesesCompare with previous version
changed this line in version 8 of the diff
changed this line in version 8 of the diff
added 1 commit
1ea703bf
- Removed redundant conf, rename portcollecterCompare with previous version
ye its dead code, was there originally when i wasnt using host option
Is this all that needs to be done for the nodes to be setup on each machine?
Yep!
One more thing before its finalised, take a look at
services.grafana.settings.security.admin_password
I would also recommend shifting it to
kitt
as well, its kinda becoming teh administrative serverchanged this line in version 9 of the diff
resolved all threads
added 3 commits
9aeb7313
- Moved grafana / prometheus to kittfd3beade
- Added entry in secrets.nix for grafana40e4fe5a
- fmtCompare with previous version
added 1 commit
23f77cae
- feat: setup the password for grafanaCompare with previous version
Is this actually used? *ye got just
port
down below)changed this line in version 11 of the diff
resolved all threads
added 1 commit
061453e5
- remove dead codeCompare with previous version
Does this still need to be here?
seems like none of them need to be there, should i remove them all?
changed this line in version 12 of the diff
resolved all threads
added 1 commit
03ae1c51
- Remove config from marvinCompare with previous version
added 6 commits
0f75f119
- fix: this was blocking teh web interfaceaba1a41d
- fix: file permissions62ead11a
- fix: have to actually enable it15271c1d
- fix: this does need a defaultb8c6e153
- fix: set the type of protocol9148963c
- fix: final set of changes to get it workingCompare with previous version
added 1 commit
963a189b
- Removed provision config away from kittCompare with previous version
added 1 commit
147bd86a
- fix: get the attributes merging correctlyCompare with previous version
added 1 commit
f7dd90e9
- fix: needed to open teh ports to be able to get the dataCompare with previous version
added 1 commit
889bb0da
- doc: added link to node exporter optionsCompare with previous version
changed this line in version 18 of the diff
added 1 commit
c0816ccc
- remove todoCompare with previous version
approved this merge request
mentioned in commit
694cbb2f0b