Skip to content

Commit

Permalink
Promtail and dashboard changes for z/VM
Browse files Browse the repository at this point in the history
  • Loading branch information
viccross committed Jul 3, 2024
1 parent 12fe3f3 commit 64f2c99
Show file tree
Hide file tree
Showing 2 changed files with 56 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@
"uid": "elanLoki"
},
"editorMode": "builder",
"expr": "{application=\"VMCONS\"} |= `` | line_format \"{{ .hostname }} {{__line__}}\"",
"expr": "{application=\"VMCONS\", zvm_guest=~\"${guestname}\"} |= `` | line_format \"{{ .zvm_guest }} {{__line__}}\"",
"queryType": "range",
"refId": "A"
}
Expand Down Expand Up @@ -153,7 +153,7 @@
"uid": "elanLoki"
},
"editorMode": "builder",
"expr": "{application=\"VMEVENT\"} |= ``",
"expr": "{application=\"VMEVENT\", zvm_guest=~\"${guestname}\"} |= ``",
"queryType": "range",
"refId": "A"
}
Expand All @@ -167,7 +167,38 @@
"style": "dark",
"tags": [],
"templating": {
"list": []
"list": [
{
"current": {
"selected": false,
"text": "All",
"value": "$__all"
},
"datasource": {
"type": "loki",
"uid": "elanLoki"
},
"definition": "",
"description": "Filter on z/VM guest name",
"hide": 0,
"includeAll": true,
"label": "z/VM guest name",
"multi": true,
"name": "guestname",
"options": [],
"query": {
"label": "zvm_guest",
"refId": "LokiVariableQueryEditor-VariableQuery",
"stream": "",
"type": 1
},
"refresh": 2,
"regex": "/^(?!(?:localhost)$)(.+)/",
"skipUrlSync": false,
"sort": 0,
"type": "query"
}
]
},
"time": {
"from": "now-6h",
Expand All @@ -177,6 +208,6 @@
"timezone": "",
"title": "z/VM ESI System Messages",
"uid": "RfzH9eoSz",
"version": 2,
"version": 4,
"weekStart": ""
}
Original file line number Diff line number Diff line change
Expand Up @@ -26,3 +26,24 @@ scrape_configs:
target_label: application
- source_labels: [__syslog_message_facility]
target_label: facility
pipeline_stages:
- match:
pipeline_name: vmcons
selector: '{application="VMCONS"}'
stages:
- labels:
zvm_guest: hostname
- labeldrop:
- hostname
- level
- facility
- match:
pipeline_name: vmevent
selector: '{application="VMEVENT"}'
stages:
- labels:
zvm_guest: hostname
- labeldrop:
- hostname
- level
- facility

0 comments on commit 64f2c99

Please sign in to comment.