Skip to content
This repository was archived by the owner on Mar 29, 2021. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
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
16 changes: 8 additions & 8 deletions dashboards/Business_Logic_Monitoring-1510165692840.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"__inputs": [
{
"name": "DS_PROMETHEUS_SERVER",
"label": "Prometheus Server",
"name": "DS_HTTP://35.198.163.2",
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

А почему IP-адресом на датасорс ссылался?

"label": "http://35.198.163.2",
"description": "",
"type": "datasource",
"pluginId": "prometheus",
Expand All @@ -14,7 +14,7 @@
"type": "grafana",
"id": "grafana",
"name": "Grafana",
"version": "4.6.1"
"version": "4.6.3"
},
{
"type": "panel",
Expand Down Expand Up @@ -58,7 +58,7 @@
"bars": false,
"dashLength": 10,
"dashes": false,
"datasource": "${DS_PROMETHEUS_SERVER}",
"datasource": "${DS_HTTP://35.198.163.2}",
"fill": 1,
"id": 1,
"legend": {
Expand All @@ -85,7 +85,7 @@
"steppedLine": false,
"targets": [
{
"expr": "rate(post_count[1h])",
"expr": "rate(post_count{namespace=~\"$namespace\"}[1h])",
"format": "time_series",
"intervalFactor": 2,
"refId": "A"
Expand Down Expand Up @@ -144,7 +144,7 @@
"bars": false,
"dashLength": 10,
"dashes": false,
"datasource": "${DS_PROMETHEUS_SERVER}",
"datasource": "${DS_HTTP://35.198.163.2}",
"fill": 1,
"id": 2,
"legend": {
Expand All @@ -171,7 +171,7 @@
"steppedLine": false,
"targets": [
{
"expr": "rate(comment_count[1h])",
"expr": "rate(comment_count{namespace=~\"$namespace\"}[1h])",
"format": "time_series",
"intervalFactor": 2,
"refId": "A"
Expand Down Expand Up @@ -259,5 +259,5 @@
},
"timezone": "",
"title": "Business_Logic_Monitoring",
"version": 2
"version": 1
}
44 changes: 33 additions & 11 deletions dashboards/UI_Service_Monitoring-1510164048862.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"__inputs": [
{
"name": "DS_PROMETHEUS_SERVER",
"label": "Prometheus Server",
"name": "DS_HTTP://35.198.163.2",
"label": "http://35.198.163.2",
"description": "",
"type": "datasource",
"pluginId": "prometheus",
Expand All @@ -14,7 +14,7 @@
"type": "grafana",
"id": "grafana",
"name": "Grafana",
"version": "4.6.1"
"version": "4.6.3"
},
{
"type": "panel",
Expand Down Expand Up @@ -48,6 +48,7 @@
"hideControls": false,
"id": null,
"links": [],
"refresh": false,
"rows": [
{
"collapse": false,
Expand All @@ -58,7 +59,7 @@
"bars": false,
"dashLength": 10,
"dashes": false,
"datasource": "${DS_PROMETHEUS_SERVER}",
"datasource": "${DS_HTTP://35.198.163.2}",
"fill": 1,
"id": 1,
"legend": {
Expand All @@ -85,7 +86,7 @@
"steppedLine": false,
"targets": [
{
"expr": "ui_request_count",
"expr": "ui_request_count{namespace=~\"$namespace\"}",
"format": "time_series",
"intervalFactor": 2,
"refId": "A"
Expand Down Expand Up @@ -144,7 +145,7 @@
"bars": false,
"dashLength": 10,
"dashes": false,
"datasource": "${DS_PROMETHEUS_SERVER}",
"datasource": "${DS_HTTP://35.198.163.2}",
"fill": 1,
"id": 3,
"legend": {
Expand All @@ -171,7 +172,7 @@
"steppedLine": false,
"targets": [
{
"expr": "rate(ui_request_count{http_status=~\"^[45].*\"}[5m])",
"expr": "rate(ui_request_count{http_status=~\"^[45].*\",namespace=~\"$namespace\"}[5m])",
"format": "time_series",
"intervalFactor": 2,
"refId": "A"
Expand Down Expand Up @@ -230,7 +231,7 @@
"bars": false,
"dashLength": 10,
"dashes": false,
"datasource": "${DS_PROMETHEUS_SERVER}",
"datasource": "${DS_HTTP://35.198.163.2}",
"fill": 1,
"id": 4,
"legend": {
Expand Down Expand Up @@ -312,11 +313,32 @@
"style": "dark",
"tags": [],
"templating": {
"list": []
"list": [
{
"allValue": null,
"current": {},
"datasource": "${DS_HTTP://35.198.163.2}",
"hide": 0,
"includeAll": true,
"label": "Env",
"multi": true,
"name": "namespace",
"options": [],
"query": "label_values(namespace)",
"refresh": 1,
"regex": "/.*/",
"sort": 0,
"tagValuesQuery": "",
"tags": [],
"tagsQuery": "",
"type": "query",
"useTags": false
}
]
},
"time": {
"from": "now-15m",
"to": "now"
"from": "2018-01-17T15:05:16.631Z",
"to": "2018-01-17T15:35:16.631Z"
},
"timepicker": {
"refresh_intervals": [
Expand Down
21 changes: 21 additions & 0 deletions kubernetes/Charts/prometheus/.helmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# Patterns to ignore when building packages.
# This supports shell glob matching, relative path matching, and
# negation (prefixed with !). Only one pattern per line.
.DS_Store
# Common VCS dirs
.git/
.gitignore
.bzr/
.bzrignore
.hg/
.hgignore
.svn/
# Common backup files
*.swp
*.bak
*.tmp
*~
# Various IDEs
.project
.idea/
*.tmproj
14 changes: 14 additions & 0 deletions kubernetes/Charts/prometheus/Chart.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
name: prometheus
version: 5.0.0
description: Prometheus is a monitoring system and time series database.
home: https://prometheus.io/
icon: https://raw.githubusercontent.com/prometheus/prometheus.github.io/master/assets/prometheus_logo-cb55bb5c346.png
sources:
- https://github.com/prometheus/alertmanager
- https://github.com/prometheus/prometheus
- https://github.com/prometheus/pushgateway
- https://github.com/kubernetes/kube-state-metrics
maintainers:
- name: mgoodness
email: [email protected]
engine: gotpl
Loading