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
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
GitHub Mirror
prometheus-operator
kube-prometheus
Commits
b1c67410
Unverified
Commit
b1c67410
authored
6 years ago
by
Matthias Loibl
Browse files
Options
Downloads
Patches
Plain Diff
Add commented imports for most common patches to example.jsonnet
parent
133d9a95
No related branches found
No related tags found
No related merge requests found
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
README.md
+8
-1
8 additions, 1 deletion
README.md
docs/developing-prometheus-rules-and-grafana-dashboards.md
+8
-1
8 additions, 1 deletion
docs/developing-prometheus-rules-and-grafana-dashboards.md
example.jsonnet
+8
-1
8 additions, 1 deletion
example.jsonnet
with
24 additions
and
3 deletions
README.md
+
8
−
1
View file @
b1c67410
...
...
@@ -160,7 +160,14 @@ Here's [example.jsonnet](example.jsonnet):
[
embedmd
]:
#
(example.jsonnet)
```
jsonnet
local
kp
=
(
import
'kube-prometheus/kube-prometheus.libsonnet'
)
+
{
(
import
'kube-prometheus/kube-prometheus.libsonnet'
)
+
// Uncomment the following imports to enable its patches
// (import 'kube-prometheus/kube-prometheus-anti-affinity.libsonnet') +
// (import 'kube-prometheus/kube-prometheus-managed-cluster.libsonnet') +
// (import 'kube-prometheus/kube-prometheus-node-ports.libsonnet') +
// (import 'kube-prometheus/kube-prometheus-static-etcd.libsonnet') +
// (import 'kube-prometheus/kube-prometheus-thanos.libsonnet') +
{
_config
+::
{
namespace
:
'monitoring'
,
},
...
...
This diff is collapsed.
Click to expand it.
docs/developing-prometheus-rules-and-grafana-dashboards.md
+
8
−
1
View file @
b1c67410
...
...
@@ -11,7 +11,14 @@ As a basis, all examples in this guide are based on the base example of the kube
[
embedmd
]:
#
(../example.jsonnet)
```
jsonnet
local
kp
=
(
import
'kube-prometheus/kube-prometheus.libsonnet'
)
+
{
(
import
'kube-prometheus/kube-prometheus.libsonnet'
)
+
// Uncomment the following imports to enable its patches
// (import 'kube-prometheus/kube-prometheus-anti-affinity.libsonnet') +
// (import 'kube-prometheus/kube-prometheus-managed-cluster.libsonnet') +
// (import 'kube-prometheus/kube-prometheus-node-ports.libsonnet') +
// (import 'kube-prometheus/kube-prometheus-static-etcd.libsonnet') +
// (import 'kube-prometheus/kube-prometheus-thanos.libsonnet') +
{
_config
+::
{
namespace
:
'monitoring'
,
},
...
...
This diff is collapsed.
Click to expand it.
example.jsonnet
+
8
−
1
View file @
b1c67410
local
kp
=
(
import
'kube-prometheus/kube-prometheus.libsonnet'
)
+
{
(
import
'kube-prometheus/kube-prometheus.libsonnet'
)
+
// Uncomment the following imports to enable its patches
// (import 'kube-prometheus/kube-prometheus-anti-affinity.libsonnet') +
// (import 'kube-prometheus/kube-prometheus-managed-cluster.libsonnet') +
// (import 'kube-prometheus/kube-prometheus-node-ports.libsonnet') +
// (import 'kube-prometheus/kube-prometheus-static-etcd.libsonnet') +
// (import 'kube-prometheus/kube-prometheus-thanos.libsonnet') +
{
_config
+::
{
namespace
:
'monitoring'
,
},
...
...
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