Merged
Conversation
85666fa to
205732e
Compare
Contributor
but this makes it hard to merge right away, no? also, there is an "mtail" debian package which is probably better to use than downloading from google server and unpacking etc. |
98d0b77 to
f5166bb
Compare
hpk42
reviewed
Oct 13, 2024
5054e61 to
7fac976
Compare
7fac976 to
23994ea
Compare
hpk42
reviewed
Oct 14, 2024
| If you want to collect the metrics with Prometheus, | ||
| setup a private network (e.g. WireGuard interface) | ||
| and assign an IP address from this network to the host. | ||
| If unsure, set this setting to `127.0.0.1`. |
Contributor
There was a problem hiding this comment.
why is it a required setting? It should be fine to leave it empty, and then no mtail is setup or run?
hpk42
approved these changes
Oct 14, 2024
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This runs
mtailat localhost, so you can queryhttp://127.0.0.1:3903/metricsand get metrics collected by parsing the log files to get some counters of the number of sent/received mails.This can then be plugged into Prometheus. Setting up Prometheus is outside of the scope of cmdeploy.
What is missing is a setting in the .ini file to set the host and port. Listening on 127.0.0.1 is not very useful, normally you would have a wireguard network for metric collection and make mtail listen on the IP address from this network.
Another problem currently is that deployment fails while trying to copy
mtailbinary if it is already running. We should stopmtailservice before replacing the binary somehow.