*: Generate latest Documentation and manifest for Prom v2.5.0

This commit is contained in:
Matthias Loibl
2018-11-07 16:20:23 +01:00
parent 174e84f3e5
commit 2ffb7cffea
5 changed files with 33 additions and 34 deletions

View File

@@ -13,7 +13,7 @@ local kp =
config: { // http://docs.grafana.org/installation/configuration/
sections: {
// 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
spec+: {
// 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/
externalLabels: {
// 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.)
cluster: "minikube-<INSERT YOUR USERNAME HERE>",
cluster: 'minikube-<INSERT YOUR USERNAME HERE>',
},
},
},
@@ -42,9 +42,9 @@ local kp =
alertmanager+: {
// Reference info: https://github.com/coreos/prometheus-operator/blob/master/Documentation/api.md#alertmanagerspec
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
},
},
},

View File

@@ -1,4 +1,3 @@
// 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
@@ -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.
// 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)
retention: "30d",
retention: '30d',
// 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).

View File

@@ -8,7 +8,7 @@
"subdir": "contrib/kube-prometheus/jsonnet/kube-prometheus"
}
},
"version": "6e412f0b4727f3a7a6f097530294409baa6b520a"
"version": "fa0a0ae33a16a23845da8ab9973dd4eed50a20df"
},
{
"name": "ksonnet",

View File

@@ -25,4 +25,4 @@ spec:
serviceAccountName: prometheus-k8s
serviceMonitorNamespaceSelector: {}
serviceMonitorSelector: {}
version: v2.4.3
version: v2.5.0

View File

@@ -26,5 +26,5 @@ local output(repository) = std.flattenArrays([
for image in images
]);
function(repository="my-registry.com/repository")
function(repository='my-registry.com/repository')
std.join('\n', output(repository))