Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions prometheus-ksonnet/lib/prometheus.libsonnet
Original file line number Diff line number Diff line change
@@ -1,4 +1,14 @@
{
/*
* All Prometheus resources are contained within a `prometheus` node. This allows
multiple Prometheus instances to be created by simply cloning this node, like
so:
`other_prometheus: $.prometheus {name: "other-prometheus"},`
To remove the default Prometheus, use this code:
`main_prometheus: {},`
*/

Comment on lines +2 to +11
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

awesome 👍

prometheus:: {
name:: error 'must specify name',

Expand Down Expand Up @@ -111,4 +121,6 @@
prometheus_service:
$.util.serviceFor(self.prometheus_statefulset),
},

main_prometheus: $.prometheus {name: "prometheus"},
}