Skip to content

Commit

Permalink
Merge pull request #667 from catenax-ng/feat(monitoring)/283-Visualiz…
Browse files Browse the repository at this point in the history
…ation-of-health-metrics-in-Grafana-Dashboard

Feat(monitoring)/283 visualization of health metrics in grafana dashboard
  • Loading branch information
dsmf authored Nov 28, 2023
2 parents 5551412 + 678bc24 commit 2377f31
Show file tree
Hide file tree
Showing 14 changed files with 1,006 additions and 5 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- ESS
- Added 'hops' parameter to SupplyChainImpacted Aspect model - contains relative distance in the supply chain
- Added `impactedSuppliersOnFirstTier` parameter to Supply SupplyChainImpacted Aspect model - contains information of first level supply chain impacted
- Exported health endpoints to prometheus (see HealthMetricsExportConfiguration,
DependenciesHealthMetricsExportConfiguration) and
added [system health dashboard](charts/irs-helm/dashboards/system-health-dashboard.json) in order to visualize health
metrics of IRS and its dependencies

### Fixed
- Fixed incorrect passing of incidentBPNS for ESS Orders

Expand Down
2 changes: 2 additions & 0 deletions charts/irs-helm/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
## [Unreleased]
### Fixed
- Fixed templating for `management.health.dependencies`
- Added [system health dashboard](dashboards/system-health-dashboard.json) in order to visualize health metrics of IRS
and its dependencies

## [6.10.0]
### Changed
Expand Down
249 changes: 249 additions & 0 deletions charts/irs-helm/dashboards/system-health-dashboard.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,249 @@
{
"annotations": {
"list": [
{
"builtIn": 1,
"datasource": {
"type": "grafana",
"uid": "-- Grafana --"
},
"enable": true,
"hide": true,
"iconColor": "rgba(0, 211, 255, 1)",
"name": "Annotations & Alerts",
"target": {
"limit": 100,
"matchAny": false,
"tags": [],
"type": "dashboard"
},
"type": "dashboard"
}
]
},
"editable": true,
"fiscalYearStartMonth": 0,
"graphTooltip": 0,
"id": 7,
"links": [],
"liveNow": false,
"panels": [
{
"datasource": {
"type": "prometheus",
"uid": "PBFA97CFB590B2093"
},
"fieldConfig": {
"defaults": {
"color": {
"mode": "continuous-GrYlRd"
},
"custom": {
"fillOpacity": 70,
"lineWidth": 1
},
"mappings": [
{
"options": {
"0": {
"color": "purple",
"index": 3,
"text": "UNKNOWN"
},
"1": {
"color": "red",
"index": 1,
"text": "DOWN"
},
"2": {
"color": "#808080",
"index": 2,
"text": "OUT"
},
"3": {
"color": "green",
"index": 0,
"text": "UP"
}
},
"type": "value"
}
],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "transparent",
"value": null
}
]
}
},
"overrides": []
},
"gridPos": {
"h": 9,
"w": 23,
"x": 0,
"y": 0
},
"id": 4,
"options": {
"colWidth": 0.9,
"legend": {
"displayMode": "list",
"placement": "bottom",
"showLegend": true
},
"rowHeight": 0.9,
"showValue": "auto",
"tooltip": {
"mode": "single",
"sort": "none"
}
},
"pluginVersion": "9.2.5",
"targets": [
{
"datasource": {
"type": "prometheus",
"uid": "${DS_PROMETHEUS}"
},
"editorMode": "builder",
"exemplar": false,
"expr": "health_irs",
"format": "time_series",
"hide": false,
"instant": false,
"legendFormat": "IRS Health",
"range": true,
"refId": "health_irs"
},
{
"datasource": {
"type": "prometheus",
"uid": "${DS_PROMETHEUS}"
},
"editorMode": "builder",
"exemplar": false,
"expr": "health_irs_dependency_overall",
"format": "time_series",
"instant": false,
"interval": "",
"legendFormat": "Dependency Overall Status",
"range": true,
"refId": "health_irs_dependencies_overall"
}
],
"title": "IRS Health",
"type": "status-history"
},
{
"datasource": {
"type": "prometheus",
"uid": "PBFA97CFB590B2093"
},
"fieldConfig": {
"defaults": {
"color": {
"mode": "thresholds"
},
"custom": {
"fillOpacity": 70,
"lineWidth": 1
},
"mappings": [
{
"options": {
"3": {
"color": "green",
"index": 0,
"text": "UP"
}
},
"type": "value"
},
{
"options": {
"from": 0,
"result": {
"color": "red",
"index": 1,
"text": "DOWN"
},
"to": 2
},
"type": "range"
}
],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "transparent",
"value": null
}
]
}
},
"overrides": []
},
"gridPos": {
"h": 9,
"w": 23,
"x": 0,
"y": 9
},
"id": 6,
"options": {
"colWidth": 0.9,
"legend": {
"displayMode": "list",
"placement": "bottom",
"showLegend": true
},
"rowHeight": 0.9,
"showValue": "auto",
"tooltip": {
"mode": "single",
"sort": "none"
}
},
"targets": [
{
"datasource": {
"type": "prometheus",
"uid": "${DS_PROMETHEUS}"
},
"editorMode": "builder",
"exemplar": false,
"expr": "health_irs_dependency",
"instant": false,
"interval": "",
"legendFormat": "{{name}}",
"range": true,
"refId": "A"
}
],
"title": "IRS Dependencies Health",
"type": "status-history"
}
],
"refresh": "5s",
"schemaVersion": 37,
"style": "dark",
"tags": [],
"templating": {
"list": []
},
"time": {
"from": "now-15m",
"to": "now"
},
"timepicker": {},
"timezone": "",
"title": "System Health",
"uid": "_3NCxeSSk1",
"version": 1,
"weekStart": ""
}
Loading

0 comments on commit 2377f31

Please sign in to comment.