-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add observability chart #10
Merged
Merged
Changes from all commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
020c067
Add observability chart
nydr d971504
Add dashed lines for daemonset chart
nydr 515e7a5
Add map to chart
nydr b4bbbe6
Add values for lint
nydr a2fe7b1
Add medic logs dashboard
nydr 93ef32c
Default to show logs from kube-system namespace
nydr 3370805
Refresh container list on timespan change
nydr File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
# 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 | ||
*.orig | ||
*~ | ||
# Various IDEs | ||
.project | ||
.idea/ | ||
*.tmproj | ||
.vscode/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
dependencies: | ||
- name: grafana | ||
repository: https://grafana.github.io/helm-charts | ||
version: 7.3.9 | ||
- name: loki | ||
repository: https://grafana.github.io/helm-charts | ||
version: 5.36.3 | ||
- name: opencost | ||
repository: https://opencost.github.io/opencost-helm-chart | ||
version: 1.33.3 | ||
- name: prometheus | ||
repository: https://prometheus-community.github.io/helm-charts | ||
version: 25.19.1 | ||
digest: sha256:17da27050d4d929132a812a2fcfc17f6efd1352f90bf05584d1accad698dbe1d | ||
generated: "2024-04-18T13:59:29.786238+02:00" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
apiVersion: v2 | ||
name: observability | ||
description: A Helm chart for medic observability | ||
home: https://github.com/medic/helm-charts/tree/main/charts/observability | ||
|
||
|
||
# A chart can be either an 'application' or a 'library' chart. | ||
# | ||
# Application charts are a collection of templates that can be packaged into versioned archives | ||
# to be deployed. | ||
# | ||
# Library charts provide useful utilities or functions for the chart developer. They're included as | ||
# a dependency of application charts to inject those utilities and functions into the rendering | ||
# pipeline. Library charts do not define any templates and therefore cannot be deployed. | ||
type: application | ||
|
||
# This is the chart version. This version number should be incremented each time you make changes | ||
# to the chart and its templates, including the app version. | ||
# Versions are expected to follow Semantic Versioning (https://semver.org/) | ||
version: 0.1.2 | ||
|
||
# This is the version number of the application being deployed. This version number should be | ||
# incremented each time you make changes to the application. Versions are not expected to | ||
# follow Semantic Versioning. They should reflect the version the application is using. | ||
# It is recommended to use it with quotes. | ||
appVersion: "1.16.0" | ||
dependencies: | ||
- name: grafana | ||
version: "7.3.*" | ||
repository: https://grafana.github.io/helm-charts | ||
condition: grafana.enabled | ||
- name: loki | ||
version: "5.36.*" | ||
repository: https://grafana.github.io/helm-charts | ||
condition: loki.enabled | ||
- name: opencost | ||
version: "1.33.*" | ||
repository: https://opencost.github.io/opencost-helm-chart | ||
condition: opencost.enabled | ||
- name: prometheus | ||
version: "25.19.*" | ||
repository: https://prometheus-community.github.io/helm-charts | ||
condition: prometheus.enabled |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
# Medic Observability | ||
|
||
## Chart | ||
``` | ||
┌─Map────────┐ | ||
│ │ | ||
│ ─▶ Metrics │ | ||
│ │ | ||
│ ═▷ Logs │ ┌────────┐ | ||
│ │ │Opencost│ | ||
└────────────┘ └──▲┬────┘ | ||
┌───┴▼─────┐ | ||
┌────▶Prometheus├───┐ | ||
┌ Daemonset ─ ─ ─ ─ ─ ─ ─│─ ┐ └──────────┘ │ | ||
┌─────────────┐ ┌─────┴┐ ┌───▼───┐ | ||
│ │node-exporter├──▶Vector│ │ │Grafana│ | ||
└─────────────┘ └─△───╦┘ └───△───┘ | ||
└ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─║─ ─║─ ┘ ┌──────────┐ ║ | ||
┌───────╩─┐ ╚════▷ Loki ╠═══╝ | ||
│Node logs│ └──────────┘ | ||
└─────────┘ | ||
|
||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,183 @@ | ||
{ | ||
"annotations": { | ||
"list": [ | ||
{ | ||
"builtIn": 1, | ||
"datasource": { | ||
"type": "grafana", | ||
"uid": "-- Grafana --" | ||
}, | ||
"enable": true, | ||
"hide": true, | ||
"iconColor": "rgba(0, 211, 255, 1)", | ||
"name": "Annotations & Alerts", | ||
"type": "dashboard" | ||
} | ||
] | ||
}, | ||
"editable": true, | ||
"fiscalYearStartMonth": 0, | ||
"graphTooltip": 0, | ||
"links": [], | ||
"panels": [ | ||
{ | ||
"datasource": { | ||
"type": "loki", | ||
"uid": "${datasource}" | ||
}, | ||
"gridPos": { | ||
"h": 15, | ||
"w": 24, | ||
"x": 0, | ||
"y": 0 | ||
}, | ||
"id": 1, | ||
"options": { | ||
"dedupStrategy": "none", | ||
"enableLogDetails": true, | ||
"prettifyLogMessage": false, | ||
"showCommonLabels": false, | ||
"showLabels": false, | ||
"showTime": false, | ||
"sortOrder": "Descending", | ||
"wrapLogMessage": false | ||
}, | ||
"targets": [ | ||
{ | ||
"datasource": { | ||
"type": "loki", | ||
"uid": "${datasource}" | ||
}, | ||
"editorMode": "builder", | ||
"expr": "{namespace=\"$namespace\", container=~\"$container\"} | json message | line_format `{{.message}}` |~ `(?i)$search`", | ||
"queryType": "range", | ||
"refId": "A" | ||
} | ||
], | ||
"title": "Logs", | ||
"type": "logs" | ||
} | ||
], | ||
"schemaVersion": 39, | ||
"tags": [ | ||
"medic", | ||
"logs" | ||
], | ||
"templating": { | ||
"list": [ | ||
{ | ||
"current": { | ||
"selected": false, | ||
"text": "Medic / Loki", | ||
"value": "P0218D2AE89D0C514" | ||
}, | ||
"hide": 0, | ||
"includeAll": false, | ||
"label": "Datasource", | ||
"multi": false, | ||
"name": "datasource", | ||
"options": [], | ||
"query": "loki", | ||
"queryValue": "", | ||
"refresh": 1, | ||
"regex": "", | ||
"skipUrlSync": false, | ||
"type": "datasource" | ||
}, | ||
{ | ||
"current": { | ||
"selected": true, | ||
"text": "kube-system", | ||
"value": "kube-system" | ||
}, | ||
"datasource": { | ||
"type": "loki", | ||
"uid": "${datasource}" | ||
}, | ||
"definition": "", | ||
"hide": 0, | ||
"includeAll": false, | ||
"label": "Namespace", | ||
"multi": false, | ||
"name": "namespace", | ||
"options": [], | ||
"query": { | ||
"label": "namespace", | ||
"refId": "LokiVariableQueryEditor-VariableQuery", | ||
"stream": "", | ||
"type": 1 | ||
}, | ||
"refresh": 1, | ||
"regex": "", | ||
"skipUrlSync": false, | ||
"sort": 0, | ||
"type": "query" | ||
}, | ||
{ | ||
"allValue": ".*", | ||
"current": { | ||
"selected": true, | ||
"text": [ | ||
"All" | ||
], | ||
"value": [ | ||
"$__all" | ||
] | ||
}, | ||
"datasource": { | ||
"type": "loki", | ||
"uid": "${datasource}" | ||
}, | ||
"definition": "", | ||
"hide": 0, | ||
"includeAll": true, | ||
"label": "Container", | ||
"multi": true, | ||
"name": "container", | ||
"options": [], | ||
"query": { | ||
"label": "container", | ||
"refId": "LokiVariableQueryEditor-VariableQuery", | ||
"stream": "{namespace=\"$namespace\"}", | ||
"type": 1 | ||
}, | ||
"refresh": 2, | ||
"regex": "", | ||
"skipUrlSync": false, | ||
"sort": 0, | ||
"type": "query" | ||
}, | ||
{ | ||
"current": { | ||
"selected": false, | ||
"text": "", | ||
"value": "" | ||
}, | ||
"description": "Case insensitive search of log message content", | ||
"hide": 0, | ||
"label": "Search", | ||
"name": "search", | ||
"options": [ | ||
{ | ||
"selected": true, | ||
"text": "", | ||
"value": "" | ||
} | ||
], | ||
"query": "", | ||
"skipUrlSync": false, | ||
"type": "textbox" | ||
} | ||
] | ||
}, | ||
"time": { | ||
"from": "now-1h", | ||
"to": "now" | ||
}, | ||
"timepicker": {}, | ||
"timezone": "browser", | ||
"title": "Medic / Logs", | ||
"uid": "edj073o8s7b40a", | ||
"version": 1, | ||
"weekStart": "" | ||
} |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
light preference to use mermaid instead of ASCII, but not that big of a deal. If you do convert it, build it in the live editor and then paste in the resulting markdown - v. fast!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm on the fence about this, mermaid if nice, but some of the consumers will be local terminal (
helm show readme <chart>
or locally checked out git repo) in which case I find it preferable to have plain ASCII. I vote that we keep it ASCII and reconsider mermaid if it becomes complex enough where ASCII is too limiting.Here's an example how mermaid would look:
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
cools - Thanks for explaining your desire to go wit ASCII. makes sense then!