Set node name as prometheus instance name
And DRY up the recipe so it's easy and expressive to add more metrics/targets
This commit is contained in:
@@ -13,7 +13,7 @@ node.default["kosmos_prometheus"]["global"] = {
|
||||
}
|
||||
|
||||
node.default["kosmos_prometheus"]["jobs"] = {
|
||||
"prometheus" => { "targets" => ["localhost:9090"] },
|
||||
"prometheus" => { "targets" => [{ "target" => "localhost:9090", "instance" => "localhost" }] },
|
||||
}
|
||||
|
||||
node.default["kosmos_prometheus"]["rule_files"] = []
|
||||
|
||||
Reference in New Issue
Block a user