Skip to content
Merged
Changes from 1 commit
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
Prev Previous commit
Take on main_prometheus comments
  • Loading branch information
malcolmholmes committed Jan 17, 2020
commit 2b2f3707bac580672075a65996a654b47b2155b3
16 changes: 14 additions & 2 deletions prometheus-ksonnet/lib/prometheus.libsonnet
Original file line number Diff line number Diff line change
@@ -1,6 +1,16 @@
{
prometheus: {
name:: 'prometheus',
/*
* 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',

_config:: $._config,

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

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