Enable Mimir Alertmanager, add example alert #33
Loading…
Reference in a new issue
No description provided.
Delete branch "alertmanager"
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?
Still TODO: actually connect it to Matrix
ddd0c365ae
tod26dd9f2a6
@ -0,0 +46,4 @@
name = config.networking.hostName;
scrape_configs = [
{
job_name = config.networking.hostName;
job_name
is exposed asjob
in the resulting metrics.I get that the previous version -- the pull based metrics collection using prometheus -- had one job per machine as well.
And I might be missing something. But I do feel like we can do with multiple jobs here. One job for each exporter, with the
job_name
set to the exporter name.This allows one to use the metrics browser in Grafana to list all metrics of /one/ exporter by simply
I find that helpful when wondering which metrics are actually exported and available.
And if you want all metrics of a single instance, you can throw together a simple regex with the
instance
label.Regex, because
instance
contains both the hostname and a port.Or add another static label, e.g.
hostname
, similar to what you do down below in the logs section withhost
.Let me know what you think. I can do the implementation if you want.
config.bagel.monitoring.grafana-agent.exporters
would need to become an attrset and all.And the
hostname
thingy is as simple asYeah, I can do that. I've never really bothered beyond the one job per machine thing but this can also work and if it makes life easier for people, I don't care either way.
@ -0,0 +94,4 @@
# We want to be explicit about the collectors we enable, so we use
# set_collectors instead of enable_collectors.
# https://grafana.com/docs/agent/latest/static/configuration/integrations/node-exporter-config/
integrations.node_exporter.set_collectors = [
I actually did this intentionally, but I can add all the exporters manually too.
Whoops I misread the previous
services.prometheus.exporters.node.enabledCollectors
that this is meant to replace.Sorry for that. Will drop my commit. One sec.
11975c855d
tod26dd9f2a6
hostname
label on all metrics 22f19ee550bagel.monitoring.grafana-agent.exporters
an attrset 1693f644ee1693f644ee
to8d2a367e92
WIP: Enable Mimir Alertmanager, add example alertto Enable Mimir Alertmanager, add example alert