mirror of
https://github.com/prometheus-operator/kube-prometheus.git
synced 2025-08-20 05:51:19 +02:00
*: Generate latest Documentation and manifest for Prom v2.5.0
This commit is contained in:
parent
174e84f3e5
commit
2ffb7cffea
@ -13,7 +13,7 @@ local kp =
|
|||||||
config: { // http://docs.grafana.org/installation/configuration/
|
config: { // http://docs.grafana.org/installation/configuration/
|
||||||
sections: {
|
sections: {
|
||||||
// Do not require grafana users to login/authenticate
|
// Do not require grafana users to login/authenticate
|
||||||
"auth.anonymous": {enabled: true},
|
'auth.anonymous': { enabled: true },
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
@ -27,13 +27,13 @@ local kp =
|
|||||||
// Reference info: https://coreos.com/operators/prometheus/docs/latest/api.html#prometheusspec
|
// Reference info: https://coreos.com/operators/prometheus/docs/latest/api.html#prometheusspec
|
||||||
spec+: {
|
spec+: {
|
||||||
// An e.g. of the purpose of this is so the "Source" links on http://<alert-manager>/#/alerts are valid.
|
// An e.g. of the purpose of this is so the "Source" links on http://<alert-manager>/#/alerts are valid.
|
||||||
externalUrl: "http://192.168.99.100:30900",
|
externalUrl: 'http://192.168.99.100:30900',
|
||||||
|
|
||||||
// Reference info: "external_labels" on https://prometheus.io/docs/prometheus/latest/configuration/configuration/
|
// Reference info: "external_labels" on https://prometheus.io/docs/prometheus/latest/configuration/configuration/
|
||||||
externalLabels: {
|
externalLabels: {
|
||||||
// This 'cluster' label will be included on every firing prometheus alert. (This is more useful
|
// This 'cluster' label will be included on every firing prometheus alert. (This is more useful
|
||||||
// when running multiple clusters in a shared environment (e.g. AWS) with other users.)
|
// when running multiple clusters in a shared environment (e.g. AWS) with other users.)
|
||||||
cluster: "minikube-<INSERT YOUR USERNAME HERE>",
|
cluster: 'minikube-<INSERT YOUR USERNAME HERE>',
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
@ -42,9 +42,9 @@ local kp =
|
|||||||
alertmanager+: {
|
alertmanager+: {
|
||||||
// Reference info: https://github.com/coreos/prometheus-operator/blob/master/Documentation/api.md#alertmanagerspec
|
// Reference info: https://github.com/coreos/prometheus-operator/blob/master/Documentation/api.md#alertmanagerspec
|
||||||
spec+: {
|
spec+: {
|
||||||
externalUrl: "http://192.168.99.100:30903",
|
externalUrl: 'http://192.168.99.100:30903',
|
||||||
|
|
||||||
logLevel: "debug", // So firing alerts show up in log
|
logLevel: 'debug', // So firing alerts show up in log
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
@ -1,4 +1,3 @@
|
|||||||
|
|
||||||
// Reference info: documentation for https://github.com/ksonnet/ksonnet-lib can be found at http://g.bryan.dev.hepti.center
|
// Reference info: documentation for https://github.com/ksonnet/ksonnet-lib can be found at http://g.bryan.dev.hepti.center
|
||||||
//
|
//
|
||||||
local k = import 'ksonnet/ksonnet.beta.3/k.libsonnet'; // https://github.com/ksonnet/ksonnet-lib/blob/master/ksonnet.beta.3/k.libsonnet - imports k8s.libsonnet
|
local k = import 'ksonnet/ksonnet.beta.3/k.libsonnet'; // https://github.com/ksonnet/ksonnet-lib/blob/master/ksonnet.beta.3/k.libsonnet - imports k8s.libsonnet
|
||||||
@ -20,7 +19,7 @@ local kp =
|
|||||||
// If a value isn't specified for 'retention', then by default the '--storage.tsdb.retention=24h' arg will be passed to prometheus by prometheus-operator.
|
// If a value isn't specified for 'retention', then by default the '--storage.tsdb.retention=24h' arg will be passed to prometheus by prometheus-operator.
|
||||||
// The possible values for a prometheus <duration> are:
|
// The possible values for a prometheus <duration> are:
|
||||||
// * https://github.com/prometheus/common/blob/c7de230/model/time.go#L178 specifies "^([0-9]+)(y|w|d|h|m|s|ms)$" (years weeks days hours minutes seconds milliseconds)
|
// * https://github.com/prometheus/common/blob/c7de230/model/time.go#L178 specifies "^([0-9]+)(y|w|d|h|m|s|ms)$" (years weeks days hours minutes seconds milliseconds)
|
||||||
retention: "30d",
|
retention: '30d',
|
||||||
|
|
||||||
// Reference info: https://github.com/coreos/prometheus-operator/blob/master/Documentation/user-guides/storage.md
|
// Reference info: https://github.com/coreos/prometheus-operator/blob/master/Documentation/user-guides/storage.md
|
||||||
// By default (if the following 'storage.volumeClaimTemplate' isn't created), prometheus will be created with an EmptyDir for the 'prometheus-k8s-db' volume (for the prom tsdb).
|
// By default (if the following 'storage.volumeClaimTemplate' isn't created), prometheus will be created with an EmptyDir for the 'prometheus-k8s-db' volume (for the prom tsdb).
|
||||||
|
@ -8,7 +8,7 @@
|
|||||||
"subdir": "contrib/kube-prometheus/jsonnet/kube-prometheus"
|
"subdir": "contrib/kube-prometheus/jsonnet/kube-prometheus"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"version": "6e412f0b4727f3a7a6f097530294409baa6b520a"
|
"version": "fa0a0ae33a16a23845da8ab9973dd4eed50a20df"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "ksonnet",
|
"name": "ksonnet",
|
||||||
|
@ -25,4 +25,4 @@ spec:
|
|||||||
serviceAccountName: prometheus-k8s
|
serviceAccountName: prometheus-k8s
|
||||||
serviceMonitorNamespaceSelector: {}
|
serviceMonitorNamespaceSelector: {}
|
||||||
serviceMonitorSelector: {}
|
serviceMonitorSelector: {}
|
||||||
version: v2.4.3
|
version: v2.5.0
|
||||||
|
@ -26,5 +26,5 @@ local output(repository) = std.flattenArrays([
|
|||||||
for image in images
|
for image in images
|
||||||
]);
|
]);
|
||||||
|
|
||||||
function(repository="my-registry.com/repository")
|
function(repository='my-registry.com/repository')
|
||||||
std.join('\n', output(repository))
|
std.join('\n', output(repository))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user