Skip to content

Commit 10c9297

Browse files
authored
fix active sessions panel in sample dashboard: (#42)
Signed-off-by: Mark Nelson <mark.x.nelson@oracle.com>
1 parent 36bcaa1 commit 10c9297

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

‎README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,7 @@ The containers will take a short time to start. The first time, the Oracle cont
228228
Once the containers are all running, you can access the services using these URLs:
229229

230230
- [Exporter](http://localhost:9161/metrics)
231-
- [Prometheus](http://localhost:9000) - try a query for "oracle".
231+
- [Prometheus](http://localhost:9090) - try a query for "oracle".
232232
- [Grafana](http://localhost:3000) - username is "admin" and password is "grafana". An Oracle Database dashboard is provisioned and configured to use data from the exporter.
233233

234234
### Kubernetes

‎docker-compose/grafana/dashboards/3333_rev1.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -212,11 +212,11 @@
212212
"calculatedInterval": "10m",
213213
"datasourceErrors": {},
214214
"errors": {},
215-
"expr": "oracledb_sessions_active{instance=\"$host\"}",
215+
"expr": "oracledb_sessions_value{instance=\"$host\", status=\"ACTIVE\"}",
216216
"format": "time_series",
217217
"interval": "$interval",
218218
"intervalFactor": 1,
219-
"legendFormat": "",
219+
"legendFormat": "{{type}}",
220220
"metric": "",
221221
"refId": "A",
222222
"step": 60
@@ -225,7 +225,7 @@
225225
"thresholds": "",
226226
"title": "active sessions",
227227
"transparent": false,
228-
"type": "singlestat",
228+
"type": "stat",
229229
"valueFontSize": "100%",
230230
"valueMaps": [],
231231
"valueName": "current"

0 commit comments

Comments
 (0)