Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
kube-prometheus
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
GitHub Mirror
prometheus-operator
kube-prometheus
Commits
42a3ac06
Unverified
Commit
42a3ac06
authored
4 years ago
by
paulfantom
Browse files
Options
Downloads
Patches
Plain Diff
regenerate
Signed-off-by:
paulfantom
<
pawel@krupa.net.pl
>
parent
cbddf907
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
README.md
+25
-25
25 additions, 25 deletions
README.md
docs/developing-prometheus-rules-and-grafana-dashboards.md
+8
-8
8 additions, 8 deletions
docs/developing-prometheus-rules-and-grafana-dashboards.md
with
33 additions
and
33 deletions
README.md
+
25
−
25
View file @
42a3ac06
...
@@ -207,15 +207,15 @@ Here's [example.jsonnet](example.jsonnet):
...
@@ -207,15 +207,15 @@ Here's [example.jsonnet](example.jsonnet):
[
embedmd
]:
#
(example.jsonnet)
[
embedmd
]:
#
(example.jsonnet)
```
jsonnet
```
jsonnet
local
kp
=
local
kp
=
(
import
'kube-prometheus/
kube-prometheus
.libsonnet'
)
+
(
import
'kube-prometheus/
main
.libsonnet'
)
+
// Uncomment the following imports to enable its patches
// Uncomment the following imports to enable its patches
// (import 'kube-prometheus/
kube-prometheus-
anti-affinity.libsonnet') +
// (import 'kube-prometheus/
addons/
anti-affinity.libsonnet') +
// (import 'kube-prometheus/
kube-prometheus-
managed-cluster.libsonnet') +
// (import 'kube-prometheus/
addons/
managed-cluster.libsonnet') +
// (import 'kube-prometheus/
kube-prometheus-
node-ports.libsonnet') +
// (import 'kube-prometheus/
addons/
node-ports.libsonnet') +
// (import 'kube-prometheus/
kube-prometheus-
static-etcd.libsonnet') +
// (import 'kube-prometheus/
addons/
static-etcd.libsonnet') +
// (import 'kube-prometheus/
kube-prometheus-
thanos-sidecar.libsonnet') +
// (import 'kube-prometheus/
addons/
thanos-sidecar.libsonnet') +
// (import 'kube-prometheus/
kube-prometheus-
custom-metrics.libsonnet') +
// (import 'kube-prometheus/
addons/
custom-metrics.libsonnet') +
// (import 'kube-prometheus/
kube-prometheus-
external-metrics.libsonnet') +
// (import 'kube-prometheus/
addons/
external-metrics.libsonnet') +
{
{
values
+::
{
values
+::
{
common
+:
{
common
+:
{
...
@@ -413,24 +413,24 @@ kubeadm:
...
@@ -413,24 +413,24 @@ kubeadm:
[
embedmd
]:
#
(examples/jsonnet-snippets/kubeadm.jsonnet)
[
embedmd
]:
#
(examples/jsonnet-snippets/kubeadm.jsonnet)
```
jsonnet
```
jsonnet
(
import
'kube-prometheus/
kube-prometheus
.libsonnet'
)
+
(
import
'kube-prometheus/
main
.libsonnet'
)
+
(
import
'kube-prometheus/
kube-prometheus-
kubeadm.libsonnet'
)
(
import
'kube-prometheus/
platforms/
kubeadm.libsonnet'
)
```
```
bootkube:
bootkube:
[
embedmd
]:
#
(examples/jsonnet-snippets/bootkube.jsonnet)
[
embedmd
]:
#
(examples/jsonnet-snippets/bootkube.jsonnet)
```
jsonnet
```
jsonnet
(
import
'kube-prometheus/
kube-prometheus
.libsonnet'
)
+
(
import
'kube-prometheus/
main
.libsonnet'
)
+
(
import
'kube-prometheus/
kube-prometheus-
bootkube.libsonnet'
)
(
import
'kube-prometheus/
platforms/
bootkube.libsonnet'
)
```
```
kops:
kops:
[
embedmd
]:
#
(examples/jsonnet-snippets/kops.jsonnet)
[
embedmd
]:
#
(examples/jsonnet-snippets/kops.jsonnet)
```
jsonnet
```
jsonnet
(
import
'kube-prometheus/
kube-prometheus
.libsonnet'
)
+
(
import
'kube-prometheus/
main
.libsonnet'
)
+
(
import
'kube-prometheus/
kube-prometheus-
kops.libsonnet'
)
(
import
'kube-prometheus/
platforms/
kops.libsonnet'
)
```
```
kops with CoreDNS:
kops with CoreDNS:
...
@@ -439,25 +439,25 @@ If your kops cluster is using CoreDNS, there is an additional mixin to import.
...
@@ -439,25 +439,25 @@ If your kops cluster is using CoreDNS, there is an additional mixin to import.
[
embedmd
]:
#
(examples/jsonnet-snippets/kops-coredns.jsonnet)
[
embedmd
]:
#
(examples/jsonnet-snippets/kops-coredns.jsonnet)
```
jsonnet
```
jsonnet
(
import
'kube-prometheus/
kube-prometheus
.libsonnet'
)
+
(
import
'kube-prometheus/
main
.libsonnet'
)
+
(
import
'kube-prometheus/
kube-prometheus-
kops.libsonnet'
)
+
(
import
'kube-prometheus/
platforms/
kops.libsonnet'
)
+
(
import
'kube-prometheus/
kube-prometheus-
kops-coredns.libsonnet'
)
(
import
'kube-prometheus/
platforms/
kops-coredns.libsonnet'
)
```
```
kubespray:
kubespray:
[
embedmd
]:
#
(examples/jsonnet-snippets/kubespray.jsonnet)
[
embedmd
]:
#
(examples/jsonnet-snippets/kubespray.jsonnet)
```
jsonnet
```
jsonnet
(
import
'kube-prometheus/
kube-prometheus
.libsonnet'
)
+
(
import
'kube-prometheus/
main
.libsonnet'
)
+
(
import
'kube-prometheus/
kube-prometheus-
kubespray.libsonnet'
)
(
import
'kube-prometheus/
platforms/
kubespray.libsonnet'
)
```
```
kube-
aws:
aws:
[
embedmd
]:
#
(examples/jsonnet-snippets/
kube-
aws.jsonnet)
[
embedmd
]:
#
(examples/jsonnet-snippets/aws.jsonnet)
```
jsonnet
```
jsonnet
(
import
'kube-prometheus/
kube-prometheus
.libsonnet'
)
+
(
import
'kube-prometheus/
main
.libsonnet'
)
+
(
import
'kube-prometheus/
kube-prometheus-kube-
aws.libsonnet'
)
(
import
'kube-prometheus/
platforms/
aws.libsonnet'
)
```
```
### Internal Registry
### Internal Registry
...
@@ -505,8 +505,8 @@ Another mixin that may be useful for exploring the stack is to expose the UIs of
...
@@ -505,8 +505,8 @@ Another mixin that may be useful for exploring the stack is to expose the UIs of
[
embedmd
]:
#
(examples/jsonnet-snippets/node-ports.jsonnet)
[
embedmd
]:
#
(examples/jsonnet-snippets/node-ports.jsonnet)
```
jsonnet
```
jsonnet
(
import
'kube-prometheus/
kube-prometheus
.libsonnet'
)
+
(
import
'kube-prometheus/
main
.libsonnet'
)
+
(
import
'kube-prometheus/
kube-prometheus-
node-ports.libsonnet'
)
(
import
'kube-prometheus/
addons/
node-ports.libsonnet'
)
```
```
### Prometheus Object Name
### Prometheus Object Name
...
...
This diff is collapsed.
Click to expand it.
docs/developing-prometheus-rules-and-grafana-dashboards.md
+
8
−
8
View file @
42a3ac06
...
@@ -11,15 +11,15 @@ As a basis, all examples in this guide are based on the base example of the kube
...
@@ -11,15 +11,15 @@ As a basis, all examples in this guide are based on the base example of the kube
[
embedmd
]:
#
(../example.jsonnet)
[
embedmd
]:
#
(../example.jsonnet)
```
jsonnet
```
jsonnet
local
kp
=
local
kp
=
(
import
'kube-prometheus/
kube-prometheus
.libsonnet'
)
+
(
import
'kube-prometheus/
main
.libsonnet'
)
+
// Uncomment the following imports to enable its patches
// Uncomment the following imports to enable its patches
// (import 'kube-prometheus/
kube-prometheus-
anti-affinity.libsonnet') +
// (import 'kube-prometheus/
addons/
anti-affinity.libsonnet') +
// (import 'kube-prometheus/
kube-prometheus-
managed-cluster.libsonnet') +
// (import 'kube-prometheus/
addons/
managed-cluster.libsonnet') +
// (import 'kube-prometheus/
kube-prometheus-
node-ports.libsonnet') +
// (import 'kube-prometheus/
addons/
node-ports.libsonnet') +
// (import 'kube-prometheus/
kube-prometheus-
static-etcd.libsonnet') +
// (import 'kube-prometheus/
addons/
static-etcd.libsonnet') +
// (import 'kube-prometheus/
kube-prometheus-
thanos-sidecar.libsonnet') +
// (import 'kube-prometheus/
addons/
thanos-sidecar.libsonnet') +
// (import 'kube-prometheus/
kube-prometheus-
custom-metrics.libsonnet') +
// (import 'kube-prometheus/
addons/
custom-metrics.libsonnet') +
// (import 'kube-prometheus/
kube-prometheus-
external-metrics.libsonnet') +
// (import 'kube-prometheus/
addons/
external-metrics.libsonnet') +
{
{
values
+::
{
values
+::
{
common
+:
{
common
+:
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment