From 920705b4c384a3ae58a41d675340f6e9ba3b06c2 Mon Sep 17 00:00:00 2001 From: Paul Parkinson Date: Wed, 23 Mar 2022 11:36:57 -0400 Subject: [PATCH 01/16] add list of default metrics in readme --- README.md | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/README.md b/README.md index 17431fa6..7dd241f8 100644 --- a/README.md +++ b/README.md @@ -4,6 +4,34 @@ This distribution contains scripts and code for exporting metrics and logs from v1 (preview) - contains export of key database metrics to Prometheus and suggested Grafana dashboard +The following metrics are exposed currently by default. + +- oracledb_exporter_last_scrape_duration_seconds +- oracledb_exporter_last_scrape_error +- oracledb_exporter_scrapes_total +- oracledb_up +- oracledb_activity_execute_count +- oracledb_activity_parse_count_total +- oracledb_activity_user_commits +- oracledb_activity_user_rollbacks +- oracledb_sessions_activity +- oracledb_wait_time_application +- oracledb_wait_time_commit +- oracledb_wait_time_concurrency +- oracledb_wait_time_configuration +- oracledb_wait_time_network +- oracledb_wait_time_other +- oracledb_wait_time_scheduler +- oracledb_wait_time_system_io +- oracledb_wait_time_user_io +- oracledb_tablespace_bytes +- oracledb_tablespace_max_bytes +- oracledb_tablespace_free +- oracledb_tablespace_used_percent +- oracledb_process_count +- oracledb_resource_current_utilization +- oracledb_resource_limit_value + ## Table of Contents - [Unified App Dev Monitoring with Oracle Database](#unified-app-dev-monitoring-with-oracle-database) From 6884e447881e89204519f66d5dc8cf646424b49e Mon Sep 17 00:00:00 2001 From: Paul Parkinson Date: Mon, 30 May 2022 23:35:23 -0400 Subject: [PATCH 02/16] init new observability exporter, delete old metrics exporter --- Dockerfile | 5 + Makefile | 26 - README.md | 762 +--- RunningOutsideKubernetes.md | 0 build.sh | 39 + docker-compose.yml | 76 - .../graf_app_vol/dashboard_concurrency.json | 1997 ----------- docker_vol/graf_app_vol/dashboard_io.json | 493 --- docker_vol/graf_app_vol/dashboard_query.json | 1664 --------- docker_vol/graf_app_vol/dashboard_sys.json | 3098 ----------------- docker_vol/prom_app_vol/config.yml | 25 - docker_vol/prom_app_vol/myrules.yml | 14 - docker_vol/prom_app_vol/web.yml | 12 - examples/oracle-aq-default-metrics.toml | 38 + exporter/Dockerfile | 16 - exporter/auth_config.yml | 9 - exporter/default-metrics.toml | 733 ---- grafana/Dockerfile | 15 - grafana/dashboards/all.yml | 14 - grafana/dashboards/dashboard.json | 2544 -------------- grafana/datasources/all.yml | 19 - grafana/grafana.ini | 921 ----- oracle-db-monitoring-exporter/.gitignore | 6 - oracle-db-monitoring-exporter/Makefile | 68 - .../default-asm-metrics.toml | 139 - .../default-metrics.legacy-tablespace.toml | 113 - .../default-metrics.toml | 59 - oracle-db-monitoring-exporter/go.mod | 13 - oracle-db-monitoring-exporter/go.sum | 81 - oracle-db-monitoring-exporter/main.go | 709 ---- .../oci8.pc.template | 7 - .../operating-principles.md | 20 - .../oraclelinux/Dockerfile | 52 - oracledb/Dockerfile | 10 - oracledb/oracledb_entrypoint.sh | 26 - pom.xml | 112 + prometheus/Dockerfile | 16 - prometheus/prom_entrypoint.sh | 22 - .../observability/ObservabilityExporter.java | 134 + .../ObservabilityExporterApplication.java | 17 + .../logs/OracleDBLogsExporter.java | 4 + .../oracle/observability/metrics/Metric.java | 30 + .../observability/metrics/MetricEntry.java | 64 + .../observability/metrics/MetricsHandler.java | 125 + .../metrics/OracleDBMetricsExporter.java | 214 ++ .../OracleDBMetricsExporterEnvConfig.java | 90 + .../observability/tracing/Configuration.java | 43 + .../observability/tracing/HttpClient.java | 203 ++ .../observability/tracing/HttpServer.java | 306 ++ .../tracing/OpenTelemetryInitializer.java | 49 + .../tracing/OracleDBTracingExporter.java | 214 ++ src/main/resources/application.properties | 1 + ...ObservabilityExporterApplicationTests.java | 13 + 53 files changed, 1702 insertions(+), 13778 deletions(-) create mode 100755 Dockerfile delete mode 100644 Makefile create mode 100644 RunningOutsideKubernetes.md create mode 100755 build.sh delete mode 100644 docker-compose.yml delete mode 100644 docker_vol/graf_app_vol/dashboard_concurrency.json delete mode 100644 docker_vol/graf_app_vol/dashboard_io.json delete mode 100644 docker_vol/graf_app_vol/dashboard_query.json delete mode 100644 docker_vol/graf_app_vol/dashboard_sys.json delete mode 100644 docker_vol/prom_app_vol/config.yml delete mode 100644 docker_vol/prom_app_vol/myrules.yml delete mode 100644 docker_vol/prom_app_vol/web.yml create mode 100644 examples/oracle-aq-default-metrics.toml delete mode 100644 exporter/Dockerfile delete mode 100644 exporter/auth_config.yml delete mode 100644 exporter/default-metrics.toml delete mode 100644 grafana/Dockerfile delete mode 100644 grafana/dashboards/all.yml delete mode 100644 grafana/dashboards/dashboard.json delete mode 100644 grafana/datasources/all.yml delete mode 100644 grafana/grafana.ini delete mode 100644 oracle-db-monitoring-exporter/.gitignore delete mode 100644 oracle-db-monitoring-exporter/Makefile delete mode 100644 oracle-db-monitoring-exporter/default-asm-metrics.toml delete mode 100644 oracle-db-monitoring-exporter/default-metrics.legacy-tablespace.toml delete mode 100644 oracle-db-monitoring-exporter/default-metrics.toml delete mode 100644 oracle-db-monitoring-exporter/go.mod delete mode 100644 oracle-db-monitoring-exporter/go.sum delete mode 100644 oracle-db-monitoring-exporter/main.go delete mode 100644 oracle-db-monitoring-exporter/oci8.pc.template delete mode 100644 oracle-db-monitoring-exporter/operating-principles.md delete mode 100644 oracle-db-monitoring-exporter/oraclelinux/Dockerfile delete mode 100644 oracledb/Dockerfile delete mode 100644 oracledb/oracledb_entrypoint.sh create mode 100644 pom.xml delete mode 100644 prometheus/Dockerfile delete mode 100644 prometheus/prom_entrypoint.sh create mode 100644 src/main/java/oracle/observability/ObservabilityExporter.java create mode 100644 src/main/java/oracle/observability/ObservabilityExporterApplication.java create mode 100644 src/main/java/oracle/observability/logs/OracleDBLogsExporter.java create mode 100644 src/main/java/oracle/observability/metrics/Metric.java create mode 100644 src/main/java/oracle/observability/metrics/MetricEntry.java create mode 100644 src/main/java/oracle/observability/metrics/MetricsHandler.java create mode 100644 src/main/java/oracle/observability/metrics/OracleDBMetricsExporter.java create mode 100644 src/main/java/oracle/observability/metrics/OracleDBMetricsExporterEnvConfig.java create mode 100644 src/main/java/oracle/observability/tracing/Configuration.java create mode 100644 src/main/java/oracle/observability/tracing/HttpClient.java create mode 100644 src/main/java/oracle/observability/tracing/HttpServer.java create mode 100644 src/main/java/oracle/observability/tracing/OpenTelemetryInitializer.java create mode 100644 src/main/java/oracle/observability/tracing/OracleDBTracingExporter.java create mode 100644 src/main/resources/application.properties create mode 100644 src/test/java/oracle/observability/ObservabilityExporterApplicationTests.java diff --git a/Dockerfile b/Dockerfile new file mode 100755 index 00000000..d96e4d82 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,5 @@ +FROM openjdk:11-jre-slim + +ENTRYPOINT ["java", "-jar", "/usr/share/observability-exporter.jar"] + +ADD target/observability-exporter-0.1.0.jar /usr/share/observability-exporter.jar \ No newline at end of file diff --git a/Makefile b/Makefile deleted file mode 100644 index ad1faeff..00000000 --- a/Makefile +++ /dev/null @@ -1,26 +0,0 @@ -# -# Makefile Version 1.0 -# -# Copyright (c) 2021 Oracle and/or its affiliates. -# Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl/ -# -# - - -deploy: - docker stack deploy --compose-file docker-compose.yml oracledb-monitor - -down: - docker stack rm oracledb-monitor - -log-oracledb: - docker service logs --follow oracledb-monitor_oracledb --raw - -log-exporter: - docker service logs --follow oracledb-monitor_exporter --raw - -# pause: -# docker-compose pause -# -# unpause: -# docker-compose unpause diff --git a/README.md b/README.md index 7dd241f8..6fc22d23 100644 --- a/README.md +++ b/README.md @@ -32,629 +32,12 @@ The following metrics are exposed currently by default. - oracledb_resource_current_utilization - oracledb_resource_limit_value -## Table of Contents - -- [Unified App Dev Monitoring with Oracle Database](#unified-app-dev-monitoring-with-oracle-database) - - [Table of Contents](#table-of-contents) - - [Directory Structure](#directory-structure) - - [Prerequisite Components Setup with Docker Swarm](#prerequisite-components-setup-with-docker-swarm) - - [Dockerfile and Images for Docker Swarm](#dockerfile-and-images-for-docker-swarm) - - [Oracle Database Docker Image Building](#oracle-database-docker-image-building) - - [Oracle Database Exporter Docker Image Building](#oracle-database-exporter-docker-image-building) - - [Prometheus Docker Image Building](#prometheus-docker-image-building) - - [Grafana Docker Image Building](#grafana-docker-image-building) - - [Docker Compose with Docker Swarm](#docker-compose-with-docker-swarm) - - [Oracle Database Part in Compose File](#oracle-database-part-in-compose-file) - - [Exporter Part in Compose File](#exporter-part-in-compose-file) - - [Docker Volume in Compose File](#docker-volume-in-compose-file) - - [Prometheus Part in Compose File](#prometheus-part-in-compose-file) - - [Grafana Part in Compose File](#grafana-part-in-compose-file) - - [Monitor Startup and Components Modification](#monitor-startup-and-components-modification) - - [Startup and Run](#startup-and-run) - - [i. Start the Monitor](#i-start-the-monitor) - - [ii. View Logging](#ii-view-logging) - - [iii. Stop/Remove the Monitor Program](#iii-stopremove-the-monitor-program) - - [Exporter Metrics modification and refresh](#exporter-metrics-modification-and-refresh) - - [Prometheus storage/alert rule modification and refresh](#prometheus-storagealert-rule-modification-and-refresh) - - [Grafana Setup and Refresh](#grafana-setup-and-refresh) - - [Oracle Database Monitoring Exporter](#oracle-database-monitoring-exporter) - - [Description](#description) - - [Installation](#installation) - - [Running](#running) - - [Usage](#usage) - - [Default metrics](#default-metrics) - - [Custom metrics](#custom-metrics) - - [Customize metrics in a docker image](#customize-metrics-in-a-docker-image) - - [Using a multiple host data source name](#using-a-multiple-host-data-source-name) - - [Files & Folder](#files--folder) - - [Environment Variables](#environment-variables) - - [TLS connection to database](#tls-connection-to-database) - - [FAQ/Troubleshooting](#faqtroubleshooting) - - [Unable to convert current value to float (metric=par,metri...in.go:285](#unable-to-convert-current-value-to-float-metricparmetriingo285) - - [Error scraping for wait_time](#error-scraping-for-wait_time) - - [An Oracle instance generates trace files](#an-oracle-instance-generates-trace-files) - - [Data Storage](#data-storage) - -## Directory Structure - -```text -. -├── Makefile -├── docker-compose.yml # aggregate all services -├── README.md # this! -│ -├── docker_vol/ -│ ├── graf_app_vol/ -│ │ ├── dashboard_concurrency.json -│ │ ├── dashboard_io.json -│ │ ├── dashboard_query.json -│ │ └── dashboard_sys.json -│ │ -│ └── prom_app_vol/ -│ ├── myrules.yml # rules of prometheus metrics and alerts -│ ├── config.yml # connection configuration -│ └── web.yml # authentication configuration -│ -│ -├── oracledb/ # local Oracle Database(19c) container -│ ├── Dockerfile -│ └── oracledb_entrypoint.sh # docker secret setup scripts -│ -│ -├── oracle-db-monitoring-exporter/ # customized basic exporter program -│ -│ -├── exporter/ # query and format metrics -│ ├── Dockerfile -│ ├── auth_config.yml # http auth config of the exporter -│ └── default-metrics.toml # queries to collect metrics -│ -│ -├── prometheus/ # time-series metrics storage -│ ├── Dockerfile -│ └── prom_entrypoint.sh # docker secret setup scripts -│ -│ -└── grafana/ # monitor dashboard - ├── Dockerfile - ├── dashboards/ - │ └── all.yml # config of dashboard - │ - └── datasources - └── all.yml # specify prometheus as the datasource -``` - ---- - -## Prerequisite Components Setup with Docker Swarm - -### Dockerfile and Images for Docker Swarm - -In order to protect user's sensitive config info and data, a Docker Secret is used which requires Docker Swarm mode. - -```sh -docker swarm init -# use `docker info` to check status of swarm mode -``` - -> For more details about docker swarm, please visit [docker swarm init official documentation](https://docs.docker.com/engine/reference/commandline/swarm_init/). - -Each component in [Docker Swarm](https://docs.docker.com/engine/swarm/) mode is a [Docker Service](https://docs.docker.com/engine/reference/commandline/service/). A group of docker services is called [Docker Stack](https://docs.docker.com/engine/reference/commandline/stack/). - -Hence, we are going to use following command to start the monitor. - -``` sh -docker stack deploy --compose-file {yaml_compose_file} {stack_name} -``` - -This is different from `docker-compose` which can build the image during setup as Docker Swarm requires a pre-built image for each service(container). - -#### Oracle Database Docker Image Building - -- Files involved - - `./oracledb/Dockerfile` - - `./oracledb/oracledb_entrypoint.sh` - -```sh -cd exporter -docker build --tag {oracledb_image_name} . -# or -docker build --tag {oracledb_image_name}:{image_tag} . -# examples -docker build --tag oracledb_monitor_oracledb . -docker build --tag oracledb_monitor_oracledb:1.0 . -``` - -> For more details about docker build, please visit the [official documentation](https://docs.docker.com/engine/reference/commandline/build/) - -#### Oracle Database Exporter Docker Image Building - -An additional http authentication feature is provided to enhance connection security, therefore, it is necessary to build a basic exporter image from `oracle-db-monitoring-exporter` and then a customized image with configuration files. - -- Files involved: - - `./oracle-db-monitoring-exporter/*` - - `./exporter/Dockerfile` - - `./exporter/auth_config.yml` - - `./exporter/default-metrics.toml` - - `./exporter/localhost.cert` (you need to create your own version) - - `./exporter/localhost.key` (you need to create your own version) - -a. Base Image - -This is a required step. - -```sh -# Base Image - -cd oracle-db-monitoring-exporter -make oraclelinux-image -# This will build three base images and we are going to use either -# "oracle-db-monitoring-exporter:0.3.0-oraclelinux" or "oracle-db-monitoring-exporter:oraclelinux" -``` - -b. Before creating the customized image, it is necessary to setup the authentication username and password for the exporter and encrypt it with a docker secret. Then, specify the docker secret names in `exporter/auth_config.yml` - -```sh -echo "{exp_auth_username}" | docker secret create {secret_name} - -echo "{exp_auth_password}" | docker secret create {secret_name} - - -# examples -echo "mntmgr" | docker secret create auth.username - -echo "P@55w0rd" | docker secret create auth.password - -``` - -```yaml -# auth_config.yml -username: auth.username -password: auth.password -``` - -c. Ensure metric queries are finished and saved in `exporter/default-metrics.toml`. - -d. Generate ssl key and ssl certificate for https transportation. - -```sh -cd exporter -openssl req \ - -x509 \ - -newkey rsa:4096 \ - -nodes \ - -keyout localhost.key \ - -out localhost.crt -``` - -Make sure `localhost.key` and `localhost.crt` are under `./exporter/` - -*If you need to change file names of cert and key, don't forget to modify the `Dockerfile`.* - -e. Final Customized Image - -```sh -# Customized Image - -cd exporter -docker build --tag {image_name}:{tag_name} . -# example -docker build --tag oracledb_monitor_exporter:1.0 . -``` - -#### Prometheus Docker Image Building - -- Files involved: - - `./docker_vol/prom_app_vol/config.yml` - - `./docker_vol/prom_app_vol/myrules.yml` - - `./docker_vol/prom_app_vol/web.yml` - - `./prometheus/Dockerfile` - - `./prometheus/prom_entrypoint.sh` - - `./prometheus/localhost.cert` (you need to create your own version) - - `./prometheus/localhost.key` (you need to create your own version) - -a. Generate ssl key and ssl certificate for https transportation. - -```sh -cd exporter -openssl req \ - -x509 \ - -newkey rsa:4096 \ - -nodes \ - -keyout localhost.key \ - -out localhost.crt -``` - -Make sure your `localhost.key` and `localhost.crt` are under `./prometheus/` - -*If you need to change file names of cert and key, don't forget to modify the `Dockerfile` and `web.yml`.* - -b. Build Prometheus image - -```sh -cd prometheus -docker build --tag {image_name}:{tag_name} . -# example -docker build --tag oracledb_monitor_prometheus:1.0 . -``` - -c. Setup http authentication username and password for Prometheus in `./docker_vol/prom_app_vol/web.yml` and Docker Secret. - -The password required to connect to Prometheus should be hashed with [bcrypt](https://github.com/prometheus/exporter-toolkit/blob/master/docs/web-configuration.md#about-bcrypt). Use `htpasswd` command to hash the password with bcrypt. - -```sh -htpasswd -nBC 10 “” | tr -d ‘:\n’ -``` - -Copy and paste the result, and create such docker secret. For example, the bcrypt hashing of `test` is `$2b$12$hNf2lSsxfm0.i4a.1kVpSOVyBCfIB51VRjgBUyv6kdnyTlgWj81Ay`. - -```sh -echo "{prom_auth_password}" | docker secret create prom.auth.pwd - -# example -echo "\$2b\$12\$hNf2lSsxfm0.i4a.1kVpSOVyBCfIB51VRjgBUyv6kdnyTlgWj81Ay" | docker secret create prom.auth.pwd - -# don't forget add a '\' before each '$' -# you can also create a docker secret with a file. visit the documentation. -``` - -***Here the secret name is required to be 'prom.auth.pwd'.*** - -```yaml -# web.yml -basic_auth_users: - {prom_auth_username}: {docker_secret_name_of_auth_pwd} - # example: - mntmgr: prom.auth.pwd -``` - -#### Grafana Docker Image Building - -- Files involved: - - `./docker_vol/prom_app_vol/config.yml` - - `./docker_vol/prom_app_vol/myrules.yml` - - `./docker_vol/prom_app_vol/web.yml` - - `./prometheus/Dockerfile` - - `./prometheus/prom_entrypoint.sh` - - `./prometheus/localhost.cert` (you need to create your own version) - - `./prometheus/localhost.key` (you need to create your own version) - -a. Generate ssl key and ssl certificate for https transportation. - -```sh -cd exporter -openssl req \ - -x509 \ - -newkey rsa:4096 \ - -nodes \ - -keyout localhost.key \ - -out localhost.crt -``` - -Make sure your `localhost.key` and `localhost.crt` are under `./grafana/` - -*If you need to change file names of cert and key, don't forget to modify the `Dockerfile` and `grafana.ini`.* - -b. For Grafana, you can setup the connection to Prometheus in `./grafana/datasources/all.yml`, setup config of dashboards in `./grafana/dashboards/all.yml`, while all of the provision dashboards are in `./docker_vol/graf_app_vol/*.json`. - -You should setup connection and configuration of Grafana before building the image, but you can modify dashboard raw codes after startup. - -```sh -cd grafana -docker build --tag {image_name}:{tag_name} . -# example -docker build --tag oracledb_monitor_grafana:1.0 . -``` - -### Docker Compose with Docker Swarm - -To enable the usage of compose file in docker swarm command line, we need the version of `docker-compose.yml` to be at least 3.1. - -```yaml -# docker-compose.yml -version: 3.1 # We have it by default. Don't delete it in your customization. -``` - -There is a default `docker-compose.yml`, but it is still necessary to setup docker secret in your environment. - -#### Oracle Database Part in Compose File - -```yaml -services: - oracledb: - image: {db_image_name:image_tab} # oracledb_monitor_oracledb:1.0 - container_name: 'oracledb' - environment: - ORACLE_SID: ORCLCDB - ORACLE_PWD: DOCKER_SECRET@{pwd_secret_name} # DOCKER_SECRET@oracle.pwd - secrets: - - {pwd_secret_name} # oracle.pwd - ports: - - '1521:1521' - - '8080:8080' - tty: true - -secrets: - {pwd_secret_name}: # oracle.pwd: - external: true -``` - -You need to create your password to DBA with Docker Secret. - -```sh -echo "{sysdba_pwd}" | docker secret create {secret_name} - -# example -echo "P@55w0rd" | docker secret create oracle.pwd - -``` - -> For more details about docker secret in compose file, please visit the [official documentation](https://docs.docker.com/engine/swarm/secrets/#use-secrets-in-compose). - -#### Exporter Part in Compose File - -```yaml -services: - exporter: - image: {exporter_image_name:image_tab} # oracledb_monitor_exporter:1.0 - container_name: 'exporter' - environment: - DATA_SOURCE_NAME: {dsn_secret_name} # data.source.name - secrets: - - {dsn_secret_name} # data.source.name - - {exp_auth_username} # auth.username - - {exp_auth_password} # auth.password - depends_on: - - oracledb - ports: - - '9161:9161' - -secrets: - {dsn_secret_name}: # data.source.name - external: true - {exp_auth_username}: # auth.username - external: true - {exp_auth_password}: # auth.password - external: true -``` - -`{exp_auth_username}` and `{exp_auth_password}` are the ones we've setup in the [previous step](#oracle-database-exporter-docker-image-building). - -You need to setup your database connection string, auth username and password of the exporter with Docker Secret. - -For the Data Connection String, we strongly recommend not using sysdba, and instead creating your own common cdb user. - -```sh -# After the creation and initialization of your Oracle Database -# in the shell of your database system -# for container, to login to shell -docker exec -it --user oracle {container_id} /bin/bash - -sqlplus sys/{sysdba_pwd} as sysdba -``` - -```sql -DROP USER c##mntmgr CASCADE; -- a prefix of c## is required -CREATE USER c##mntmgr IDENTIFIED BY test CONTAINER=ALL; -GRANT CREATE SESSION TO c##mntmgr; -GRANT select_catalog_role TO c##mntmgr; -GRANT select any dictionary TO c##mntmgr; -``` - -So the DSN of `c##mntmgr` to your Oracle Database is `c##mntmgr:test@oracledb/ORCLCDB`. Encrypt it with Docker Secret. - -```sh -echo "c##mntmgr:test@oracledb/ORCLCDB" | docker secret create data.source.name - -``` - -> For more details about Oracle Easy Connect Naming, please visit [official documentation](https://docs.oracle.com/en/database/oracle/oracle-database/18/ntcli/specifying-a-connection-by-using-the-easy-connect-naming-method.html#GUID-1035ABB3-5ADE-4697-A5F8-28F9F79A7504)* - -#### Docker Volume in Compose File - -Before Prometheus and Grafana Part, we need to set the docker volume. - -To use configuration files and dashboard of Prometheus and Grafana in `./docker_vol`, please setup volumes to Prometheus and Grafana containers. - -```yaml -services: - prometheus: - volumes: - - {directory_to_prom_app_vol}:/etc/prometheus/prometheus_vol - # for example - # ?/docker_vol/prom_app_vol:/etc/prometheus/prometheus_vol -``` - -#### Prometheus Part in Compose File - -```yaml -# docker-compose.yml -prometheus: - image: oracledb_monitor_prometheus:1.0 - container_name: 'prometheus' - secrets: - - prom.auth.pwd - - auth.username # exporter auth username - - auth.password # exporter auth password - depends_on: - - exporter - ports: - - '9090:9090' - - '9093:9093' - volumes: - - ./docker_vol/prom_app_vol:/etc/prometheus/prometheus_vol - tty: true - -secrets: - prom.auth.pwd: - external: true -``` - -```yaml -# config.yml in ./docker_vol/prom_app_vol/ -# this file is for exporter connection -global: - scrape_interval: 30s - scrape_timeout: 30s - evaluation_interval: 30s - -scrape_configs: - - job_name: 'TEQ Monitor' - static_configs: - - targets: ['exporter:9161'] - basic_auth: - username: auth.username # docker secret name of exporter auth username - password: auth.password # docker secret name of exporter auth password - -rule_files: - - "/etc/prometheus/prometheus_vol/myrules.yml" # your prom rules -``` - -#### Grafana Part in Compose File - -```yaml -# docker-compose.yml -grafana: - image: oracledb-monitor_graf - container_name: 'grafana' - depends_on: - - prometheus - ports: - - '3000:3000' - volumes: - - ./docker_vol/graf_app_vol:/var/lib/grafana/grafana_vol -``` - ---- - -## Monitor Startup and Components Modification - -Setup all [configurations prerequisites](#prerequisite-link). - -### Startup and Run - -#### i. Start the Monitor - -```sh -docker stack deploy --compose-file docker-compose.yml {stack_name} - -# for example -docker stack deploy --compose-file docker-compose.yml oracledb-monitor - -# or run `make deploy` -# check Makefile to edit your own commands -``` - -The first time you build and start the Oracle Database container, it will take about 15 to 20 minutes for Oracle Database to get ready. Create your general user when it done. - -Then, go to the [Grafana Dashboard](https://localhost:3000). By default, username: admin, password: admin - -> If using Chrome, it may show "Your connection is not private" and "NET::ERR_CERT_INVALID", and prevent you from visiting the Grafana board. Please use other browser. You will meet the same problem during visiting local [Prometheus Dashboard](https://localhost:9090) and [exporter metrics](https://localhost:9161/metrics) with https protocol. This problem is due to that we are using self-signed certificates which Chrome does not recognize. - -***To enable your Grafana to connect to your Prometheus database, when you login to Grafana dashboard, go to `Configuration` -> `Data Sources` -> `Prometheus`(data connection). Then A) enable the `Basic auth`, `Skip TLS Verify` and `With CA Cert` under `Auth` section, B) type in the Prometheus auth username and password you just setup, and then finally C) save and test.*** - -You can also visit the [Prometheus Dashboard](https://localhost:9090) and [exporter metrics](https://localhost:9161/metrics) to track. - -#### ii. View Logging - -```sh -# display all docker services -docker service ls -# show logs of one service -docker service logs --follow {docker_service_name} --raw -# for example -docker service logs --follow oracledb-monitor_oracledb --raw -docker service logs --follow oracledb-monitor_exporter --raw - -# or run `make log-oracledb` -# check Makefile to edit your own commands -``` - -> For more details about docker service logging, please visit the [official documentation](https://docs.docker.com/engine/reference/commandline/service_logs/) - -#### iii. Stop/Remove the Monitor Program - -```sh -docker stack rm {stack_name} -# example -docker stack rm oracledb-monitor - -# or run `make down` -# This will both stop and remove all four services in this docker stack. -``` - -*Be careful when you run this, since it will clean all local files in the containers (files in volumes won't be deleted), so make sure you've backup/relocated necessary files before running this.* - -### Exporter Metrics modification and refresh - -You can modify or add metrics by editing `exporter\default-metrics.toml` - -After updating it, it is necessary to rebuild the image and redeploy the exporter service. -*Be careful when you rebuild the image and redeploy the service, since it will remove the old container and start a new one, so make sure you've backup/relocated necessary files.* - -```sh -# if no updates were made to the image and only changes docker-compose of exporter service were made, -# there is no need to re-build the image, simply run: -docker stack deploy --compose-file docker-compose.yml oracledb-monitor - -# if metric files were modified -# rebuild and restart the exporter service with a new image -cd {Dockerfile_path} -docker build --tag {image_title_tag} . -docker service update {service_name} --image {image_title_tag} -# for example -docker build --tag oracledb_monitor_exporter:1.1 . -docker service update oracledb-monitor_exporter --image oracledb_monitor_exporter:1.1 - -# if you change your compose file, just re-run the deploy command -# it will restart the service you changed -docker stack deploy --compose-file docker-compose.yml oracledb-monitor - -# get service name -docker service ls -``` - -> For more details about docker service, please visit the [Official Documentation](https://docs.docker.com/engine/reference/commandline/service/) -> For more details about exporter and metrics editing/configuring, please check [Oracle Database Monitoring Exporter](#db-mnt-exporter) part. - -### Prometheus storage/alert rule modification and refresh - -Prometheus configuration can be modified in `docker_vol\prom_app_vol\config.yml`, and add recording and alerting rules can be modified in `docker_vol\prom_app_vol\myrules.yml`. - -After updating either of them, it is necessary to enter the container and restart the Prometheus process. - -```sh -# get container name -docker ps - -# enter bash shell of the container -docker exec -it --user root {container_name/container_id} /bin/bash -# for example -docker exec -it --user root oracledb-monitor_prometheus /bin/bash - -# restart the prometheus process without killing it -kill -HUP 1 -``` - -> For more details about Prometheus config and rule files, please visit [Prometheus Configuration](https://prometheus.io/docs/prometheus/latest/configuration/configuration/) - -### Grafana Setup and Refresh - -You can add or modify Grafana panels and add dashboards on the [Grafana webpage](https://localhost:3000). However, although you can save cache, you can not save the dashboard to the source file. Instead, you can go to Setting of the dashboard and copy the JSON Model to replace the original json file(`docker_vol\graf_app_vol\{dashboard}.json`). - -> For more details about provision and config of Grafana, please visit [Grafana Lab](https://grafana.com/docs/grafana/latest/administration/provisioning/). - -## Oracle Database Monitoring Exporter - -### Description - -A [Prometheus](https://prometheus.io/) exporter for Oracle Database. - -### Installation - -We currently only support `oraclelinux` container version. - -```bash -cd oracle-db-monitoring-exporter -make oraclelinux-image -``` ### Running Ensure the environment variable DATA_SOURCE_NAME is set correctly before starting. DATA_SOURCE_NAME should be in Oracle EZCONNECT format: - + 19c Oracle Client supports enhanced EZCONNECT, you are able to failover to standby DB or gather some heavy metrics from active standby DB and specify some additional parameters. Within 19c client you are able to connect 12c primary/standby DB too :) For Example: @@ -797,151 +180,8 @@ oracledb_test_value_1 1 oracledb_test_value_2 2 ``` -You can find [here](./custom-metrics-example/custom-metrics.toml) a working example of custom metrics for slow queries, big queries and top 100 tables. - -#### Customize metrics in a docker image - -If you run the exporter as a docker image and want to customize the metrics, you can use the following example: - -```Dockerfile -FROM oracle-db-monitoring-exporter:oraclelinux - -COPY custom-metrics.toml / - -ENTRYPOINT ["/oracledb_exporter", "--custom.metrics", "/custom-metrics.toml"] -``` - -#### Using a multiple host data source name - -> NOTE: This has been tested with v0.2.6a and will most probably work on versions above. -> NOTE: While `user/password@//database1.example.com:1521,database3.example.com:1521/DBPRIM` works with SQLPlus, it doesn't seem to work with `oracledb-exporter` v0.2.6a. - -In some cases, one might want to scrape metrics from the currently available database when having a active-passive replication setup. - -This will try to connect to any available database to scrape for the metrics. With some replication options, the secondary database is not available when replicating. This allows the scraper to automatically fall back in case of the primary one failing. - -This example allows to achieve this: - -#### Files & Folder - -- tns_admin folder: `/path/to/tns_admin` -- tnsnames.ora file: `/path/to/tns_admin/tnsnames.ora` - -Example of a tnsnames.ora file: - -```ora -database = -(DESCRIPTION = - (ADDRESS_LIST = - (ADDRESS = (PROTOCOL = TCP)(HOST = database1.example.com)(PORT = 1521)) - (ADDRESS = (PROTOCOL = TCP)(HOST = database2.example.com)(PORT = 1521)) - ) - (CONNECT_DATA = - (SERVICE_NAME = DBPRIM) - ) -) -``` - #### Environment Variables - `TNS_ENTRY`: Name of the entry to use (`database` in the example file above) - `TNS_ADMIN`: Path you choose for the tns admin folder (`/path/to/tns_admin` in the example file above) - `DATA_SOURCE_NAME`: Datasource pointing to the `TNS_ENTRY` (`user/password@database` in the example file above) - -#### TLS connection to database - -First, set the following variables: - -```bash -export WALLET_PATH=/wallet/path/to/use -export TNS_ENTRY=tns_entry -export DB_USERNAME=db_username -export TNS_ADMIN=/tns/admin/path/to/use -``` - -Create the wallet and set the credential: - -```bash -mkstore -wrl $WALLET_PATH -create -mkstore -wrl $WALLET_PATH -createCredential $TNS_ENTRY $DB_USERNAME -``` - -Then, update sqlnet.ora: - -```bash -echo " -WALLET_LOCATION = (SOURCE = (METHOD = FILE) (METHOD_DATA = (DIRECTORY = $WALLET_PATH ))) -SQLNET.WALLET_OVERRIDE = TRUE -SSL_CLIENT_AUTHENTICATION = FALSE -" >> $TNS_ADMIN/sqlnet.ora -``` - -To use the wallet, use the wallet_location parameter. You may need to disable ssl verification with the -ssl_server_dn_match parameter. - -Here a complete example of string connection: - -```text -DATA_SOURCE_NAME=username/password@tcps://dbhost:port/service? -ssl_server_dn_match=false&wallet_location=wallet_path -``` - -### FAQ/Troubleshooting - -#### Unable to convert current value to float (metric=par,metri...in.go:285 - -Oracle is trying to send a value that we cannot convert to float. This could be anything like 'UNLIMITED' or 'UNDEFINED' or 'WHATEVER'. - -In this case, you must handle this problem by testing it in the SQL request. Here an example available in default metrics: - -```toml -[[metric]] -context = "resource" -labels = [ "resource_name" ] -metricsdesc = { current_utilization= "Generic counter metric from v$resource_limit view in Oracle (current value).", limit_value="Generic counter metric from v$resource_limit view in Oracle (UNLIMITED: -1)." } -request="SELECT resource_name,current_utilization,CASE WHEN TRIM(limit_value) LIKE 'UNLIMITED' THEN '-1' ELSE TRIM(limit_value) END as limit_value FROM v$resource_limit" -``` - -If the value of limit_value is 'UNLIMITED', the request send back the value -1. - -You can increase the log level (`--log.level debug`) in order to get the statement generating this error. - -#### Error scraping for wait_time - -If you experience an error `Error scraping for wait_time: sql: Scan error on column index 1: converting driver.Value type string (",01") to a float64: invalid syntax source="main.go:144"` you may need to set the NLS_LANG variable. - -```bash -export NLS_LANG=AMERICAN_AMERICA.WE8ISO8859P1 -export DATA_SOURCE_NAME=system/oracle@myhost -/path/to/binary --log.level error --web.listen-address 9161 -``` - -If using Docker, set the same variable using the -e flag. - -#### An Oracle instance generates trace files - -An Oracle instance will generally generate a number of trace files alongside its alert log file. One trace file per scraping event. The trace file contains the following lines - -```text -... -*** MODULE NAME:(prometheus_oracle_exporter-amd64@hostname) -... -kgxgncin: clsssinit: CLSS init failed with status 3 -kgxgncin: clsssinit: return status 3 (0 SKGXN not av) from CLSS -``` - -The root cause is Oracle's reaction of querying ASM-related views without ASM used. The current workaround proposed is to setup a regular task to cleanup these trace files from the filesystem, as example - -```bash -find $ORACLE_BASE/diag/rdbms -name '*.tr[cm]' -mtime +14 -delete -``` - -## Data Storage - -By default the retention of Prometheus is configured to 15 days. On average, Prometheus uses only around 1-2 bytes per sample. Thus, to plan the capacity of a Prometheus server, you can use the rough formula: - -```text -needed_disk_space = retention_time_seconds * ingested_samples_per_second * bytes_per_sample -``` - -Roughly, Oracle Database Monitor System has 100 samples every 1 minute, meaning 1.67 samples per second on average. You could base on your retention time to determine the capacity of the server. diff --git a/RunningOutsideKubernetes.md b/RunningOutsideKubernetes.md new file mode 100644 index 00000000..e69de29b diff --git a/build.sh b/build.sh new file mode 100755 index 00000000..a5de078a --- /dev/null +++ b/build.sh @@ -0,0 +1,39 @@ +#!/bin/bash +## Copyright (c) 2021 Oracle and/or its affiliates. +## Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl/ + + +export IMAGE_NAME=observability-exporter +export IMAGE_VERSION=0.1.0 + +if [ -z "$DOCKER_REGISTRY" ]; then + echo "DOCKER_REGISTRY not set. Will get it with state_get" + export DOCKER_REGISTRY=$(state_get DOCKER_REGISTRY) +fi + +export IMAGE=${DOCKER_REGISTRY}/${IMAGE_NAME}:${IMAGE_VERSION} + +mvn clean package -DskipTests +docker build -t=$IMAGE . + +export IS_CREATE_REPOS=$1 +if [ -z "IS_CREATE_REPOS" ]; then + echo "not creating OCIR repos" +else + echo "creating OCIR repos and setting to public" + if [ -z "COMPARTMENT_OCID" ]; then + echo "COMPARTMENT_OCID not set. Will get it with state_get" + export COMPARTMENT_OCID=$(state_get COMPARTMENT_OCID) + fi + if [ -z "RUN_NAME" ]; then + echo "RUN_NAME not set. Will get it with state_get" + export RUN_NAME=$(state_get RUN_NAME) + fi +# RUN_NAME is randomly generated name from workshop, eg gd4930131 + oci artifacts container repository create --compartment-id "$COMPARTMENT_OCID" --display-name "$RUN_NAME/$IMAGE_NAME" --is-public true +fi + +docker push "$IMAGE" +if [ $? -eq 0 ]; then + docker rmi "$IMAGE" +fi diff --git a/docker-compose.yml b/docker-compose.yml deleted file mode 100644 index 9dfb04be..00000000 --- a/docker-compose.yml +++ /dev/null @@ -1,76 +0,0 @@ -# -# docker-compose.yml Version 1.0 -# -# Copyright (c) 2021 Oracle and/or its affiliates. -# Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl/ -# -# - -version: '3.1' -services: - oracledb: - image: oracledb_monitor_oracledb:1.0 - container_name: 'oracledb' - environment: - ORACLE_SID: ORCLCDB - ORACLE_PWD: DOCKER_SECRET@oracle.pwd - secrets: - - oracle.pwd - ports: - - '1521:1521' - - '8080:8080' - tty: true - - exporter: - image: oracledb_monitor_exporter:1.0 - container_name: 'exporter' - environment: - DATA_SOURCE_NAME: auth.data.source.name - secrets: - - auth.data.source.name - - auth.username - - auth.password - depends_on: - - oracledb - ports: - - '9161:9161' - - - prometheus: - image: oracledb_monitor_prometheus:1.0 - container_name: 'prometheus' - secrets: - - prom.auth.pwd - - auth.username - - auth.password - depends_on: - - exporter - ports: - - '9090:9090' - - '9093:9093' - volumes: - - ./docker_vol/prom_app_vol:/etc/prometheus/prometheus_vol - tty: true - - - grafana: - image: oracledb_monitor_grafana:1.0 - container_name: 'grafana' - depends_on: - - prometheus - ports: - - '3000:3000' - volumes: - - ./docker_vol/graf_app_vol:/var/lib/grafana/grafana_vol - -secrets: - auth.data.source.name: - external: true - oracle.pwd: - external: true - auth.username: - external: true - auth.password: - external: true - prom.auth.pwd: - external: true diff --git a/docker_vol/graf_app_vol/dashboard_concurrency.json b/docker_vol/graf_app_vol/dashboard_concurrency.json deleted file mode 100644 index 57de2cad..00000000 --- a/docker_vol/graf_app_vol/dashboard_concurrency.json +++ /dev/null @@ -1,1997 +0,0 @@ -{ - "annotations": { - "list": [ - { - "builtIn": 1, - "datasource": "-- Grafana --", - "enable": true, - "hide": true, - "iconColor": "rgba(0, 211, 255, 1)", - "name": "Annotations & Alerts", - "type": "dashboard" - } - ] - }, - "editable": true, - "gnetId": null, - "graphTooltip": 0, - "id": 3, - "links": [], - "panels": [ - { - "datasource": null, - "description": "", - "fieldConfig": { - "defaults": { - "color": { - "mode": "thresholds" - }, - "custom": { - "align": null, - "filterable": false - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null - }, - { - "color": "red", - "value": 80 - } - ] - } - }, - "overrides": [ - { - "matcher": { - "id": "byName", - "options": "%Time-out" - }, - "properties": [ - { - "id": "mappings", - "value": [ - { - "from": "0", - "id": 1, - "text": "0", - "to": "0.005", - "type": 2 - } - ] - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "%DB time" - }, - "properties": [ - { - "id": "unit", - "value": "percentunit" - } - ] - } - ] - }, - "gridPos": { - "h": 12, - "w": 24, - "x": 0, - "y": 0 - }, - "id": 2, - "interval": null, - "maxDataPoints": null, - "options": { - "frameIndex": 1, - "showHeader": true, - "sortBy": [ - { - "desc": true, - "displayName": "Total Wait Time (s)" - } - ] - }, - "pluginVersion": "7.5.5", - "targets": [ - { - "exemplar": false, - "expr": "oracledb_concurrency_foreground_wait_class_waits_fg", - "format": "table", - "instant": true, - "interval": "", - "legendFormat": "", - "refId": "waits" - }, - { - "exemplar": true, - "expr": "oracledb_concurrency_foreground_wait_class_total_wait_time_fg", - "format": "table", - "hide": false, - "instant": true, - "interval": "", - "intervalFactor": 1, - "legendFormat": "", - "refId": "total_wait_time" - }, - { - "exemplar": true, - "expr": "oracledb_concurrency_foreground_wait_class_avg_wait_time_fg", - "format": "table", - "hide": false, - "instant": true, - "interval": "", - "legendFormat": "", - "refId": "avg_wait_time" - }, - { - "exemplar": true, - "expr": "oracledb_concurrency_foreground_wait_class_total_wait_time_fg / on(con_id, inst_id, instance, job) group_left oracledb_concurrency_sysstat_db_time", - "format": "table", - "hide": false, - "instant": true, - "interval": "", - "legendFormat": "", - "refId": "%db_time" - }, - { - "exemplar": true, - "expr": "oracledb_concurrency_foreground_wait_class_timeouts_fg / on(con_id, inst_id, instance, job) group_left oracledb_concurrency_sysevent_total_timeout", - "format": "table", - "hide": false, - "instant": true, - "interval": "", - "legendFormat": "", - "refId": "%time-out" - } - ], - "title": "Foreground Wait Class", - "transformations": [ - { - "id": "filterFieldsByName", - "options": { - "include": { - "names": [ - "wait_class_name", - "Value #waits", - "Value #total_wait_time", - "Value #avg_wait_time", - "Value #%db_time", - "Value #%time-out" - ] - } - } - }, - { - "id": "merge", - "options": {} - }, - { - "id": "organize", - "options": { - "excludeByName": {}, - "indexByName": { - "Value #%db_time": 5, - "Value #%time-out": 2, - "Value #avg_wait_time": 4, - "Value #total_wait_time": 3, - "Value #waits": 1, - "wait_class_name": 0 - }, - "renameByName": { - "Value #%cpu": "%CPU", - "Value #%db_time": "%DB time", - "Value #%io": "%IO", - "Value #%time-out": "%Time-out", - "Value #%total": "%Total", - "Value #avg_wait_time": "Avg Wait Time (s)", - "Value #elapsed_time": "Elapsed Time(s)", - "Value #elapsed_time / Value #executions": "Elapsed Time per Exec (s)", - "Value #executions": "Executions", - "Value #total_wait_time": "Total Wait Time (s)", - "Value #waits": "Waits", - "module": "Module", - "sql_id": "SQL ID", - "wait_class_name": "Wait Class" - } - } - }, - { - "id": "sortBy", - "options": { - "fields": {}, - "sort": [ - { - "desc": true, - "field": "Total Wait Time (s)" - } - ] - } - } - ], - "type": "table" - }, - { - "aliasColors": {}, - "bars": false, - "dashLength": 10, - "dashes": false, - "datasource": null, - "description": "", - "fieldConfig": { - "defaults": {}, - "overrides": [] - }, - "fill": 1, - "fillGradient": 0, - "gridPos": { - "h": 12, - "w": 12, - "x": 0, - "y": 12 - }, - "hiddenSeries": false, - "id": 6, - "interval": null, - "legend": { - "alignAsTable": true, - "avg": false, - "current": false, - "max": false, - "min": false, - "rightSide": true, - "show": true, - "total": true, - "values": true - }, - "lines": true, - "linewidth": 1, - "maxDataPoints": null, - "nullPointMode": "null", - "options": { - "alertThreshold": true - }, - "percentage": false, - "pluginVersion": "7.5.5", - "pointradius": 2, - "points": false, - "renderer": "flot", - "seriesOverrides": [], - "spaceLength": 10, - "stack": false, - "steppedLine": false, - "targets": [ - { - "exemplar": false, - "expr": "oracledb_concurrency_foreground_wait_class_total_wait_time_fg", - "format": "time_series", - "instant": false, - "interval": "", - "intervalFactor": 1, - "legendFormat": "{{wait_class_name}}", - "refId": "waits" - } - ], - "thresholds": [], - "timeFrom": null, - "timeRegions": [], - "timeShift": null, - "title": "Foreground Wait Class - Wait Time (s) [Accumulate]", - "tooltip": { - "shared": true, - "sort": 0, - "value_type": "individual" - }, - "transformations": [], - "type": "graph", - "xaxis": { - "buckets": null, - "mode": "time", - "name": null, - "show": true, - "values": [] - }, - "yaxes": [ - { - "$$hashKey": "object:523", - "format": "none", - "label": "", - "logBase": 1, - "max": null, - "min": null, - "show": true - }, - { - "$$hashKey": "object:524", - "format": "none", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": true - } - ], - "yaxis": { - "align": false, - "alignLevel": null - } - }, - { - "datasource": null, - "description": "", - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "drawStyle": "line", - "fillOpacity": 10, - "gradientMode": "none", - "hideFrom": { - "graph": false, - "legend": false, - "tooltip": false - }, - "lineInterpolation": "linear", - "lineWidth": 1, - "pointSize": 5, - "scaleDistribution": { - "type": "linear" - }, - "showPoints": "never", - "spanNulls": true - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null - }, - { - "color": "red", - "value": 80 - } - ] - }, - "unit": "none" - }, - "overrides": [] - }, - "gridPos": { - "h": 12, - "w": 12, - "x": 12, - "y": 12 - }, - "id": 13, - "interval": null, - "maxDataPoints": null, - "options": { - "graph": {}, - "legend": { - "calcs": [ - "last" - ], - "displayMode": "table", - "placement": "right" - }, - "tooltipOptions": { - "mode": "single" - } - }, - "pluginVersion": "7.5.5", - "targets": [ - { - "exemplar": false, - "expr": "delta(oracledb_concurrency_foreground_wait_class_total_wait_time_fg[2m])", - "format": "time_series", - "instant": false, - "interval": "", - "intervalFactor": 2, - "legendFormat": "{{wait_class_name}}", - "refId": "waits" - } - ], - "timeFrom": null, - "timeShift": null, - "title": "Foreground Wait Class - Wait Time (s) [2m Delta]", - "transformations": [], - "type": "timeseries" - }, - { - "aliasColors": {}, - "bars": false, - "dashLength": 10, - "dashes": false, - "datasource": null, - "description": "", - "fieldConfig": { - "defaults": { - "unit": "short" - }, - "overrides": [] - }, - "fill": 1, - "fillGradient": 0, - "gridPos": { - "h": 12, - "w": 12, - "x": 0, - "y": 24 - }, - "hiddenSeries": false, - "id": 5, - "interval": null, - "legend": { - "alignAsTable": true, - "avg": false, - "current": false, - "max": false, - "min": false, - "rightSide": true, - "show": true, - "total": true, - "values": true - }, - "lines": true, - "linewidth": 1, - "maxDataPoints": null, - "nullPointMode": "null", - "options": { - "alertThreshold": true - }, - "percentage": false, - "pluginVersion": "7.5.5", - "pointradius": 2, - "points": false, - "renderer": "flot", - "seriesOverrides": [], - "spaceLength": 10, - "stack": false, - "steppedLine": false, - "targets": [ - { - "exemplar": false, - "expr": "oracledb_concurrency_foreground_wait_class_waits_fg", - "format": "time_series", - "instant": false, - "interval": "", - "intervalFactor": 1, - "legendFormat": "{{wait_class_name}}", - "refId": "waits" - } - ], - "thresholds": [], - "timeFrom": null, - "timeRegions": [], - "timeShift": null, - "title": "Foreground Wait Class - Wait Count [accumulte]", - "tooltip": { - "shared": true, - "sort": 0, - "value_type": "individual" - }, - "transformations": [], - "type": "graph", - "xaxis": { - "buckets": null, - "mode": "time", - "name": null, - "show": true, - "values": [] - }, - "yaxes": [ - { - "format": "short", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": true - }, - { - "format": "short", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": true - } - ], - "yaxis": { - "align": false, - "alignLevel": null - } - }, - { - "datasource": null, - "description": "", - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "drawStyle": "line", - "fillOpacity": 10, - "gradientMode": "none", - "hideFrom": { - "graph": false, - "legend": false, - "tooltip": false - }, - "lineInterpolation": "linear", - "lineWidth": 1, - "pointSize": 5, - "scaleDistribution": { - "type": "linear" - }, - "showPoints": "never", - "spanNulls": true - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null - }, - { - "color": "red", - "value": 80 - } - ] - }, - "unit": "none" - }, - "overrides": [] - }, - "gridPos": { - "h": 12, - "w": 12, - "x": 12, - "y": 24 - }, - "id": 12, - "interval": null, - "maxDataPoints": null, - "options": { - "graph": {}, - "legend": { - "calcs": [ - "last" - ], - "displayMode": "table", - "placement": "right" - }, - "tooltipOptions": { - "mode": "single" - } - }, - "pluginVersion": "7.5.5", - "targets": [ - { - "exemplar": false, - "expr": "delta(oracledb_concurrency_foreground_wait_class_waits_fg[2m])", - "format": "time_series", - "instant": false, - "interval": "", - "intervalFactor": 2, - "legendFormat": "{{wait_class_name}}", - "refId": "waits" - } - ], - "timeFrom": null, - "timeShift": null, - "title": "Foreground Wait Class - Wait Count [2m Delta]", - "transformations": [], - "type": "timeseries" - }, - { - "datasource": null, - "description": "", - "fieldConfig": { - "defaults": { - "color": { - "mode": "thresholds" - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null - }, - { - "color": "red", - "value": 80 - } - ] - }, - "unit": "none" - }, - "overrides": [] - }, - "gridPos": { - "h": 14, - "w": 12, - "x": 0, - "y": 36 - }, - "id": 14, - "interval": null, - "maxDataPoints": null, - "options": { - "displayMode": "basic", - "orientation": "horizontal", - "reduceOptions": { - "calcs": [ - "lastNotNull" - ], - "fields": "", - "values": false - }, - "showUnfilled": true, - "text": {} - }, - "pluginVersion": "7.5.5", - "targets": [ - { - "exemplar": false, - "expr": "oracledb_concurrency_foreground_wait_class_avg_wait_time_fg", - "format": "time_series", - "instant": false, - "interval": "", - "legendFormat": "{{wait_class_name}}", - "refId": "waits" - } - ], - "title": "Foreground Wait Class - Average Wait Time (s) [Accumulate]", - "transformations": [], - "type": "bargauge" - }, - { - "datasource": null, - "description": "", - "fieldConfig": { - "defaults": { - "color": { - "mode": "thresholds" - }, - "custom": { - "align": null, - "filterable": false - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null - }, - { - "color": "red", - "value": 80 - } - ] - } - }, - "overrides": [ - { - "matcher": { - "id": "byName", - "options": "%Time-out" - }, - "properties": [ - { - "id": "mappings", - "value": [ - { - "from": "0", - "id": 1, - "text": "0%", - "to": "0.005", - "type": 2 - } - ] - }, - { - "id": "unit", - "value": "percentunit" - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "%DB time" - }, - "properties": [ - { - "id": "unit", - "value": "percentunit" - } - ] - } - ] - }, - "gridPos": { - "h": 21, - "w": 24, - "x": 0, - "y": 50 - }, - "id": 3, - "interval": null, - "maxDataPoints": null, - "options": { - "frameIndex": 1, - "showHeader": true, - "sortBy": [ - { - "desc": true, - "displayName": "Total Wait Time (s)" - } - ] - }, - "pluginVersion": "7.5.5", - "targets": [ - { - "exemplar": false, - "expr": "oracledb_concurrency_foreground_wait_event_waits_fg", - "format": "table", - "instant": true, - "interval": "", - "legendFormat": "", - "refId": "waits" - }, - { - "exemplar": true, - "expr": "oracledb_concurrency_foreground_wait_event_time_waited_fg", - "format": "table", - "hide": false, - "instant": true, - "interval": "", - "intervalFactor": 1, - "legendFormat": "", - "refId": "total_wait_time" - }, - { - "exemplar": true, - "expr": "oracledb_concurrency_foreground_wait_event_average_wait_fg", - "format": "table", - "hide": false, - "instant": true, - "interval": "", - "legendFormat": "", - "refId": "avg_wait_time" - }, - { - "exemplar": true, - "expr": "oracledb_concurrency_foreground_wait_event_time_waited_fg / on(con_id, inst_id, instance, job) group_left oracledb_concurrency_sysstat_db_time", - "format": "table", - "hide": false, - "instant": true, - "interval": "", - "legendFormat": "", - "refId": "%db_time" - }, - { - "exemplar": true, - "expr": "oracledb_concurrency_foreground_wait_event_timeouts_fg / on(con_id, inst_id, instance, job) group_left oracledb_concurrency_sysevent_total_timeout", - "format": "table", - "hide": false, - "instant": true, - "interval": "", - "legendFormat": "", - "refId": "%time-out" - } - ], - "title": "Foreground Wait Event", - "transformations": [ - { - "id": "filterFieldsByName", - "options": { - "include": { - "names": [ - "Value #waits", - "Value #total_wait_time", - "Value #avg_wait_time", - "Value #%db_time", - "Value #%time-out", - "event_name" - ] - } - } - }, - { - "id": "merge", - "options": {} - }, - { - "id": "organize", - "options": { - "excludeByName": {}, - "indexByName": { - "Value #%db_time": 5, - "Value #%time-out": 2, - "Value #avg_wait_time": 4, - "Value #total_wait_time": 3, - "Value #waits": 1, - "event_name": 0 - }, - "renameByName": { - "Value #%cpu": "%CPU", - "Value #%db_time": "%DB time", - "Value #%io": "%IO", - "Value #%time-out": "%Time-out", - "Value #%total": "%Total", - "Value #avg_wait_time": "Avg Wait Time (s)", - "Value #elapsed_time": "Elapsed Time(s)", - "Value #elapsed_time / Value #executions": "Elapsed Time per Exec (s)", - "Value #executions": "Executions", - "Value #total_wait_time": "Total Wait Time (s)", - "Value #waits": "Waits", - "event_name": "Event", - "module": "Module", - "sql_id": "SQL ID", - "wait_class_name": "Wait Class" - } - } - }, - { - "id": "sortBy", - "options": { - "fields": {}, - "sort": [ - { - "desc": true, - "field": "Total Wait Time (s)" - } - ] - } - } - ], - "type": "table" - }, - { - "aliasColors": {}, - "bars": false, - "dashLength": 10, - "dashes": false, - "datasource": null, - "description": "", - "fieldConfig": { - "defaults": {}, - "overrides": [] - }, - "fill": 1, - "fillGradient": 0, - "gridPos": { - "h": 12, - "w": 12, - "x": 0, - "y": 71 - }, - "hiddenSeries": false, - "id": 15, - "interval": null, - "legend": { - "alignAsTable": true, - "avg": false, - "current": false, - "max": false, - "min": false, - "rightSide": true, - "show": true, - "total": true, - "values": true - }, - "lines": true, - "linewidth": 1, - "maxDataPoints": null, - "nullPointMode": "null", - "options": { - "alertThreshold": true - }, - "percentage": false, - "pluginVersion": "7.5.5", - "pointradius": 2, - "points": false, - "renderer": "flot", - "seriesOverrides": [], - "spaceLength": 10, - "stack": false, - "steppedLine": false, - "targets": [ - { - "exemplar": false, - "expr": "oracledb_concurrency_foreground_wait_event_time_waited_fg", - "format": "time_series", - "instant": false, - "interval": "", - "intervalFactor": 1, - "legendFormat": "{{event_name}}", - "refId": "waits" - } - ], - "thresholds": [], - "timeFrom": null, - "timeRegions": [], - "timeShift": null, - "title": "Foreground Wait Event - Wait Time (s) [Accumulate]", - "tooltip": { - "shared": true, - "sort": 0, - "value_type": "individual" - }, - "transformations": [], - "type": "graph", - "xaxis": { - "buckets": null, - "mode": "time", - "name": null, - "show": true, - "values": [] - }, - "yaxes": [ - { - "$$hashKey": "object:523", - "format": "none", - "label": "", - "logBase": 1, - "max": null, - "min": null, - "show": true - }, - { - "$$hashKey": "object:524", - "format": "none", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": true - } - ], - "yaxis": { - "align": false, - "alignLevel": null - } - }, - { - "datasource": null, - "description": "", - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "drawStyle": "line", - "fillOpacity": 10, - "gradientMode": "none", - "hideFrom": { - "graph": false, - "legend": false, - "tooltip": false - }, - "lineInterpolation": "linear", - "lineWidth": 1, - "pointSize": 5, - "scaleDistribution": { - "type": "linear" - }, - "showPoints": "never", - "spanNulls": true - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null - }, - { - "color": "red", - "value": 80 - } - ] - }, - "unit": "none" - }, - "overrides": [] - }, - "gridPos": { - "h": 12, - "w": 12, - "x": 12, - "y": 71 - }, - "id": 17, - "interval": null, - "maxDataPoints": null, - "options": { - "graph": {}, - "legend": { - "calcs": [ - "last" - ], - "displayMode": "table", - "placement": "right" - }, - "tooltipOptions": { - "mode": "single" - } - }, - "pluginVersion": "7.5.5", - "targets": [ - { - "exemplar": false, - "expr": "delta(oracledb_concurrency_foreground_wait_event_time_waited_fg[2m])", - "format": "time_series", - "instant": false, - "interval": "", - "intervalFactor": 1, - "legendFormat": "{{event_name}}", - "refId": "waits" - } - ], - "timeFrom": null, - "timeShift": null, - "title": "Foreground Wait Event - Wait Time (s) [2m Delta]", - "transformations": [], - "type": "timeseries" - }, - { - "aliasColors": {}, - "bars": false, - "dashLength": 10, - "dashes": false, - "datasource": null, - "description": "", - "fieldConfig": { - "defaults": {}, - "overrides": [] - }, - "fill": 1, - "fillGradient": 0, - "gridPos": { - "h": 12, - "w": 12, - "x": 0, - "y": 83 - }, - "hiddenSeries": false, - "id": 16, - "interval": null, - "legend": { - "alignAsTable": true, - "avg": false, - "current": false, - "max": false, - "min": false, - "rightSide": true, - "show": true, - "total": true, - "values": true - }, - "lines": true, - "linewidth": 1, - "maxDataPoints": null, - "nullPointMode": "null", - "options": { - "alertThreshold": true - }, - "percentage": false, - "pluginVersion": "7.5.5", - "pointradius": 2, - "points": false, - "renderer": "flot", - "seriesOverrides": [], - "spaceLength": 10, - "stack": false, - "steppedLine": false, - "targets": [ - { - "exemplar": false, - "expr": "oracledb_concurrency_foreground_wait_event_waits_fg", - "format": "time_series", - "instant": false, - "interval": "", - "intervalFactor": 1, - "legendFormat": "{{event_name}}", - "refId": "waits" - } - ], - "thresholds": [], - "timeFrom": null, - "timeRegions": [], - "timeShift": null, - "title": "Foreground Wait Event - Wait Count [Accumulate]", - "tooltip": { - "shared": true, - "sort": 0, - "value_type": "individual" - }, - "transformations": [], - "type": "graph", - "xaxis": { - "buckets": null, - "mode": "time", - "name": null, - "show": true, - "values": [] - }, - "yaxes": [ - { - "$$hashKey": "object:523", - "format": "none", - "label": "", - "logBase": 1, - "max": null, - "min": null, - "show": true - }, - { - "$$hashKey": "object:524", - "format": "none", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": true - } - ], - "yaxis": { - "align": false, - "alignLevel": null - } - }, - { - "datasource": null, - "description": "", - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "drawStyle": "line", - "fillOpacity": 10, - "gradientMode": "none", - "hideFrom": { - "graph": false, - "legend": false, - "tooltip": false - }, - "lineInterpolation": "linear", - "lineWidth": 1, - "pointSize": 5, - "scaleDistribution": { - "type": "linear" - }, - "showPoints": "never", - "spanNulls": true - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null - }, - { - "color": "red", - "value": 80 - } - ] - }, - "unit": "none" - }, - "overrides": [] - }, - "gridPos": { - "h": 12, - "w": 12, - "x": 12, - "y": 83 - }, - "id": 18, - "interval": null, - "maxDataPoints": null, - "options": { - "graph": {}, - "legend": { - "calcs": [ - "last" - ], - "displayMode": "table", - "placement": "right" - }, - "tooltipOptions": { - "mode": "single" - } - }, - "pluginVersion": "7.5.5", - "targets": [ - { - "exemplar": false, - "expr": "delta(oracledb_concurrency_foreground_wait_event_waits_fg[2m])", - "format": "time_series", - "instant": false, - "interval": "", - "intervalFactor": 1, - "legendFormat": "{{event_name}}", - "refId": "waits" - } - ], - "timeFrom": null, - "timeShift": null, - "title": "Foreground Wait Event - Wait Count [2m Delta]", - "transformations": [], - "type": "timeseries" - }, - { - "datasource": null, - "description": "", - "fieldConfig": { - "defaults": { - "color": { - "mode": "thresholds" - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null - }, - { - "color": "red", - "value": 80 - } - ] - }, - "unit": "none" - }, - "overrides": [] - }, - "gridPos": { - "h": 14, - "w": 12, - "x": 0, - "y": 95 - }, - "id": 19, - "interval": null, - "maxDataPoints": null, - "options": { - "displayMode": "basic", - "orientation": "horizontal", - "reduceOptions": { - "calcs": [ - "lastNotNull" - ], - "fields": "", - "values": false - }, - "showUnfilled": true, - "text": {} - }, - "pluginVersion": "7.5.5", - "targets": [ - { - "exemplar": false, - "expr": "oracledb_concurrency_foreground_wait_event_average_wait_fg", - "format": "time_series", - "instant": false, - "interval": "", - "legendFormat": "{{event_name}}", - "refId": "waits" - } - ], - "title": "Foreground Wait Event - Average Wait Time (s) [Accumulate]", - "transformations": [], - "type": "bargauge" - }, - { - "datasource": null, - "description": "", - "fieldConfig": { - "defaults": { - "color": { - "mode": "thresholds" - }, - "custom": { - "align": null, - "filterable": false - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null - }, - { - "color": "red", - "value": 80 - } - ] - } - }, - "overrides": [ - { - "matcher": { - "id": "byName", - "options": "%Time-out" - }, - "properties": [ - { - "id": "mappings", - "value": [ - { - "from": "0", - "id": 1, - "text": "0%", - "to": "0.005", - "type": 2 - } - ] - }, - { - "id": "unit", - "value": "percentunit" - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "%DB time" - }, - "properties": [ - { - "id": "unit", - "value": "percentunit" - } - ] - } - ] - }, - "gridPos": { - "h": 21, - "w": 24, - "x": 0, - "y": 109 - }, - "id": 4, - "interval": null, - "maxDataPoints": null, - "options": { - "frameIndex": 1, - "showHeader": true, - "sortBy": [ - { - "desc": true, - "displayName": "Total Wait Time (s)" - } - ] - }, - "pluginVersion": "7.5.5", - "targets": [ - { - "exemplar": false, - "expr": "oracledb_concurrency_background_wait_event_waits_bg", - "format": "table", - "instant": true, - "interval": "", - "legendFormat": "", - "refId": "waits" - }, - { - "exemplar": true, - "expr": "oracledb_concurrency_background_wait_event_time_waited_bg", - "format": "table", - "hide": false, - "instant": true, - "interval": "", - "intervalFactor": 1, - "legendFormat": "", - "refId": "total_wait_time" - }, - { - "exemplar": true, - "expr": "oracledb_concurrency_background_wait_event_average_wait_bg", - "format": "table", - "hide": false, - "instant": true, - "interval": "", - "legendFormat": "", - "refId": "avg_wait_time" - }, - { - "exemplar": true, - "expr": "oracledb_concurrency_background_wait_event_time_waited_bg / on(con_id, inst_id, instance, job) group_left oracledb_concurrency_sysstat_total_time_waited_bg", - "format": "table", - "hide": false, - "instant": true, - "interval": "", - "legendFormat": "", - "refId": "%bg_time" - }, - { - "exemplar": true, - "expr": "oracledb_concurrency_background_wait_event_timeouts_bg / on(con_id, inst_id, instance, job) group_left oracledb_concurrency_sysevent_total_timeout", - "format": "table", - "hide": false, - "instant": true, - "interval": "", - "legendFormat": "", - "refId": "%time-out" - } - ], - "title": "Background Wait Event", - "transformations": [ - { - "id": "filterFieldsByName", - "options": { - "include": { - "names": [ - "event_name", - "Value #waits", - "Value #total_wait_time", - "Value #avg_wait_time", - "Value #%time-out", - "Value #%bg_time" - ] - } - } - }, - { - "id": "merge", - "options": {} - }, - { - "id": "organize", - "options": { - "excludeByName": {}, - "indexByName": { - "Value #%db_time": 5, - "Value #%time-out": 2, - "Value #avg_wait_time": 4, - "Value #total_wait_time": 3, - "Value #waits": 1, - "event_name": 0 - }, - "renameByName": { - "Value #%cpu": "%CPU", - "Value #%db_time": "%DB time", - "Value #%io": "%IO", - "Value #%time-out": "%Time-out", - "Value #%total": "%Total", - "Value #avg_wait_time": "Avg Wait Time (s)", - "Value #elapsed_time": "Elapsed Time(s)", - "Value #elapsed_time / Value #executions": "Elapsed Time per Exec (s)", - "Value #executions": "Executions", - "Value #total_wait_time": "Total Wait Time (s)", - "Value #waits": "Waits", - "event_name": "Event", - "module": "Module", - "sql_id": "SQL ID", - "wait_class_name": "Wait Class" - } - } - }, - { - "id": "sortBy", - "options": { - "fields": {}, - "sort": [ - { - "desc": true, - "field": "Total Wait Time (s)" - } - ] - } - } - ], - "type": "table" - }, - { - "aliasColors": {}, - "bars": false, - "dashLength": 10, - "dashes": false, - "datasource": null, - "description": "", - "fieldConfig": { - "defaults": {}, - "overrides": [] - }, - "fill": 1, - "fillGradient": 0, - "gridPos": { - "h": 12, - "w": 12, - "x": 0, - "y": 130 - }, - "hiddenSeries": false, - "id": 20, - "interval": null, - "legend": { - "alignAsTable": true, - "avg": false, - "current": false, - "max": false, - "min": false, - "rightSide": true, - "show": true, - "total": true, - "values": true - }, - "lines": true, - "linewidth": 1, - "maxDataPoints": null, - "nullPointMode": "null", - "options": { - "alertThreshold": true - }, - "percentage": false, - "pluginVersion": "7.5.5", - "pointradius": 2, - "points": false, - "renderer": "flot", - "seriesOverrides": [], - "spaceLength": 10, - "stack": false, - "steppedLine": false, - "targets": [ - { - "exemplar": false, - "expr": "oracledb_concurrency_background_wait_event_time_waited_bg", - "format": "time_series", - "instant": false, - "interval": "", - "intervalFactor": 1, - "legendFormat": "{{event_name}}", - "refId": "waits" - } - ], - "thresholds": [], - "timeFrom": null, - "timeRegions": [], - "timeShift": null, - "title": "Background Wait Event - Wait Time (s) [Accumulate]", - "tooltip": { - "shared": true, - "sort": 0, - "value_type": "individual" - }, - "transformations": [], - "type": "graph", - "xaxis": { - "buckets": null, - "mode": "time", - "name": null, - "show": true, - "values": [] - }, - "yaxes": [ - { - "$$hashKey": "object:523", - "format": "none", - "label": "", - "logBase": 1, - "max": null, - "min": null, - "show": true - }, - { - "$$hashKey": "object:524", - "format": "none", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": true - } - ], - "yaxis": { - "align": false, - "alignLevel": null - } - }, - { - "datasource": null, - "description": "", - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "drawStyle": "line", - "fillOpacity": 10, - "gradientMode": "none", - "hideFrom": { - "graph": false, - "legend": false, - "tooltip": false - }, - "lineInterpolation": "linear", - "lineWidth": 1, - "pointSize": 5, - "scaleDistribution": { - "type": "linear" - }, - "showPoints": "never", - "spanNulls": true - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null - }, - { - "color": "red", - "value": 80 - } - ] - }, - "unit": "none" - }, - "overrides": [] - }, - "gridPos": { - "h": 12, - "w": 12, - "x": 12, - "y": 130 - }, - "id": 21, - "interval": null, - "maxDataPoints": null, - "options": { - "graph": {}, - "legend": { - "calcs": [ - "last" - ], - "displayMode": "table", - "placement": "right" - }, - "tooltipOptions": { - "mode": "single" - } - }, - "pluginVersion": "7.5.5", - "targets": [ - { - "exemplar": false, - "expr": "delta(oracledb_concurrency_background_wait_event_time_waited_bg[2m])", - "format": "time_series", - "instant": false, - "interval": "", - "intervalFactor": 1, - "legendFormat": "{{event_name}}", - "refId": "waits" - } - ], - "timeFrom": null, - "timeShift": null, - "title": "Background Wait Event - Wait Time (s) [2m Delta]", - "transformations": [], - "type": "timeseries" - }, - { - "aliasColors": {}, - "bars": false, - "dashLength": 10, - "dashes": false, - "datasource": null, - "description": "", - "fieldConfig": { - "defaults": {}, - "overrides": [] - }, - "fill": 1, - "fillGradient": 0, - "gridPos": { - "h": 12, - "w": 12, - "x": 0, - "y": 142 - }, - "hiddenSeries": false, - "id": 22, - "interval": null, - "legend": { - "alignAsTable": true, - "avg": false, - "current": false, - "max": false, - "min": false, - "rightSide": true, - "show": true, - "total": true, - "values": true - }, - "lines": true, - "linewidth": 1, - "maxDataPoints": null, - "nullPointMode": "null", - "options": { - "alertThreshold": true - }, - "percentage": false, - "pluginVersion": "7.5.5", - "pointradius": 2, - "points": false, - "renderer": "flot", - "seriesOverrides": [], - "spaceLength": 10, - "stack": false, - "steppedLine": false, - "targets": [ - { - "exemplar": false, - "expr": "oracledb_concurrency_background_wait_event_waits_bg", - "format": "time_series", - "instant": false, - "interval": "", - "intervalFactor": 1, - "legendFormat": "{{event_name}}", - "refId": "waits" - } - ], - "thresholds": [], - "timeFrom": null, - "timeRegions": [], - "timeShift": null, - "title": "Background Wait Event - Wait Count [Accumulate]", - "tooltip": { - "shared": true, - "sort": 0, - "value_type": "individual" - }, - "transformations": [], - "type": "graph", - "xaxis": { - "buckets": null, - "mode": "time", - "name": null, - "show": true, - "values": [] - }, - "yaxes": [ - { - "$$hashKey": "object:523", - "format": "none", - "label": "", - "logBase": 1, - "max": null, - "min": null, - "show": true - }, - { - "$$hashKey": "object:524", - "format": "none", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": true - } - ], - "yaxis": { - "align": false, - "alignLevel": null - } - }, - { - "datasource": null, - "description": "", - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "drawStyle": "line", - "fillOpacity": 10, - "gradientMode": "none", - "hideFrom": { - "graph": false, - "legend": false, - "tooltip": false - }, - "lineInterpolation": "linear", - "lineWidth": 1, - "pointSize": 5, - "scaleDistribution": { - "type": "linear" - }, - "showPoints": "never", - "spanNulls": true - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null - }, - { - "color": "red", - "value": 80 - } - ] - }, - "unit": "none" - }, - "overrides": [] - }, - "gridPos": { - "h": 12, - "w": 12, - "x": 12, - "y": 142 - }, - "id": 23, - "interval": null, - "maxDataPoints": null, - "options": { - "graph": {}, - "legend": { - "calcs": [ - "last" - ], - "displayMode": "table", - "placement": "right" - }, - "tooltipOptions": { - "mode": "single" - } - }, - "pluginVersion": "7.5.5", - "targets": [ - { - "exemplar": false, - "expr": "delta(oracledb_concurrency_background_wait_event_waits_bg[2m])", - "format": "time_series", - "instant": false, - "interval": "", - "intervalFactor": 1, - "legendFormat": "{{event_name}}", - "refId": "waits" - } - ], - "timeFrom": null, - "timeShift": null, - "title": "Background Wait Event - Wait Count [2m Delta]", - "transformations": [], - "type": "timeseries" - }, - { - "datasource": null, - "description": "", - "fieldConfig": { - "defaults": { - "color": { - "mode": "thresholds" - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null - }, - { - "color": "red", - "value": 80 - } - ] - }, - "unit": "none" - }, - "overrides": [] - }, - "gridPos": { - "h": 14, - "w": 12, - "x": 0, - "y": 154 - }, - "id": 24, - "interval": null, - "maxDataPoints": null, - "options": { - "displayMode": "basic", - "orientation": "horizontal", - "reduceOptions": { - "calcs": [ - "lastNotNull" - ], - "fields": "", - "values": false - }, - "showUnfilled": true, - "text": {} - }, - "pluginVersion": "7.5.5", - "targets": [ - { - "exemplar": false, - "expr": "oracledb_concurrency_background_wait_event_average_wait_bg", - "format": "time_series", - "instant": false, - "interval": "", - "legendFormat": "{{event_name}}", - "refId": "waits" - } - ], - "title": "Background Wait Event - Average Wait Time (s) [Accumulate]", - "transformations": [], - "type": "bargauge" - } - ], - "schemaVersion": 27, - "style": "dark", - "tags": [], - "templating": { - "list": [] - }, - "time": { - "from": "now-1h", - "to": "now" - }, - "timepicker": {}, - "timezone": "", - "title": "Oracle App-Specific -- Concurrency Level - v1.1", - "uid": "YbcLrLW7z", - "version": 30 -} diff --git a/docker_vol/graf_app_vol/dashboard_io.json b/docker_vol/graf_app_vol/dashboard_io.json deleted file mode 100644 index 44111c0e..00000000 --- a/docker_vol/graf_app_vol/dashboard_io.json +++ /dev/null @@ -1,493 +0,0 @@ -{ - "annotations": { - "list": [ - { - "builtIn": 1, - "datasource": "-- Grafana --", - "enable": true, - "hide": true, - "iconColor": "rgba(0, 211, 255, 1)", - "name": "Annotations & Alerts", - "type": "dashboard" - } - ] - }, - "editable": true, - "gnetId": null, - "graphTooltip": 0, - "id": 4, - "links": [], - "panels": [ - { - "datasource": null, - "description": "", - "fieldConfig": { - "defaults": { - "color": { - "mode": "thresholds" - }, - "custom": { - "align": null, - "filterable": false - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null - }, - { - "color": "red", - "value": 80 - } - ] - } - }, - "overrides": [ - { - "matcher": { - "id": "byName", - "options": "%Time-out" - }, - "properties": [ - { - "id": "mappings", - "value": [ - { - "from": "0", - "id": 1, - "text": "0", - "to": "0.005", - "type": 2 - } - ] - } - ] - } - ] - }, - "gridPos": { - "h": 8, - "w": 24, - "x": 0, - "y": 0 - }, - "id": 2, - "interval": null, - "maxDataPoints": null, - "options": { - "frameIndex": 1, - "showHeader": true, - "sortBy": [ - { - "desc": true, - "displayName": "Value #read_data" - } - ] - }, - "pluginVersion": "7.5.5", - "targets": [ - { - "exemplar": false, - "expr": "oracledb_io_function_read_data_l + oracledb_io_function_read_data_s", - "format": "table", - "instant": true, - "interval": "", - "legendFormat": "", - "refId": "read_data" - }, - { - "exemplar": true, - "expr": "(oracledb_io_function_read_req_l + oracledb_io_function_read_req_s) / oracledb_io_function_time", - "format": "table", - "hide": false, - "instant": true, - "interval": "", - "intervalFactor": 1, - "legendFormat": "", - "refId": "read_req_per_sec" - }, - { - "exemplar": true, - "expr": "(oracledb_io_function_read_data_l + oracledb_io_function_read_data_s) / oracledb_io_function_time", - "format": "table", - "hide": false, - "instant": true, - "interval": "", - "legendFormat": "", - "refId": "read_data_per_sec" - }, - { - "exemplar": true, - "expr": "(oracledb_io_function_write_data_l + oracledb_io_function_write_data_s)", - "format": "table", - "hide": false, - "instant": true, - "interval": "", - "legendFormat": "", - "refId": "write_data" - }, - { - "exemplar": true, - "expr": "(oracledb_io_function_write_req_l + oracledb_io_function_write_req_s) / oracledb_io_function_time", - "format": "table", - "hide": false, - "instant": true, - "interval": "", - "legendFormat": "", - "refId": "write_req_per_sec" - }, - { - "exemplar": true, - "expr": "(oracledb_io_function_write_data_l + oracledb_io_function_write_data_s) / oracledb_io_function_time", - "format": "table", - "hide": false, - "instant": true, - "interval": "", - "legendFormat": "", - "refId": "write_data_per_sec" - }, - { - "exemplar": true, - "expr": "oracledb_io_function_number_of_waits", - "format": "table", - "hide": false, - "instant": true, - "interval": "", - "legendFormat": "", - "refId": "wait_count" - }, - { - "exemplar": true, - "expr": "oracledb_io_function_time / oracledb_io_function_number_of_waits", - "format": "table", - "hide": false, - "instant": true, - "interval": "", - "legendFormat": "", - "refId": "avg_wait_time" - } - ], - "title": "IOStat by Function summary", - "transformations": [ - { - "id": "filterFieldsByName", - "options": { - "include": { - "names": [ - "function_name", - "Value #read_data", - "Value #read_req_per_sec", - "Value #read_data_per_sec", - "Value #write_data", - "Value #write_req_per_sec", - "Value #write_data_per_sec", - "Value #wait_count", - "Value #avg_wait_time", - "Value #total_read_data" - ] - } - } - }, - { - "id": "merge", - "options": {} - }, - { - "id": "organize", - "options": { - "excludeByName": {}, - "indexByName": { - "Value #avg_wait_time": 8, - "Value #read_data": 1, - "Value #read_data_per_sec": 3, - "Value #read_req_per_sec": 2, - "Value #wait_count": 7, - "Value #write_data": 4, - "Value #write_data_per_sec": 6, - "Value #write_req_per_sec": 5, - "function_name": 0 - }, - "renameByName": { - "Value #%cpu": "%CPU", - "Value #%db_time": "%DB time", - "Value #%io": "%IO", - "Value #%time-out": "%Time-out", - "Value #%total": "%Total", - "Value #avg_wait_time": "Avg Wait Time (s)", - "Value #elapsed_time": "Elapsed Time(s)", - "Value #elapsed_time / Value #executions": "Elapsed Time per Exec (s)", - "Value #executions": "Executions", - "Value #total_wait_time": "Total Wait Time (s)", - "Value #waits": "Waits", - "module": "Module", - "sql_id": "SQL ID", - "wait_class_name": "Wait Class" - } - } - }, - { - "id": "sortBy", - "options": { - "fields": {}, - "sort": [ - { - "desc": true, - "field": "Total Wait Time (s)" - } - ] - } - } - ], - "type": "table" - }, - { - "datasource": null, - "description": "", - "fieldConfig": { - "defaults": { - "color": { - "mode": "thresholds" - }, - "custom": { - "align": null, - "filterable": false - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null - }, - { - "color": "red", - "value": 80 - } - ] - } - }, - "overrides": [ - { - "matcher": { - "id": "byName", - "options": "%Time-out" - }, - "properties": [ - { - "id": "mappings", - "value": [ - { - "from": "0", - "id": 1, - "text": "0", - "to": "0.005", - "type": 2 - } - ] - } - ] - } - ] - }, - "gridPos": { - "h": 8, - "w": 24, - "x": 0, - "y": 8 - }, - "id": 3, - "interval": null, - "maxDataPoints": null, - "options": { - "frameIndex": 1, - "showHeader": true, - "sortBy": [ - { - "desc": true, - "displayName": "Value #read_data" - } - ] - }, - "pluginVersion": "7.5.5", - "targets": [ - { - "exemplar": false, - "expr": "oracledb_io_filetype_read_data_l + oracledb_io_filetype_read_data_s", - "format": "table", - "instant": true, - "interval": "", - "legendFormat": "", - "refId": "read_data" - }, - { - "exemplar": true, - "expr": "(oracledb_io_filetype_read_req_l + oracledb_io_filetype_read_req_s) / (oracledb_io_filetype_read_stime_l + oracledb_io_filetype_read_stime_s)", - "format": "table", - "hide": false, - "instant": true, - "interval": "", - "intervalFactor": 1, - "legendFormat": "", - "refId": "read_req_per_sec" - }, - { - "exemplar": true, - "expr": "(oracledb_io_filetype_read_data_l + oracledb_io_filetype_read_data_s) / (oracledb_io_filetype_read_stime_l + oracledb_io_filetype_read_stime_s)", - "format": "table", - "hide": false, - "instant": true, - "interval": "", - "legendFormat": "", - "refId": "read_data_per_sec" - }, - { - "exemplar": true, - "expr": "(oracledb_io_filetype_write_data_l + oracledb_io_filetype_write_data_s)", - "format": "table", - "hide": false, - "instant": true, - "interval": "", - "legendFormat": "", - "refId": "write_data" - }, - { - "exemplar": true, - "expr": "(oracledb_io_filetype_write_req_l + oracledb_io_filetype_write_req_l) / (oracledb_io_filetype_write_stime_l + oracledb_io_filetype_write_stime_s)", - "format": "table", - "hide": false, - "instant": true, - "interval": "", - "legendFormat": "", - "refId": "write_req_per_sec" - }, - { - "exemplar": true, - "expr": "(oracledb_io_filetype_write_data_l + oracledb_io_filetype_write_data_s) / (oracledb_io_filetype_write_stime_l + oracledb_io_filetype_write_stime_s)", - "format": "table", - "hide": false, - "instant": true, - "interval": "", - "legendFormat": "", - "refId": "write_data_per_sec" - }, - { - "exemplar": true, - "expr": "(oracledb_io_filetype_read_stime_l + oracledb_io_filetype_read_stime_s)", - "format": "table", - "hide": false, - "instant": true, - "interval": "", - "legendFormat": "", - "refId": "read_service_time" - }, - { - "exemplar": true, - "expr": "(oracledb_io_filetype_write_stime_l + oracledb_io_filetype_write_stime_s)", - "format": "table", - "hide": false, - "instant": true, - "interval": "", - "legendFormat": "", - "refId": "write_service_time" - } - ], - "title": "IOStat by Filetype summary", - "transformations": [ - { - "id": "filterFieldsByName", - "options": { - "include": { - "names": [ - "filetype_name", - "Value #read_data", - "Value #read_req_per_sec", - "Value #read_data_per_sec", - "Value #write_data", - "Value #write_req_per_sec", - "Value #write_data_per_sec" - ] - } - } - }, - { - "id": "merge", - "options": {} - }, - { - "id": "calculateField", - "options": { - "mode": "reduceRow", - "reduce": { - "include": [ - "Value #read_data", - "Value #write_data" - ], - "reducer": "sum" - } - } - }, - { - "id": "organize", - "options": { - "excludeByName": { - "Total": true - }, - "indexByName": { - "Value #read_data": 1, - "filetype_name": 0 - }, - "renameByName": { - "Total": "total_data", - "Value #%cpu": "%CPU", - "Value #%db_time": "%DB time", - "Value #%io": "%IO", - "Value #%time-out": "%Time-out", - "Value #%total": "%Total", - "Value #avg_wait_time": "Avg Wait Time (s)", - "Value #elapsed_time": "Elapsed Time(s)", - "Value #elapsed_time / Value #executions": "Elapsed Time per Exec (s)", - "Value #executions": "Executions", - "Value #total_wait_time": "Total Wait Time (s)", - "Value #waits": "Waits", - "module": "Module", - "sql_id": "SQL ID", - "wait_class_name": "Wait Class" - } - } - }, - { - "id": "sortBy", - "options": { - "fields": {}, - "sort": [ - { - "desc": true, - "field": "total" - } - ] - } - } - ], - "type": "table" - } - ], - "schemaVersion": 27, - "style": "dark", - "tags": [], - "templating": { - "list": [] - }, - "time": { - "from": "now-6h", - "to": "now" - }, - "timepicker": {}, - "timezone": "", - "title": "Oracle App-Specific -- I/O Level - v1.1", - "uid": "T_w0nsZ7z", - "version": 6 -} diff --git a/docker_vol/graf_app_vol/dashboard_query.json b/docker_vol/graf_app_vol/dashboard_query.json deleted file mode 100644 index ed128d65..00000000 --- a/docker_vol/graf_app_vol/dashboard_query.json +++ /dev/null @@ -1,1664 +0,0 @@ -{ - "annotations": { - "list": [ - { - "builtIn": 1, - "datasource": "-- Grafana --", - "enable": true, - "hide": true, - "iconColor": "rgba(0, 211, 255, 1)", - "name": "Annotations & Alerts", - "type": "dashboard" - } - ] - }, - "editable": true, - "gnetId": null, - "graphTooltip": 0, - "id": 1, - "iteration": 1628201886738, - "links": [], - "panels": [ - { - "collapsed": false, - "datasource": null, - "gridPos": { - "h": 1, - "w": 24, - "x": 0, - "y": 0 - }, - "id": 6, - "panels": [], - "title": "SQL Statistics", - "type": "row" - }, - { - "datasource": null, - "description": "%Total - Elapsed Time as a percentage of Total DB time\n\n%CPU - CPU Time as a percentage of Elapsed Time\n\n%IO - User I/O Time as a percentage of Elapsed Time", - "fieldConfig": { - "defaults": { - "color": { - "mode": "thresholds" - }, - "custom": { - "align": null, - "filterable": false - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null - }, - { - "color": "red", - "value": 80 - } - ] - } - }, - "overrides": [ - { - "matcher": { - "id": "byName", - "options": "%Total" - }, - "properties": [ - { - "id": "custom.width", - "value": 96 - }, - { - "id": "unit", - "value": "percentunit" - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "%CPU" - }, - "properties": [ - { - "id": "unit", - "value": "percentunit" - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "%IO" - }, - "properties": [ - { - "id": "unit", - "value": "percentunit" - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "Module" - }, - "properties": [ - { - "id": "custom.width", - "value": 400 - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "Elapsed Time" - }, - "properties": [ - { - "id": "unit", - "value": "µs" - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "Elapsed Time per Exec" - }, - "properties": [ - { - "id": "unit", - "value": "µs" - } - ] - } - ] - }, - "gridPos": { - "h": 12, - "w": 24, - "x": 0, - "y": 1 - }, - "id": 22, - "interval": null, - "links": [ - { - "targetBlank": true, - "title": "V$SQL Official Document", - "url": "https://docs.oracle.com/en/database/oracle/oracle-database/19/refrn/V-SQL.html#GUID-2B9340D7-4AA8-4894-94C0-D5990F67BE75" - } - ], - "maxDataPoints": null, - "options": { - "frameIndex": 0, - "showHeader": true, - "sortBy": [ - { - "desc": true, - "displayName": "Elapsed Time" - } - ] - }, - "pluginVersion": "7.5.5", - "targets": [ - { - "exemplar": true, - "expr": "oracledb_sql_query_elapsed_time_order_elapsed_time", - "format": "table", - "instant": true, - "interval": "", - "legendFormat": "", - "refId": "elapsed_time" - }, - { - "exemplar": true, - "expr": "oracledb_sql_query_elapsed_time_order_executions", - "format": "table", - "hide": false, - "instant": true, - "interval": "", - "intervalFactor": 1, - "legendFormat": "", - "refId": "executions" - }, - { - "exemplar": true, - "expr": "oracledb_sql_query_elapsed_time_order_elapsed_time / on(inst_id, instance, job) group_left oracledb_system_time_value{stat_name=\"DB time\"}", - "format": "table", - "hide": false, - "instant": true, - "interval": "", - "legendFormat": "", - "refId": "%total" - }, - { - "exemplar": true, - "expr": "oracledb_sql_query_elapsed_time_order_cpu_time / oracledb_sql_query_elapsed_time_order_elapsed_time", - "format": "table", - "hide": false, - "instant": true, - "interval": "", - "legendFormat": "", - "refId": "%cpu" - }, - { - "exemplar": true, - "expr": "oracledb_sql_query_elapsed_time_order_user_io_wait_time / oracledb_sql_query_elapsed_time_order_elapsed_time", - "format": "table", - "hide": false, - "instant": true, - "interval": "", - "legendFormat": "", - "refId": "%io" - } - ], - "title": "SQL ordered by Elapsed Time (Top 10)", - "transformations": [ - { - "id": "filterFieldsByName", - "options": { - "include": { - "names": [ - "sql_id", - "Value #elapsed_time", - "Value #executions", - "Value #%total", - "Value #%cpu", - "Value #%io", - "module" - ] - } - } - }, - { - "id": "merge", - "options": {} - }, - { - "id": "calculateField", - "options": { - "binary": { - "left": "Value #elapsed_time", - "operator": "/", - "reducer": "sum", - "right": "Value #executions" - }, - "mode": "binary", - "reduce": { - "reducer": "sum" - } - } - }, - { - "id": "organize", - "options": { - "excludeByName": {}, - "indexByName": { - "Value #%cpu": 6, - "Value #%io": 7, - "Value #%total": 5, - "Value #elapsed_time": 2, - "Value #elapsed_time / Value #executions": 4, - "Value #executions": 3, - "module": 1, - "sql_id": 0 - }, - "renameByName": { - "Value #%cpu": "%CPU", - "Value #%io": "%IO", - "Value #%total": "%Total", - "Value #elapsed_time": "Elapsed Time", - "Value #elapsed_time / Value #executions": "Elapsed Time per Exec", - "Value #executions": "Executions", - "module": "Module", - "sql_id": "SQL ID" - } - } - }, - { - "id": "sortBy", - "options": { - "fields": {}, - "sort": [ - { - "desc": true, - "field": "Elapsed Time" - } - ] - } - } - ], - "type": "table" - }, - { - "datasource": null, - "description": "%Total - CPU Time as a percentage of Total DB CPU\n\n%CPU - CPU Time as a percentage of Elapsed Time\n\n%IO - User I/O Time as a percentage of Elapsed Time", - "fieldConfig": { - "defaults": { - "color": { - "mode": "thresholds" - }, - "custom": { - "align": null, - "filterable": false - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null - }, - { - "color": "red", - "value": 80 - } - ] - } - }, - "overrides": [ - { - "matcher": { - "id": "byName", - "options": "%CPU" - }, - "properties": [ - { - "id": "unit", - "value": "percentunit" - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "CPU Time" - }, - "properties": [ - { - "id": "unit", - "value": "µs" - }, - { - "id": "decimals", - "value": 3 - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "%Total" - }, - "properties": [ - { - "id": "unit", - "value": "percentunit" - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "%IO" - }, - "properties": [ - { - "id": "unit", - "value": "percentunit" - }, - { - "id": "custom.width", - "value": 228 - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "CPU Time per Exec" - }, - "properties": [ - { - "id": "unit", - "value": "µs" - } - ] - } - ] - }, - "gridPos": { - "h": 12, - "w": 24, - "x": 0, - "y": 13 - }, - "id": 14, - "interval": null, - "maxDataPoints": null, - "options": { - "frameIndex": 0, - "showHeader": true, - "sortBy": [] - }, - "pluginVersion": "7.5.5", - "targets": [ - { - "exemplar": true, - "expr": "oracledb_sql_query_cpu_time_order_cpu_time", - "format": "table", - "instant": true, - "interval": "", - "legendFormat": "", - "refId": "cpu_time" - }, - { - "exemplar": true, - "expr": "oracledb_sql_query_cpu_time_order_executions", - "format": "table", - "hide": false, - "instant": true, - "interval": "", - "intervalFactor": 1, - "legendFormat": "", - "refId": "executions" - }, - { - "exemplar": true, - "expr": "oracledb_sql_query_cpu_time_order_elapsed_time / on(inst_id, instance, job) group_left oracledb_system_time_value{stat_name=\"DB CPU\"}", - "format": "table", - "hide": false, - "instant": true, - "interval": "", - "legendFormat": "", - "refId": "%total" - }, - { - "exemplar": true, - "expr": "oracledb_sql_query_cpu_time_order_cpu_time / oracledb_sql_query_cpu_time_order_elapsed_time", - "format": "table", - "hide": false, - "instant": true, - "interval": "", - "legendFormat": "", - "refId": "%cpu" - }, - { - "exemplar": true, - "expr": "oracledb_sql_query_cpu_time_order_user_io_wait_time / oracledb_sql_query_cpu_time_order_elapsed_time", - "format": "table", - "hide": false, - "instant": true, - "interval": "", - "legendFormat": "", - "refId": "%io" - } - ], - "title": "SQL Ordered by CPU Time (Top 10)", - "transformations": [ - { - "id": "filterFieldsByName", - "options": { - "include": { - "names": [ - "sql_id", - "Value #cpu_time", - "Value #executions", - "Value #%total", - "Value #%cpu", - "Value #%io", - "module" - ] - } - } - }, - { - "id": "merge", - "options": {} - }, - { - "id": "sortBy", - "options": { - "fields": {}, - "sort": [ - { - "desc": true, - "field": "Value #cpu_time" - } - ] - } - }, - { - "id": "calculateField", - "options": { - "alias": "CPU Time per Exec", - "binary": { - "left": "Value #cpu_time", - "operator": "/", - "reducer": "sum", - "right": "Value #executions" - }, - "mode": "binary", - "reduce": { - "reducer": "sum" - }, - "replaceFields": false - } - }, - { - "id": "organize", - "options": { - "excludeByName": { - "Value #cpu_time": false - }, - "indexByName": { - "CPU Time per Exec (s)": 4, - "Value #%cpu": 6, - "Value #%io": 7, - "Value #%total": 5, - "Value #cpu_time": 2, - "Value #executions": 3, - "module": 1, - "sql_id": 0 - }, - "renameByName": { - "Value #%cpu": "%CPU", - "Value #%io": "%IO", - "Value #%total": "%Total", - "Value #cpu_time": "CPU Time", - "Value #elapsed_time": "Elapsed Time(s)", - "Value #executions": "Executions", - "module": "Module ", - "sql_id": "SQL ID" - } - } - } - ], - "type": "table" - }, - { - "datasource": null, - "description": "%Total - User I/O Time as a percentage of Total User I/O Wait time\n\n%CPU - CPU Time as a percentage of Elapsed Time\n\n%IO - User I/O Time as a percentage of Elapsed Time", - "fieldConfig": { - "defaults": { - "color": { - "mode": "thresholds" - }, - "custom": { - "align": null, - "filterable": false - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null - }, - { - "color": "red", - "value": 80 - } - ] - } - }, - "overrides": [ - { - "matcher": { - "id": "byName", - "options": "User I/O Time" - }, - "properties": [ - { - "id": "unit", - "value": "µs" - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "%Total" - }, - "properties": [ - { - "id": "unit", - "value": "percentunit" - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "%CPU" - }, - "properties": [ - { - "id": "unit", - "value": "percentunit" - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "%IO" - }, - "properties": [ - { - "id": "unit", - "value": "percentunit" - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "UIO per Exec" - }, - "properties": [ - { - "id": "unit", - "value": "µs" - } - ] - } - ] - }, - "gridPos": { - "h": 12, - "w": 24, - "x": 0, - "y": 25 - }, - "id": 15, - "interval": null, - "maxDataPoints": null, - "options": { - "frameIndex": 0, - "showHeader": true - }, - "pluginVersion": "7.5.5", - "targets": [ - { - "exemplar": true, - "expr": "oracledb_sql_query_uio_time_order_user_io_wait_time", - "format": "table", - "instant": true, - "interval": "", - "legendFormat": "", - "refId": "user_io_time" - }, - { - "exemplar": true, - "expr": "oracledb_sql_query_uio_time_order_executions", - "format": "table", - "hide": false, - "instant": true, - "interval": "", - "intervalFactor": 1, - "legendFormat": "", - "refId": "executions" - }, - { - "exemplar": true, - "expr": "oracledb_sql_query_uio_time_order_user_io_wait_time / on(inst_id, instance, job) group_left oracledb_sql_query_total_io_wait_time", - "format": "table", - "hide": false, - "instant": true, - "interval": "", - "legendFormat": "", - "refId": "%total" - }, - { - "exemplar": true, - "expr": "oracledb_sql_query_uio_time_order_cpu_time / oracledb_sql_query_uio_time_order_elapsed_time", - "format": "table", - "hide": false, - "instant": true, - "interval": "", - "legendFormat": "", - "refId": "%cpu" - }, - { - "exemplar": true, - "expr": "oracledb_sql_query_uio_time_order_user_io_wait_time / oracledb_sql_query_uio_time_order_elapsed_time", - "format": "table", - "hide": false, - "instant": true, - "interval": "", - "legendFormat": "", - "refId": "%io" - } - ], - "title": "SQL Ordered by User I/O Wait Time (Top 10)", - "transformations": [ - { - "id": "filterFieldsByName", - "options": { - "include": { - "names": [ - "sql_id", - "Value #user_io_time", - "Value #executions", - "Value #%total", - "Value #%cpu", - "Value #%io", - "module" - ] - } - } - }, - { - "id": "merge", - "options": {} - }, - { - "id": "sortBy", - "options": { - "fields": {}, - "sort": [ - { - "desc": true, - "field": "Value #user_io_time" - } - ] - } - }, - { - "id": "calculateField", - "options": { - "alias": "UIO per Exec", - "binary": { - "left": "Value #user_io_time", - "operator": "/", - "reducer": "sum", - "right": "Value #executions" - }, - "mode": "binary", - "reduce": { - "reducer": "sum" - }, - "replaceFields": false - } - }, - { - "id": "organize", - "options": { - "excludeByName": { - "Value #cpu_time": false - }, - "indexByName": { - "UIO per Exec (s)": 4, - "Value #%cpu": 6, - "Value #%io": 7, - "Value #%total": 5, - "Value #executions": 3, - "Value #user_io_time": 2, - "module": 1, - "sql_id": 0 - }, - "renameByName": { - "Value #%cpu": "%CPU", - "Value #%io": "%IO", - "Value #%total": "%Total", - "Value #cpu_time": "CPU Time", - "Value #elapsed_time": "Elapsed Time(s)", - "Value #executions": "Executions", - "Value #user_io_time": "User I/O Time", - "module": "Module", - "sql_id": "SQL ID" - } - } - } - ], - "type": "table" - }, - { - "datasource": null, - "description": "%Total - Buffer Gets as a percentage of Total Buffer Gets\n\n%CPU - CPU Time as a percentage of Elapsed Time\n\n%IO - User I/O Time as a percentage of Elapsed Time", - "fieldConfig": { - "defaults": { - "color": { - "mode": "thresholds" - }, - "custom": { - "align": null, - "filterable": false - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null - }, - { - "color": "red", - "value": 80 - } - ] - } - }, - "overrides": [ - { - "matcher": { - "id": "byName", - "options": "%Total" - }, - "properties": [ - { - "id": "unit", - "value": "percentunit" - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "%CPU" - }, - "properties": [ - { - "id": "unit", - "value": "percentunit" - }, - { - "id": "mappings", - "value": [ - { - "from": "1", - "id": 1, - "text": "100%", - "to": "2", - "type": 2 - } - ] - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "%IO" - }, - "properties": [ - { - "id": "unit", - "value": "percentunit" - } - ] - } - ] - }, - "gridPos": { - "h": 12, - "w": 24, - "x": 0, - "y": 37 - }, - "id": 16, - "interval": null, - "maxDataPoints": null, - "options": { - "frameIndex": 0, - "showHeader": true - }, - "pluginVersion": "7.5.5", - "targets": [ - { - "exemplar": true, - "expr": "oracledb_sql_query_gets_order_buffer_gets", - "format": "table", - "instant": true, - "interval": "", - "legendFormat": "", - "refId": "buffer_gets" - }, - { - "exemplar": true, - "expr": "oracledb_sql_query_gets_order_executions", - "format": "table", - "hide": false, - "instant": true, - "interval": "", - "intervalFactor": 1, - "legendFormat": "", - "refId": "executions" - }, - { - "exemplar": true, - "expr": "oracledb_sql_query_gets_order_buffer_gets / on(inst_id, instance, job) group_left oracledb_sql_query_total_buffer_gets", - "format": "table", - "hide": false, - "instant": true, - "interval": "", - "legendFormat": "", - "refId": "%total" - }, - { - "exemplar": true, - "expr": "oracledb_sql_query_gets_order_cpu_time / oracledb_sql_query_gets_order_elapsed_time", - "format": "table", - "hide": false, - "instant": true, - "interval": "", - "legendFormat": "", - "refId": "%cpu" - }, - { - "exemplar": true, - "expr": "oracledb_sql_query_gets_order_user_io_wait_time / oracledb_sql_query_gets_order_elapsed_time", - "format": "table", - "hide": false, - "instant": true, - "interval": "", - "legendFormat": "", - "refId": "%io" - } - ], - "title": "SQL Ordered by Gets (Top 10)", - "transformations": [ - { - "id": "filterFieldsByName", - "options": { - "include": { - "names": [ - "sql_id", - "Value #buffer_gets", - "Value #executions", - "Value #%total", - "Value #%cpu", - "Value #%io", - "module" - ] - } - } - }, - { - "id": "merge", - "options": {} - }, - { - "id": "sortBy", - "options": { - "fields": {}, - "sort": [ - { - "desc": true, - "field": "Value #buffer_gets" - } - ] - } - }, - { - "id": "calculateField", - "options": { - "alias": "Gets per Exec", - "binary": { - "left": "Value #buffer_gets", - "operator": "/", - "reducer": "sum", - "right": "Value #executions" - }, - "mode": "binary", - "reduce": { - "reducer": "sum" - }, - "replaceFields": false - } - }, - { - "id": "organize", - "options": { - "excludeByName": { - "Value #cpu_time": false - }, - "indexByName": { - "Gets per Exec": 4, - "Value #%cpu": 6, - "Value #%io": 7, - "Value #%total": 5, - "Value #buffer_gets": 2, - "Value #executions": 3, - "module": 1, - "sql_id": 0 - }, - "renameByName": { - "Value #%cpu": "%CPU", - "Value #%io": "%IO", - "Value #%total": "%Total", - "Value #buffer_gets": "Buffer Get", - "Value #cpu_time": "CPU Time", - "Value #elapsed_time": "Elapsed Time(s)", - "Value #executions": "Executions", - "module": "Module", - "sql_id": "SQL ID" - } - } - } - ], - "type": "table" - }, - { - "datasource": null, - "description": "%Total - Physical Reads as a percentage of Total Disk Reads\n\n%CPU - CPU Time as a percentage of Elapsed Time\n\n%IO - User I/O Time as a percentage of Elapsed Time", - "fieldConfig": { - "defaults": { - "color": { - "mode": "thresholds" - }, - "custom": { - "align": null, - "filterable": false - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null - }, - { - "color": "red", - "value": 80 - } - ] - } - }, - "overrides": [ - { - "matcher": { - "id": "byName", - "options": "%Total" - }, - "properties": [ - { - "id": "unit", - "value": "percentunit" - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "%CPU" - }, - "properties": [ - { - "id": "unit", - "value": "percentunit" - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "%IO" - }, - "properties": [ - { - "id": "unit", - "value": "percentunit" - } - ] - } - ] - }, - "gridPos": { - "h": 12, - "w": 24, - "x": 0, - "y": 49 - }, - "id": 17, - "interval": null, - "maxDataPoints": null, - "options": { - "frameIndex": 0, - "showHeader": true - }, - "pluginVersion": "7.5.5", - "targets": [ - { - "exemplar": true, - "expr": "oracledb_sql_query_reads_order_disk_reads", - "format": "table", - "instant": true, - "interval": "", - "legendFormat": "", - "refId": "disk_reads" - }, - { - "exemplar": true, - "expr": "oracledb_sql_query_reads_order_executions", - "format": "table", - "hide": false, - "instant": true, - "interval": "", - "intervalFactor": 1, - "legendFormat": "", - "refId": "executions" - }, - { - "exemplar": true, - "expr": "oracledb_sql_query_reads_order_disk_reads / on(inst_id, instance, job) group_left oracledb_sql_query_total_disk_reads", - "format": "table", - "hide": false, - "instant": true, - "interval": "", - "legendFormat": "", - "refId": "%total" - }, - { - "exemplar": true, - "expr": "oracledb_sql_query_reads_order_cpu_time / oracledb_sql_query_reads_order_elapsed_time", - "format": "table", - "hide": false, - "instant": true, - "interval": "", - "legendFormat": "", - "refId": "%cpu" - }, - { - "exemplar": true, - "expr": "oracledb_sql_query_reads_order_user_io_wait_time / oracledb_sql_query_reads_order_elapsed_time", - "format": "table", - "hide": false, - "instant": true, - "interval": "", - "legendFormat": "", - "refId": "%io" - } - ], - "title": "SQL Ordered by Reads (Top 10)", - "transformations": [ - { - "id": "filterFieldsByName", - "options": { - "include": { - "names": [ - "sql_id", - "Value #disk_reads", - "Value #executions", - "Value #%total", - "Value #%cpu", - "Value #%io", - "module" - ] - } - } - }, - { - "id": "merge", - "options": {} - }, - { - "id": "sortBy", - "options": { - "fields": {}, - "sort": [ - { - "desc": true, - "field": "Value #disk_reads" - } - ] - } - }, - { - "id": "calculateField", - "options": { - "alias": "Reads per Exec", - "binary": { - "left": "Value #disk_reads", - "operator": "/", - "reducer": "sum", - "right": "Value #executions" - }, - "mode": "binary", - "reduce": { - "reducer": "sum" - }, - "replaceFields": false - } - }, - { - "id": "organize", - "options": { - "excludeByName": { - "Value #cpu_time": false - }, - "indexByName": { - "Reads per Exec": 4, - "Value #%cpu": 6, - "Value #%io": 7, - "Value #%total": 5, - "Value #disk_reads": 2, - "Value #executions": 3, - "module": 1, - "sql_id": 0 - }, - "renameByName": { - "Value #%cpu": "%CPU", - "Value #%io": "%IO", - "Value #%total": "%Total", - "Value #buffer_gets": "Buffer Get(s)", - "Value #cpu_time": "CPU Time", - "Value #disk_reads": "Disk Reads", - "Value #elapsed_time": "Elapsed Time(s)", - "Value #executions": "Executions", - "module": "Module", - "sql_id": "SQL ID" - } - } - } - ], - "type": "table" - }, - { - "datasource": null, - "description": "%CPU - CPU Time as a percentage of Elapsed Time\n\n%IO - User I/O Time as a percentage of Elapsed Time", - "fieldConfig": { - "defaults": { - "color": { - "mode": "thresholds" - }, - "custom": { - "align": null, - "filterable": false - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null - }, - { - "color": "red", - "value": 80 - } - ] - } - }, - "overrides": [ - { - "matcher": { - "id": "byName", - "options": "Elapsed Time" - }, - "properties": [ - { - "id": "unit", - "value": "µs" - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "%CPU" - }, - "properties": [ - { - "id": "unit", - "value": "percentunit" - }, - { - "id": "mappings", - "value": [ - { - "from": "1", - "id": 1, - "text": "100%", - "to": "2", - "type": 2 - } - ] - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "%IO" - }, - "properties": [ - { - "id": "unit", - "value": "percentunit" - } - ] - } - ] - }, - "gridPos": { - "h": 12, - "w": 24, - "x": 0, - "y": 61 - }, - "id": 18, - "interval": null, - "maxDataPoints": null, - "options": { - "frameIndex": 0, - "showHeader": true - }, - "pluginVersion": "7.5.5", - "targets": [ - { - "exemplar": true, - "expr": "oracledb_sql_query_exec_order_rows_processed", - "format": "table", - "instant": true, - "interval": "", - "legendFormat": "", - "refId": "rows_processed" - }, - { - "exemplar": true, - "expr": "oracledb_sql_query_exec_order_executions", - "format": "table", - "hide": false, - "instant": true, - "interval": "", - "intervalFactor": 1, - "legendFormat": "", - "refId": "executions" - }, - { - "exemplar": true, - "expr": "oracledb_sql_query_exec_order_elapsed_time", - "format": "table", - "hide": false, - "instant": true, - "interval": "", - "legendFormat": "", - "refId": "elapsed_time" - }, - { - "exemplar": true, - "expr": "oracledb_sql_query_exec_order_cpu_time / oracledb_sql_query_exec_order_elapsed_time", - "format": "table", - "hide": false, - "instant": true, - "interval": "", - "legendFormat": "", - "refId": "%cpu" - }, - { - "exemplar": true, - "expr": "oracledb_sql_query_exec_order_user_io_wait_time / oracledb_sql_query_exec_order_elapsed_time", - "format": "table", - "hide": false, - "instant": true, - "interval": "", - "legendFormat": "", - "refId": "%io" - } - ], - "title": "SQL Ordered by Executions (Top 10)", - "transformations": [ - { - "id": "filterFieldsByName", - "options": { - "include": { - "names": [ - "sql_id", - "Value #rows_processed", - "Value #executions", - "Value #elapsed_time", - "Value #%cpu", - "Value #%io", - "module" - ] - } - } - }, - { - "id": "merge", - "options": {} - }, - { - "id": "sortBy", - "options": { - "fields": {}, - "sort": [ - { - "desc": true, - "field": "Value #executions" - } - ] - } - }, - { - "id": "calculateField", - "options": { - "alias": "Rows per Exec", - "binary": { - "left": "Value #rows_processed", - "operator": "/", - "reducer": "sum", - "right": "Value #executions" - }, - "mode": "binary", - "reduce": { - "reducer": "sum" - }, - "replaceFields": false - } - }, - { - "id": "organize", - "options": { - "excludeByName": { - "Value #cpu_time": false - }, - "indexByName": { - "Rows per Exec": 4, - "Value #%cpu": 6, - "Value #%io": 7, - "Value #elapsed_time": 5, - "Value #executions": 2, - "Value #rows_processed": 3, - "module": 1, - "sql_id": 0 - }, - "renameByName": { - "Value #%cpu": "%CPU", - "Value #%io": "%IO", - "Value #%total": "%Total", - "Value #buffer_gets": "Buffer Get(s)", - "Value #cpu_time": "CPU Time", - "Value #disk_reads": "Disk Reads", - "Value #elapsed_time": "Elapsed Time", - "Value #executions": "Executions", - "Value #rows_processed": "Rows Processed", - "module": "Module", - "sql_id": "SQL ID" - } - } - } - ], - "type": "table" - }, - { - "datasource": null, - "description": "", - "fieldConfig": { - "defaults": { - "color": { - "mode": "thresholds" - }, - "custom": { - "align": null, - "filterable": false - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null - }, - { - "color": "red", - "value": 80 - } - ] - } - }, - "overrides": [ - { - "matcher": { - "id": "byName", - "options": "%Total" - }, - "properties": [ - { - "id": "unit", - "value": "percentunit" - } - ] - } - ] - }, - "gridPos": { - "h": 12, - "w": 24, - "x": 0, - "y": 73 - }, - "id": 19, - "interval": null, - "maxDataPoints": null, - "options": { - "frameIndex": 0, - "showHeader": true - }, - "pluginVersion": "7.5.5", - "targets": [ - { - "exemplar": true, - "expr": "oracledb_sql_query_parse_calls_order_parse_calls", - "format": "table", - "instant": true, - "interval": "", - "legendFormat": "", - "refId": "parse_call" - }, - { - "exemplar": true, - "expr": "oracledb_sql_query_parse_calls_order_executions", - "format": "table", - "hide": false, - "instant": true, - "interval": "", - "intervalFactor": 1, - "legendFormat": "", - "refId": "executions" - }, - { - "exemplar": true, - "expr": "oracledb_sql_query_parse_calls_order_parse_calls / on (inst_id, instance, job) group_left oracledb_sql_query_total_parse_calls", - "format": "table", - "hide": false, - "instant": true, - "interval": "", - "legendFormat": "", - "refId": "%total" - } - ], - "title": "SQL Ordered by Parse Calls (Top 10)", - "transformations": [ - { - "id": "filterFieldsByName", - "options": { - "include": { - "names": [ - "sql_id", - "Value #parse_call", - "Value #executions", - "Value #%total", - "module" - ] - } - } - }, - { - "id": "merge", - "options": {} - }, - { - "id": "sortBy", - "options": { - "fields": {}, - "sort": [ - { - "desc": true, - "field": "Value #parse_call" - } - ] - } - }, - { - "id": "organize", - "options": { - "excludeByName": { - "Value #cpu_time": false - }, - "indexByName": { - "Value #%total": 4, - "Value #executions": 3, - "Value #parse_call": 2, - "module": 1, - "sql_id": 0 - }, - "renameByName": { - "Value #%cpu": "%CPU", - "Value #%io": "%IO", - "Value #%total": "%Total", - "Value #buffer_gets": "Buffer Get(s)", - "Value #cpu_time": "CPU Time", - "Value #disk_reads": "Disk Reads", - "Value #elapsed_time": "Elapsed Time(s)", - "Value #executions": "Executions", - "Value #parse_call": "Parse Call", - "Value #rows_processed": "Rows Processed", - "module": "Module", - "sql_id": "SQL ID" - } - } - } - ], - "type": "table" - } - ], - "refresh": "30s", - "schemaVersion": 27, - "style": "dark", - "tags": [], - "templating": { - "list": [ - { - "allValue": null, - "current": { - "selected": true, - "text": "1", - "value": "1" - }, - "datasource": null, - "definition": "label_values(oracledb_instance_dummy, inst_id)", - "description": null, - "error": null, - "hide": 0, - "includeAll": false, - "label": null, - "multi": false, - "name": "instance", - "options": [ - { - "selected": true, - "text": "1", - "value": "1" - } - ], - "query": { - "query": "label_values(oracledb_instance_dummy, inst_id)", - "refId": "StandardVariableQuery" - }, - "refresh": 0, - "regex": "", - "skipUrlSync": false, - "sort": 0, - "tagValuesQuery": "", - "tags": [], - "tagsQuery": "", - "type": "query", - "useTags": false - } - ] - }, - "time": { - "from": "now-6h", - "to": "now" - }, - "timepicker": {}, - "timezone": "", - "title": "Oracle App-specific - Query Level - v1.1", - "uid": "83irx6rGz", - "version": 15 -} diff --git a/docker_vol/graf_app_vol/dashboard_sys.json b/docker_vol/graf_app_vol/dashboard_sys.json deleted file mode 100644 index 8ed06231..00000000 --- a/docker_vol/graf_app_vol/dashboard_sys.json +++ /dev/null @@ -1,3098 +0,0 @@ -{ - "annotations": { - "list": [ - { - "builtIn": 1, - "datasource": "-- Grafana --", - "enable": true, - "hide": true, - "iconColor": "rgba(0, 211, 255, 1)", - "name": "Annotations & Alerts", - "type": "dashboard" - } - ] - }, - "editable": true, - "gnetId": null, - "graphTooltip": 0, - "id": 2, - "iteration": 1627678976274, - "links": [], - "panels": [ - { - "collapsed": false, - "datasource": null, - "gridPos": { - "h": 1, - "w": 24, - "x": 0, - "y": 0 - }, - "id": 50, - "panels": [], - "title": "Database and Instance Info", - "type": "row" - }, - { - "cacheTimeout": null, - "datasource": null, - "description": "", - "fieldConfig": { - "defaults": { - "color": { - "mode": "thresholds" - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null - }, - { - "color": "red", - "value": 80 - } - ] - }, - "unit": "none" - }, - "overrides": [] - }, - "gridPos": { - "h": 3, - "w": 11, - "x": 0, - "y": 1 - }, - "id": 48, - "interval": null, - "links": [], - "maxDataPoints": 100, - "options": { - "colorMode": "value", - "graphMode": "none", - "justifyMode": "auto", - "orientation": "horizontal", - "reduceOptions": { - "calcs": [ - "lastNotNull" - ], - "fields": "/^banner$/", - "values": false - }, - "text": {}, - "textMode": "value" - }, - "pluginVersion": "7.5.5", - "targets": [ - { - "exemplar": true, - "expr": "oracledb_database_version_dummy", - "format": "table", - "hide": false, - "instant": true, - "interval": "", - "legendFormat": "", - "refId": "A" - } - ], - "timeFrom": null, - "timeShift": null, - "title": "Database Version", - "transformations": [ - { - "id": "labelsToFields", - "options": {} - } - ], - "type": "stat" - }, - { - "cacheTimeout": null, - "datasource": null, - "fieldConfig": { - "defaults": { - "color": { - "fixedColor": "green", - "mode": "fixed" - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null - }, - { - "color": "red", - "value": 80 - } - ] - }, - "unit": "none" - }, - "overrides": [] - }, - "gridPos": { - "h": 3, - "w": 4, - "x": 11, - "y": 1 - }, - "id": 14, - "interval": null, - "links": [], - "maxDataPoints": 100, - "options": { - "colorMode": "value", - "graphMode": "none", - "justifyMode": "center", - "orientation": "auto", - "reduceOptions": { - "calcs": [ - "lastNotNull" - ], - "fields": "/^instance_name$/", - "values": false - }, - "text": {}, - "textMode": "value" - }, - "pluginVersion": "7.5.5", - "repeat": null, - "targets": [ - { - "exemplar": true, - "expr": "max(oracledb_instance_dummy{inst_id=\"[[Instance]]\"}) by (instance_name)", - "format": "table", - "instant": false, - "interval": "", - "legendFormat": "", - "refId": "A" - } - ], - "timeFrom": null, - "timeShift": null, - "title": "Instance Name", - "type": "stat" - }, - { - "cacheTimeout": null, - "datasource": "Prometheus", - "fieldConfig": { - "defaults": { - "color": { - "mode": "thresholds" - }, - "decimals": 1, - "mappings": [ - { - "$$hashKey": "object:1228", - "id": 0, - "op": "=", - "text": "UP", - "type": 1, - "value": "1" - }, - { - "$$hashKey": "object:1229", - "id": 1, - "op": "=", - "text": "DOWN", - "type": 1, - "value": "0" - } - ], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null - }, - { - "color": "red", - "value": 80 - } - ] - }, - "unit": "s" - }, - "overrides": [] - }, - "gridPos": { - "h": 3, - "w": 2, - "x": 15, - "y": 1 - }, - "id": 2, - "interval": "", - "links": [], - "maxDataPoints": 100, - "options": { - "colorMode": "value", - "graphMode": "none", - "justifyMode": "auto", - "orientation": "horizontal", - "reduceOptions": { - "calcs": [ - "lastNotNull" - ], - "fields": "", - "values": false - }, - "text": {}, - "textMode": "auto" - }, - "pluginVersion": "7.5.5", - "targets": [ - { - "calculatedInterval": "10m", - "datasourceErrors": {}, - "errors": {}, - "expr": "oracledb_up", - "format": "time_series", - "hide": false, - "instant": true, - "interval": "", - "intervalFactor": 1, - "legendFormat": "", - "metric": "", - "refId": "A", - "step": 300 - } - ], - "title": "Database Status", - "type": "stat" - }, - { - "cacheTimeout": null, - "datasource": "Prometheus", - "fieldConfig": { - "defaults": { - "color": { - "mode": "thresholds" - }, - "decimals": 1, - "mappings": [ - { - "$$hashKey": "object:1228", - "id": 0, - "op": "=", - "text": "YES", - "type": 1, - "value": "1" - }, - { - "$$hashKey": "object:1229", - "id": 1, - "op": "=", - "text": "NO", - "type": 1, - "value": "0" - } - ], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null - }, - { - "color": "red", - "value": 80 - } - ] - }, - "unit": "s" - }, - "overrides": [] - }, - "gridPos": { - "h": 3, - "w": 2, - "x": 17, - "y": 1 - }, - "id": 59, - "interval": "", - "links": [], - "maxDataPoints": 100, - "options": { - "colorMode": "value", - "graphMode": "none", - "justifyMode": "auto", - "orientation": "horizontal", - "reduceOptions": { - "calcs": [ - "lastNotNull" - ], - "fields": "", - "values": false - }, - "text": {}, - "textMode": "auto" - }, - "pluginVersion": "7.5.5", - "targets": [ - { - "calculatedInterval": "10m", - "datasourceErrors": {}, - "errors": {}, - "exemplar": true, - "expr": "oracledb_database_rac_value", - "format": "time_series", - "hide": false, - "instant": true, - "interval": "", - "intervalFactor": 1, - "legendFormat": "", - "metric": "", - "refId": "A", - "step": 300 - } - ], - "title": "RAC DB", - "type": "stat" - }, - { - "cacheTimeout": null, - "datasource": null, - "fieldConfig": { - "defaults": { - "color": { - "fixedColor": "green", - "mode": "fixed" - }, - "mappings": [ - { - "$$hashKey": "object:571", - "id": 0, - "op": "=", - "text": "N/A", - "type": 1, - "value": "null" - } - ], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null - }, - { - "color": "red", - "value": 80 - } - ] - }, - "unit": "none" - }, - "overrides": [] - }, - "gridPos": { - "h": 3, - "w": 5, - "x": 19, - "y": 1 - }, - "id": 16, - "interval": null, - "links": [], - "maxDataPoints": 100, - "options": { - "colorMode": "value", - "graphMode": "none", - "justifyMode": "auto", - "orientation": "horizontal", - "reduceOptions": { - "calcs": [ - "lastNotNull" - ], - "fields": "/^host_name$/", - "values": false - }, - "text": {}, - "textMode": "auto" - }, - "pluginVersion": "7.5.5", - "targets": [ - { - "expr": "max(oracledb_instance_dummy) by (host_name)", - "format": "table", - "instant": true, - "refId": "A" - } - ], - "timeFrom": null, - "timeShift": null, - "title": "Host Name", - "type": "stat" - }, - { - "cacheTimeout": null, - "colorBackground": false, - "colorPostfix": false, - "colorPrefix": false, - "colorValue": false, - "colors": [ - "#73BF69", - "rgba(237, 129, 40, 0.89)", - "#d44a3a" - ], - "datasource": null, - "fieldConfig": { - "defaults": {}, - "overrides": [] - }, - "format": "none", - "gauge": { - "maxValue": 100, - "minValue": 0, - "show": false, - "thresholdLabels": false, - "thresholdMarkers": true - }, - "gridPos": { - "h": 3, - "w": 12, - "x": 0, - "y": 4 - }, - "id": 18, - "interval": null, - "links": [], - "mappingType": 1, - "mappingTypes": [ - { - "$$hashKey": "object:1519", - "name": "value to text", - "value": 1 - }, - { - "$$hashKey": "object:1520", - "name": "range to text", - "value": 2 - } - ], - "maxDataPoints": 100, - "nullPointMode": "connected", - "nullText": null, - "postfix": "", - "postfixFontSize": "50%", - "prefix": "", - "prefixFontSize": "50%", - "rangeMaps": [ - { - "from": "null", - "text": "N/A", - "to": "null" - } - ], - "sparkline": { - "fillColor": "rgba(31, 118, 189, 0.18)", - "full": false, - "lineColor": "rgb(31, 120, 193)", - "show": false, - "ymax": null, - "ymin": null - }, - "tableColumn": "uptime", - "targets": [ - { - "exemplar": true, - "expr": "max(oracledb_instance_dummy) by (uptime)", - "format": "table", - "instant": false, - "interval": "", - "legendFormat": "", - "refId": "A" - } - ], - "thresholds": "", - "timeFrom": null, - "timeShift": null, - "title": "Uptime", - "type": "singlestat", - "valueFontSize": "70%", - "valueMaps": [], - "valueName": "current" - }, - { - "cacheTimeout": null, - "colorBackground": false, - "colorPostfix": false, - "colorPrefix": false, - "colorValue": true, - "colors": [ - "#73BF69", - "rgba(237, 129, 40, 0.89)", - "#d44a3a" - ], - "datasource": null, - "fieldConfig": { - "defaults": {}, - "overrides": [] - }, - "format": "none", - "gauge": { - "maxValue": 100, - "minValue": 0, - "show": false, - "thresholdLabels": false, - "thresholdMarkers": true - }, - "gridPos": { - "h": 3, - "w": 12, - "x": 12, - "y": 4 - }, - "id": 17, - "interval": null, - "links": [], - "mappingType": 1, - "mappingTypes": [ - { - "$$hashKey": "object:281", - "name": "value to text", - "value": 1 - }, - { - "$$hashKey": "object:282", - "name": "range to text", - "value": 2 - } - ], - "maxDataPoints": 100, - "nullPointMode": "connected", - "nullText": null, - "postfix": "", - "postfixFontSize": "50%", - "prefix": "", - "prefixFontSize": "50%", - "rangeMaps": [ - { - "from": "null", - "text": "N/A", - "to": "null" - } - ], - "sparkline": { - "fillColor": "rgba(31, 118, 189, 0.18)", - "full": false, - "lineColor": "rgb(31, 120, 193)", - "show": false, - "ymax": null, - "ymin": null - }, - "tableColumn": "stime", - "targets": [ - { - "expr": "max(oracledb_instance_dummy) by (stime)", - "format": "table", - "instant": true, - "legendFormat": "", - "refId": "A" - } - ], - "thresholds": "", - "timeFrom": null, - "timeShift": null, - "title": "Startup Time", - "type": "singlestat", - "valueFontSize": "80%", - "valueMaps": [], - "valueName": "current" - }, - { - "collapsed": false, - "datasource": null, - "gridPos": { - "h": 1, - "w": 24, - "x": 0, - "y": 7 - }, - "id": 52, - "panels": [], - "title": "CPU and Memory", - "type": "row" - }, - { - "cacheTimeout": null, - "colorBackground": false, - "colorValue": true, - "colors": [ - "#37872D", - "rgba(237, 129, 40, 0.89)", - "rgba(50, 172, 45, 0.97)" - ], - "datasource": "Prometheus", - "editable": true, - "error": false, - "fieldConfig": { - "defaults": {}, - "overrides": [] - }, - "format": "none", - "gauge": { - "maxValue": 100, - "minValue": 0, - "show": false, - "thresholdLabels": false, - "thresholdMarkers": true - }, - "gridPos": { - "h": 4, - "w": 6, - "x": 0, - "y": 8 - }, - "height": "125px", - "id": 4, - "interval": "", - "links": [], - "mappingType": 1, - "mappingTypes": [ - { - "$$hashKey": "object:350", - "name": "value to text", - "value": 1 - }, - { - "$$hashKey": "object:351", - "name": "range to text", - "value": 2 - } - ], - "maxDataPoints": 100, - "nullPointMode": "connected", - "nullText": null, - "postfix": "", - "postfixFontSize": "100%", - "prefix": "", - "prefixFontSize": "100%", - "rangeMaps": [ - { - "from": "null", - "text": "N/A", - "to": "null" - } - ], - "sparkline": { - "fillColor": "rgba(31, 118, 189, 0.18)", - "full": false, - "lineColor": "rgb(31, 120, 193)", - "show": false - }, - "tableColumn": "", - "targets": [ - { - "exemplar": true, - "expr": "oracledb_os_value{stat_name=\"NUM_CPUS\"}", - "format": "time_series", - "instant": true, - "interval": "", - "intervalFactor": 1, - "legendFormat": "", - "refId": "A", - "step": 300 - } - ], - "thresholds": "", - "title": "Number of CPUs", - "type": "singlestat", - "valueFontSize": "120%", - "valueMaps": [ - { - "$$hashKey": "object:353", - "op": "=", - "text": "N/A", - "value": "null" - } - ], - "valueName": "current" - }, - { - "datasource": null, - "fieldConfig": { - "defaults": { - "color": { - "mode": "thresholds" - }, - "displayName": "", - "mappings": [], - "max": 1, - "min": 0, - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null - }, - { - "color": "#EAB839", - "value": 0.5 - }, - { - "color": "red", - "value": 0.8 - } - ] - }, - "unit": "percentunit" - }, - "overrides": [] - }, - "gridPos": { - "h": 8, - "w": 6, - "x": 6, - "y": 8 - }, - "id": 33, - "options": { - "orientation": "auto", - "reduceOptions": { - "calcs": [ - "lastNotNull" - ], - "fields": "", - "values": false - }, - "showThresholdLabels": true, - "showThresholdMarkers": true, - "text": {} - }, - "pluginVersion": "7.5.5", - "targets": [ - { - "expr": "rate(oracledb_os_value{stat_name=\"BUSY_TIME\"}[2m]) / ignoring(stat_name) oracledb_os_value{stat_name=\"NUM_CPUS\"} / ignoring(stat_name) rate(job:os:total_cpu_elpased_time[2m])", - "instant": true, - "refId": "A" - } - ], - "timeFrom": null, - "timeShift": null, - "title": "DB CPU Usage", - "type": "gauge" - }, - { - "aliasColors": {}, - "bars": false, - "dashLength": 10, - "dashes": false, - "datasource": null, - "decimals": 2, - "description": "BUSY_TIME: Number of hundredths of a second that a processor has been busy executing user or kernel code, totalled over all processors\n\nIO_WAIT_TIME: Number of hundredths of a second that a processor has been waiting for I/O to complete, totalled over all processors\n\nSYS_TIME: Number of hundredths of a second that a processor has been busy executing kernel code, totalled over all processors\n\nUSER_TIME: Number of hundredths of a second that a processor has been busy executing user code, totalled over all processors\n\nNICE_TIME: Number of hundredths of a second that a processor has been busy executing low-priority user code, totalled over all processors\n\n", - "fieldConfig": { - "defaults": { - "links": [] - }, - "overrides": [] - }, - "fill": 6, - "fillGradient": 2, - "gridPos": { - "h": 13, - "w": 12, - "x": 12, - "y": 8 - }, - "hiddenSeries": false, - "id": 8, - "legend": { - "alignAsTable": true, - "avg": true, - "current": true, - "hideEmpty": false, - "hideZero": false, - "max": true, - "min": true, - "rightSide": false, - "show": true, - "sideWidth": null, - "total": false, - "values": true - }, - "lines": true, - "linewidth": 1, - "links": [ - { - "targetBlank": true, - "title": "Introduction to each statistic name", - "url": "https://docs.oracle.com/en/database/oracle/oracle-database/19/refrn/V-OSSTAT.html#GUID-E1E48692-47FA-4AE3-9402-82477E66FFC0" - } - ], - "nullPointMode": "null", - "options": { - "alertThreshold": true - }, - "percentage": false, - "pluginVersion": "7.5.5", - "pointradius": 2, - "points": false, - "renderer": "flot", - "seriesOverrides": [], - "spaceLength": 10, - "stack": false, - "steppedLine": false, - "targets": [ - { - "expr": "rate(oracledb_os_value{stat_name=\"BUSY_TIME\"}[2m]) / ignoring(stat_name) oracledb_os_value{stat_name=\"NUM_CPUS\"} / ignoring(stat_name) rate(job:os:total_cpu_elpased_time[2m])", - "instant": false, - "intervalFactor": 1, - "legendFormat": "busy", - "refId": "A" - }, - { - "expr": "rate(oracledb_os_value{stat_name=\"IOWAIT_TIME\"}[2m]) / ignoring(stat_name) rate(job:os:total_cpu_elpased_time[2m])", - "legendFormat": "iowait", - "refId": "B" - }, - { - "expr": "rate(oracledb_os_value{stat_name=\"SYS_TIME\"}[2m]) / ignoring(stat_name) rate(job:os:total_cpu_elpased_time[2m])", - "legendFormat": "sys", - "refId": "C" - }, - { - "expr": "rate(oracledb_os_value{stat_name=\"USER_TIME\"}[2m]) / ignoring(stat_name) rate(job:os:total_cpu_elpased_time[2m])", - "legendFormat": "user", - "refId": "D" - }, - { - "expr": "rate(oracledb_os_value{stat_name=\"NICE_TIME\"}[2m]) / ignoring(stat_name) rate(job:os:total_cpu_elpased_time[2m])", - "legendFormat": "nice", - "refId": "E" - } - ], - "thresholds": [], - "timeFrom": null, - "timeRegions": [], - "timeShift": null, - "title": "CPU Usage", - "tooltip": { - "shared": true, - "sort": 2, - "value_type": "individual" - }, - "type": "graph", - "xaxis": { - "buckets": null, - "mode": "time", - "name": null, - "show": true, - "values": [] - }, - "yaxes": [ - { - "$$hashKey": "object:3194", - "decimals": 2, - "format": "percentunit", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": true - }, - { - "$$hashKey": "object:3195", - "decimals": 5, - "format": "percent", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": false - } - ], - "yaxis": { - "align": false, - "alignLevel": null - } - }, - { - "cacheTimeout": null, - "colorBackground": false, - "colorValue": true, - "colors": [ - "rgba(50, 172, 45, 0.97)", - "rgba(237, 129, 40, 0.89)", - "#FADE2A" - ], - "datasource": "Prometheus", - "editable": true, - "error": false, - "fieldConfig": { - "defaults": {}, - "overrides": [] - }, - "format": "none", - "gauge": { - "maxValue": 100, - "minValue": 0, - "show": false, - "thresholdLabels": false, - "thresholdMarkers": true - }, - "gridPos": { - "h": 4, - "w": 6, - "x": 0, - "y": 12 - }, - "height": "125px", - "id": 11, - "interval": "", - "links": [], - "mappingType": 1, - "mappingTypes": [ - { - "name": "value to text", - "value": 1 - }, - { - "name": "range to text", - "value": 2 - } - ], - "maxDataPoints": 100, - "nullPointMode": "connected", - "nullText": null, - "postfix": "", - "postfixFontSize": "50%", - "prefix": "", - "prefixFontSize": "80%", - "rangeMaps": [ - { - "from": "null", - "text": "N/A", - "to": "null" - } - ], - "sparkline": { - "fillColor": "rgba(31, 118, 189, 0.18)", - "full": false, - "lineColor": "rgb(31, 120, 193)", - "show": false - }, - "tableColumn": "", - "targets": [ - { - "expr": "oracledb_os_value{stat_name=\"NUM_CPU_CORES\"}", - "format": "time_series", - "instant": true, - "interval": "", - "intervalFactor": 1, - "legendFormat": "", - "refId": "A", - "step": 300 - } - ], - "thresholds": "", - "title": "Number of CPU Cores", - "type": "singlestat", - "valueFontSize": "120%", - "valueMaps": [ - { - "op": "=", - "text": "N/A", - "value": "null" - } - ], - "valueName": "current" - }, - { - "cacheTimeout": null, - "colorBackground": false, - "colorValue": false, - "colors": [ - "#73BF69", - "rgba(237, 129, 40, 0.89)", - "#d44a3a" - ], - "datasource": null, - "decimals": null, - "fieldConfig": { - "defaults": {}, - "overrides": [] - }, - "format": "bytes", - "gauge": { - "maxValue": 100, - "minValue": 0, - "show": false, - "thresholdLabels": false, - "thresholdMarkers": true - }, - "gridPos": { - "h": 5, - "w": 6, - "x": 0, - "y": 16 - }, - "id": 35, - "interval": null, - "links": [], - "mappingType": 1, - "mappingTypes": [ - { - "name": "value to text", - "value": 1 - }, - { - "name": "range to text", - "value": 2 - } - ], - "maxDataPoints": 100, - "nullPointMode": "connected", - "nullText": null, - "postfix": "", - "postfixFontSize": "50%", - "prefix": "", - "prefixFontSize": "50%", - "rangeMaps": [ - { - "from": "null", - "text": "N/A", - "to": "null" - } - ], - "sparkline": { - "fillColor": "rgba(31, 118, 189, 0.18)", - "full": false, - "lineColor": "rgb(31, 120, 193)", - "show": false, - "ymax": null, - "ymin": null - }, - "tableColumn": "", - "targets": [ - { - "expr": "oracledb_os_value{stat_name=\"PHYSICAL_MEMORY_BYTES\"} ", - "instant": true, - "refId": "A" - } - ], - "thresholds": "", - "timeFrom": null, - "timeShift": null, - "title": "Total Physical Memory(OS)", - "type": "singlestat", - "valueFontSize": "150%", - "valueMaps": [ - { - "op": "=", - "text": "N/A", - "value": "null" - } - ], - "valueName": "current" - }, - { - "cacheTimeout": null, - "colorBackground": false, - "colorValue": false, - "colors": [ - "#73BF69", - "rgba(237, 129, 40, 0.89)", - "#d44a3a" - ], - "datasource": null, - "fieldConfig": { - "defaults": {}, - "overrides": [] - }, - "format": "bytes", - "gauge": { - "maxValue": 100, - "minValue": 0, - "show": false, - "thresholdLabels": false, - "thresholdMarkers": true - }, - "gridPos": { - "h": 5, - "w": 6, - "x": 6, - "y": 16 - }, - "id": 39, - "interval": null, - "links": [ - { - "targetBlank": true, - "title": "V$SGASTAT displays detailed information on the system global area (SGA).", - "url": "https://docs.oracle.com/en/database/oracle/oracle-database/19/refrn/V-SGASTAT.html#GUID-60D2578E-2293-45F5-91C1-35FDF047E520" - } - ], - "mappingType": 1, - "mappingTypes": [ - { - "$$hashKey": "object:2102", - "name": "value to text", - "value": 1 - }, - { - "$$hashKey": "object:2103", - "name": "range to text", - "value": 2 - } - ], - "maxDataPoints": 100, - "nullPointMode": "connected", - "nullText": null, - "postfix": "", - "postfixFontSize": "50%", - "prefix": "", - "prefixFontSize": "50%", - "rangeMaps": [ - { - "from": "null", - "text": "N/A", - "to": "null" - } - ], - "sparkline": { - "fillColor": "rgba(31, 118, 189, 0.18)", - "full": false, - "lineColor": "rgb(31, 120, 193)", - "show": false, - "ymax": null, - "ymin": null - }, - "tableColumn": "", - "targets": [ - { - "expr": "oracledb_sga_total_b", - "instant": true, - "refId": "A" - } - ], - "thresholds": "", - "timeFrom": null, - "timeShift": null, - "title": "SGA Total Memory", - "type": "singlestat", - "valueFontSize": "120%", - "valueMaps": [ - { - "$$hashKey": "object:2105", - "op": "=", - "text": "N/A", - "value": "null" - } - ], - "valueName": "current" - }, - { - "cacheTimeout": null, - "datasource": "Prometheus", - "fieldConfig": { - "defaults": { - "color": { - "mode": "thresholds" - }, - "mappings": [], - "max": 1, - "min": 0, - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null - }, - { - "color": "#EAB839", - "value": 0.5 - }, - { - "color": "red", - "value": 0.8 - } - ] - }, - "unit": "percentunit" - }, - "overrides": [] - }, - "gridPos": { - "h": 7, - "w": 6, - "x": 0, - "y": 21 - }, - "id": 12, - "links": [], - "options": { - "orientation": "horizontal", - "reduceOptions": { - "calcs": [ - "lastNotNull" - ], - "fields": "", - "values": false - }, - "showThresholdLabels": true, - "showThresholdMarkers": true, - "text": {} - }, - "pluginVersion": "7.5.5", - "targets": [ - { - "expr": "oracledb_os_value{stat_name=\"FREE_MEMORY_BYTES\"} / ignoring(stat_name) oracledb_os_value{stat_name=\"PHYSICAL_MEMORY_BYTES\"}", - "format": "time_series", - "instant": true, - "interval": "", - "intervalFactor": 1, - "legendFormat": "", - "refId": "A", - "step": 300 - } - ], - "title": "Memory Usage(OS)", - "type": "gauge" - }, - { - "datasource": null, - "fieldConfig": { - "defaults": { - "color": { - "mode": "thresholds" - }, - "mappings": [], - "max": 1, - "min": 0, - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null - }, - { - "color": "red", - "value": 0.8 - } - ] - }, - "unit": "percentunit" - }, - "overrides": [] - }, - "gridPos": { - "h": 7, - "w": 6, - "x": 6, - "y": 21 - }, - "id": 41, - "options": { - "orientation": "auto", - "reduceOptions": { - "calcs": [ - "lastNotNull" - ], - "fields": "", - "values": false - }, - "showThresholdLabels": true, - "showThresholdMarkers": true, - "text": {} - }, - "pluginVersion": "7.5.5", - "targets": [ - { - "expr": "oracledb_sga_used_b / ignoring(inst_id) oracledb_sga_total_b", - "instant": true, - "refId": "A" - } - ], - "timeFrom": null, - "timeShift": null, - "title": "SGA Memory Usage", - "type": "gauge" - }, - { - "aliasColors": { - "Load 1m": "dark-orange" - }, - "bars": false, - "dashLength": 10, - "dashes": false, - "datasource": null, - "fieldConfig": { - "defaults": { - "links": [] - }, - "overrides": [] - }, - "fill": 8, - "fillGradient": 0, - "gridPos": { - "h": 7, - "w": 12, - "x": 12, - "y": 21 - }, - "hiddenSeries": false, - "id": 20, - "interval": "", - "legend": { - "alignAsTable": true, - "avg": true, - "current": true, - "max": true, - "min": true, - "rightSide": false, - "show": true, - "total": false, - "values": true - }, - "lines": true, - "linewidth": 1, - "nullPointMode": "null", - "options": { - "alertThreshold": true - }, - "percentage": false, - "pluginVersion": "7.5.5", - "pointradius": 2, - "points": false, - "renderer": "flot", - "seriesOverrides": [ - { - "alias": "sga free", - "color": "#1F60C4" - }, - { - "alias": "sga used", - "color": "#8AB8FF" - } - ], - "spaceLength": 10, - "stack": true, - "steppedLine": false, - "targets": [ - { - "expr": "oracledb_sga_free_b", - "interval": "", - "legendFormat": "sga free", - "refId": "A" - }, - { - "expr": "oracledb_sga_used_b", - "legendFormat": "sga used", - "refId": "B" - } - ], - "thresholds": [], - "timeFrom": null, - "timeRegions": [], - "timeShift": null, - "title": "SGA Memory", - "tooltip": { - "shared": true, - "sort": 0, - "value_type": "individual" - }, - "type": "graph", - "xaxis": { - "buckets": null, - "mode": "time", - "name": null, - "show": true, - "values": [] - }, - "yaxes": [ - { - "format": "decbytes", - "label": "", - "logBase": 1, - "max": null, - "min": "0", - "show": true - }, - { - "format": "short", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": false - } - ], - "yaxis": { - "align": false, - "alignLevel": null - } - }, - { - "aliasColors": { - "Load 1m": "dark-orange" - }, - "bars": false, - "dashLength": 10, - "dashes": false, - "datasource": null, - "fieldConfig": { - "defaults": { - "links": [] - }, - "overrides": [] - }, - "fill": 5, - "fillGradient": 0, - "gridPos": { - "h": 7, - "w": 12, - "x": 0, - "y": 28 - }, - "hiddenSeries": false, - "id": 26, - "interval": "", - "legend": { - "alignAsTable": true, - "avg": true, - "current": true, - "max": true, - "min": true, - "rightSide": false, - "show": true, - "total": false, - "values": true - }, - "lines": true, - "linewidth": 1, - "nullPointMode": "null", - "options": { - "alertThreshold": true - }, - "percentage": false, - "pluginVersion": "7.5.5", - "pointradius": 2, - "points": false, - "renderer": "flot", - "seriesOverrides": [ - { - "alias": "read", - "color": "#96D98D" - }, - { - "alias": "write", - "color": "#FADE2A" - } - ], - "spaceLength": 10, - "stack": true, - "steppedLine": false, - "targets": [ - { - "exemplar": true, - "expr": "rate(oracledb_system_stat_value{name=\"physical read total bytes\"}[5m])", - "instant": false, - "interval": "", - "legendFormat": "read", - "refId": "A" - }, - { - "exemplar": true, - "expr": "rate(oracledb_system_stat_value{name=\"physical write total bytes\"}[5m])", - "instant": false, - "interval": "", - "legendFormat": "write", - "refId": "B" - } - ], - "thresholds": [], - "timeFrom": null, - "timeRegions": [], - "timeShift": null, - "title": "Total Physical Read/Write Rate", - "tooltip": { - "shared": true, - "sort": 0, - "value_type": "individual" - }, - "type": "graph", - "xaxis": { - "buckets": null, - "mode": "time", - "name": null, - "show": true, - "values": [] - }, - "yaxes": [ - { - "format": "Bps", - "label": "", - "logBase": 1, - "max": null, - "min": null, - "show": true - }, - { - "format": "short", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": false - } - ], - "yaxis": { - "align": false, - "alignLevel": null - } - }, - { - "aliasColors": {}, - "bars": false, - "dashLength": 10, - "dashes": false, - "datasource": null, - "fieldConfig": { - "defaults": { - "links": [] - }, - "overrides": [] - }, - "fill": 2, - "fillGradient": 0, - "gridPos": { - "h": 7, - "w": 12, - "x": 12, - "y": 28 - }, - "hiddenSeries": false, - "id": 37, - "legend": { - "alignAsTable": true, - "avg": true, - "current": true, - "max": true, - "min": true, - "show": true, - "total": false, - "values": true - }, - "lines": true, - "linewidth": 1, - "nullPointMode": "null", - "options": { - "alertThreshold": true - }, - "percentage": false, - "pluginVersion": "7.5.5", - "pointradius": 2, - "points": false, - "renderer": "flot", - "seriesOverrides": [ - { - "alias": "read", - "color": "#C4162A" - }, - { - "alias": "write", - "color": "#37872D" - } - ], - "spaceLength": 10, - "stack": true, - "steppedLine": false, - "targets": [ - { - "exemplar": true, - "expr": "rate(oracledb_system_stat_value{name=\"physical read total IO requests\"}[5m])", - "interval": "", - "legendFormat": "read", - "refId": "A" - }, - { - "exemplar": true, - "expr": "rate(oracledb_system_stat_value{name=\"physical write total IO requests\"}[5m])", - "interval": "", - "legendFormat": "write", - "refId": "B" - } - ], - "thresholds": [], - "timeFrom": null, - "timeRegions": [], - "timeShift": null, - "title": "Total Physical Read/Write IO Request Rate", - "tooltip": { - "shared": true, - "sort": 0, - "value_type": "individual" - }, - "type": "graph", - "xaxis": { - "buckets": null, - "mode": "time", - "name": null, - "show": true, - "values": [] - }, - "yaxes": [ - { - "format": "short", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": true - }, - { - "format": "short", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": true - } - ], - "yaxis": { - "align": false, - "alignLevel": null - } - }, - { - "collapsed": false, - "datasource": null, - "gridPos": { - "h": 1, - "w": 24, - "x": 0, - "y": 35 - }, - "id": 54, - "panels": [], - "title": "Session", - "type": "row" - }, - { - "cacheTimeout": null, - "colorBackground": false, - "colorValue": true, - "colors": [ - "#73BF69", - "rgba(237, 129, 40, 0.89)", - "#d44a3a" - ], - "datasource": null, - "fieldConfig": { - "defaults": {}, - "overrides": [] - }, - "format": "none", - "gauge": { - "maxValue": 100, - "minValue": 0, - "show": false, - "thresholdLabels": false, - "thresholdMarkers": true - }, - "gridPos": { - "h": 3, - "w": 6, - "x": 0, - "y": 36 - }, - "id": 28, - "interval": null, - "links": [], - "mappingType": 1, - "mappingTypes": [ - { - "name": "value to text", - "value": 1 - }, - { - "name": "range to text", - "value": 2 - } - ], - "maxDataPoints": 100, - "nullPointMode": "connected", - "nullText": null, - "postfix": "", - "postfixFontSize": "50%", - "prefix": "", - "prefixFontSize": "50%", - "rangeMaps": [ - { - "from": "null", - "text": "N/A", - "to": "null" - } - ], - "sparkline": { - "fillColor": "rgba(31, 118, 189, 0.18)", - "full": false, - "lineColor": "rgb(31, 120, 193)", - "show": true, - "ymax": null, - "ymin": null - }, - "tableColumn": "", - "targets": [ - { - "expr": "oracledb_session_value{status=\"ACTIVE\", type=\"USER\"}", - "instant": true, - "refId": "A" - } - ], - "thresholds": "", - "timeFrom": null, - "timeShift": null, - "title": "Active User Session", - "type": "singlestat", - "valueFontSize": "150%", - "valueMaps": [ - { - "op": "=", - "text": "N/A", - "value": "null" - } - ], - "valueName": "current" - }, - { - "aliasColors": { - "Load 1m": "dark-orange" - }, - "bars": true, - "dashLength": 10, - "dashes": false, - "datasource": null, - "fieldConfig": { - "defaults": { - "links": [] - }, - "overrides": [] - }, - "fill": 1, - "fillGradient": 0, - "gridPos": { - "h": 9, - "w": 10, - "x": 6, - "y": 36 - }, - "hiddenSeries": false, - "id": 22, - "interval": "", - "legend": { - "alignAsTable": true, - "avg": true, - "current": false, - "max": true, - "min": true, - "rightSide": false, - "show": true, - "total": false, - "values": true - }, - "lines": true, - "linewidth": 2, - "nullPointMode": "null", - "options": { - "alertThreshold": true - }, - "percentage": false, - "pluginVersion": "7.5.5", - "pointradius": 2, - "points": false, - "renderer": "flot", - "seriesOverrides": [ - { - "$$hashKey": "object:2215", - "alias": "active background", - "color": "#C4162A" - }, - { - "$$hashKey": "object:2216", - "alias": "active user", - "color": "#FA6400" - }, - { - "$$hashKey": "object:2217", - "alias": "inactive user", - "color": "rgb(19, 195, 189)" - } - ], - "spaceLength": 10, - "stack": false, - "steppedLine": false, - "targets": [ - { - "expr": "oracledb_session_value{status=\"ACTIVE\", type=\"BACKGROUND\"}", - "interval": "", - "legendFormat": "active background", - "refId": "A" - }, - { - "expr": "oracledb_session_value{status=\"ACTIVE\", type=\"USER\"}", - "legendFormat": "active user", - "refId": "B" - }, - { - "expr": "oracledb_session_value{status=\"INACTIVE\", type=\"USER\"}", - "legendFormat": "inactive user", - "refId": "C" - } - ], - "thresholds": [], - "timeFrom": null, - "timeRegions": [], - "timeShift": null, - "title": "Session", - "tooltip": { - "shared": true, - "sort": 0, - "value_type": "individual" - }, - "type": "graph", - "xaxis": { - "buckets": null, - "mode": "time", - "name": null, - "show": true, - "values": [] - }, - "yaxes": [ - { - "format": "none", - "label": "", - "logBase": 1, - "max": null, - "min": "0", - "show": true - }, - { - "format": "short", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": false - } - ], - "yaxis": { - "align": false, - "alignLevel": null - } - }, - { - "datasource": null, - "fieldConfig": { - "defaults": { - "color": { - "mode": "thresholds" - }, - "custom": { - "align": null, - "filterable": false - }, - "decimals": 0, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null - }, - { - "color": "red", - "value": 80 - } - ] - }, - "unit": "none" - }, - "overrides": [ - { - "matcher": { - "id": "byName", - "options": "Time" - }, - "properties": [ - { - "id": "displayName", - "value": "Time" - }, - { - "id": "unit", - "value": "time: YYYY-MM-DD HH:mm:ss" - }, - { - "id": "custom.align", - "value": null - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "Value #A" - }, - "properties": [ - { - "id": "displayName", - "value": "Count" - } - ] - } - ] - }, - "gridPos": { - "h": 9, - "w": 8, - "x": 16, - "y": 36 - }, - "id": 43, - "options": { - "frameIndex": 0, - "showHeader": true - }, - "pluginVersion": "7.5.5", - "targets": [ - { - "exemplar": true, - "expr": "oracledb_session_mvalue{inst_id=\"[[Instance]]\"}", - "format": "table", - "instant": true, - "interval": "", - "intervalFactor": 1, - "legendFormat": "", - "refId": "A" - } - ], - "timeFrom": null, - "timeShift": null, - "title": "Sessions by Machine", - "transformations": [ - { - "id": "filterFieldsByName", - "options": { - "include": { - "names": [ - "Time", - "machine", - "status", - "type", - "Value #A" - ] - } - } - } - ], - "type": "table" - }, - { - "cacheTimeout": null, - "datasource": null, - "fieldConfig": { - "defaults": { - "color": { - "mode": "fixed" - }, - "mappings": [ - { - "$$hashKey": "object:1328", - "id": 0, - "op": "=", - "text": "0", - "type": 1, - "value": "null" - } - ], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null - }, - { - "color": "red", - "value": 80 - } - ] - }, - "unit": "none" - }, - "overrides": [] - }, - "gridPos": { - "h": 3, - "w": 6, - "x": 0, - "y": 39 - }, - "id": 30, - "interval": null, - "links": [], - "maxDataPoints": 100, - "options": { - "colorMode": "value", - "graphMode": "none", - "justifyMode": "auto", - "orientation": "horizontal", - "reduceOptions": { - "calcs": [ - "lastNotNull" - ], - "fields": "", - "values": false - }, - "text": {}, - "textMode": "auto" - }, - "pluginVersion": "7.5.5", - "targets": [ - { - "exemplar": true, - "expr": "oracledb_session_value{status=\"INACTIVE\", type=\"USER\"}", - "instant": false, - "interval": "", - "legendFormat": "", - "refId": "A" - } - ], - "timeFrom": null, - "timeShift": null, - "title": "Inactive User Session", - "type": "stat" - }, - { - "cacheTimeout": null, - "colorBackground": false, - "colorValue": true, - "colors": [ - "#FF9830", - "rgba(237, 129, 40, 0.89)", - "#d44a3a" - ], - "datasource": null, - "fieldConfig": { - "defaults": {}, - "overrides": [] - }, - "format": "none", - "gauge": { - "maxValue": 100, - "minValue": 0, - "show": false, - "thresholdLabels": false, - "thresholdMarkers": true - }, - "gridPos": { - "h": 3, - "w": 6, - "x": 0, - "y": 42 - }, - "id": 29, - "interval": null, - "links": [], - "mappingType": 1, - "mappingTypes": [ - { - "name": "value to text", - "value": 1 - }, - { - "name": "range to text", - "value": 2 - } - ], - "maxDataPoints": 100, - "nullPointMode": "connected", - "nullText": null, - "postfix": "", - "postfixFontSize": "50%", - "prefix": "", - "prefixFontSize": "50%", - "rangeMaps": [ - { - "from": "null", - "text": "N/A", - "to": "null" - } - ], - "sparkline": { - "fillColor": "rgba(31, 118, 189, 0.18)", - "full": false, - "lineColor": "rgb(31, 120, 193)", - "show": true, - "ymax": null, - "ymin": null - }, - "tableColumn": "", - "targets": [ - { - "expr": "oracledb_session_value{status=\"ACTIVE\", type=\"BACKGROUND\"}", - "instant": true, - "refId": "A" - } - ], - "thresholds": "", - "timeFrom": null, - "timeShift": null, - "title": "Active Background Session", - "type": "singlestat", - "valueFontSize": "150%", - "valueMaps": [ - { - "op": "=", - "text": "N/A", - "value": "null" - } - ], - "valueName": "current" - }, - { - "collapsed": false, - "datasource": null, - "gridPos": { - "h": 1, - "w": 24, - "x": 0, - "y": 45 - }, - "id": 56, - "panels": [], - "title": "User Activity", - "type": "row" - }, - { - "aliasColors": {}, - "bars": false, - "dashLength": 10, - "dashes": false, - "datasource": null, - "fieldConfig": { - "defaults": { - "links": [] - }, - "overrides": [] - }, - "fill": 2, - "fillGradient": 0, - "gridPos": { - "h": 13, - "w": 12, - "x": 0, - "y": 46 - }, - "hiddenSeries": false, - "id": 45, - "legend": { - "alignAsTable": true, - "avg": true, - "current": true, - "max": true, - "min": true, - "rightSide": false, - "show": true, - "total": false, - "values": true - }, - "lines": true, - "linewidth": 1, - "nullPointMode": "null", - "options": { - "alertThreshold": true - }, - "percentage": false, - "pluginVersion": "7.5.5", - "pointradius": 2, - "points": false, - "renderer": "flot", - "seriesOverrides": [], - "spaceLength": 10, - "stack": false, - "steppedLine": false, - "targets": [ - { - "exemplar": true, - "expr": "rate(oracledb_system_stat_value{name=\"user calls\"}[2m])", - "interval": "", - "legendFormat": "{{name}}", - "refId": "A" - }, - { - "exemplar": true, - "expr": "rate(oracledb_system_stat_value{name=\"user commits\"}[2m])", - "interval": "", - "legendFormat": "{{name}}", - "refId": "B" - }, - { - "expr": "rate(oracledb_system_value{name=\"user rollbacks\"}[2m])", - "legendFormat": "{{name}}", - "refId": "C" - }, - { - "expr": "rate(oracledb_system_value{name=\"execute count\"}[2m])", - "legendFormat": "{{name}}", - "refId": "D" - } - ], - "thresholds": [], - "timeFrom": null, - "timeRegions": [], - "timeShift": null, - "title": "User Activity Rate", - "tooltip": { - "shared": false, - "sort": 2, - "value_type": "individual" - }, - "type": "graph", - "xaxis": { - "buckets": null, - "mode": "time", - "name": null, - "show": true, - "values": [] - }, - "yaxes": [ - { - "format": "none", - "label": "requests per minute", - "logBase": 1, - "max": null, - "min": null, - "show": true - }, - { - "format": "short", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": true - } - ], - "yaxis": { - "align": false, - "alignLevel": null - } - }, - { - "aliasColors": { - "Load 1m": "dark-orange" - }, - "bars": true, - "dashLength": 10, - "dashes": false, - "datasource": null, - "decimals": 2, - "fieldConfig": { - "defaults": { - "links": [] - }, - "overrides": [] - }, - "fill": 6, - "fillGradient": 2, - "gridPos": { - "h": 13, - "w": 12, - "x": 12, - "y": 46 - }, - "hiddenSeries": false, - "id": 24, - "interval": "", - "legend": { - "alignAsTable": true, - "avg": true, - "current": false, - "max": true, - "min": true, - "rightSide": false, - "show": true, - "total": false, - "values": true - }, - "lines": false, - "linewidth": 2, - "nullPointMode": "null", - "options": { - "alertThreshold": true - }, - "percentage": false, - "pluginVersion": "7.5.5", - "pointradius": 2, - "points": false, - "renderer": "flot", - "seriesOverrides": [], - "spaceLength": 10, - "stack": true, - "steppedLine": false, - "targets": [ - { - "exemplar": true, - "expr": "increase(oracledb_system_stat_value{name=\"execute count\"}[1h])", - "instant": false, - "interval": "1h", - "legendFormat": "execute count", - "refId": "A" - }, - { - "exemplar": true, - "expr": "increase(oracledb_system_stat_value{name=\"user calls\"}[1h])", - "instant": false, - "interval": "1h", - "legendFormat": "user calls", - "refId": "B" - }, - { - "expr": "increase(oracledb_system_value{name=\"user commits\"}[1h])", - "interval": "1h", - "legendFormat": "user commits", - "refId": "C" - }, - { - "expr": "increase(oracledb_system_value{name=\"user rollbacks\"}[1h])", - "interval": "1h", - "legendFormat": "rollbacks", - "refId": "D" - } - ], - "thresholds": [], - "timeFrom": null, - "timeRegions": [], - "timeShift": null, - "title": "User Activity Hourly", - "tooltip": { - "shared": true, - "sort": 0, - "value_type": "individual" - }, - "type": "graph", - "xaxis": { - "buckets": null, - "min": null, - "mode": "time", - "name": null, - "show": true, - "values": [] - }, - "yaxes": [ - { - "format": "short", - "label": "", - "logBase": 1, - "max": null, - "min": "0", - "show": true - }, - { - "format": "short", - "label": null, - "logBase": 1, - "max": null, - "min": "0", - "show": true - } - ], - "yaxis": { - "align": false, - "alignLevel": null - } - }, - { - "aliasColors": { - "Load 1m": "dark-orange" - }, - "bars": false, - "dashLength": 10, - "dashes": false, - "datasource": null, - "fieldConfig": { - "defaults": { - "links": [] - }, - "overrides": [] - }, - "fill": 1, - "fillGradient": 0, - "gridPos": { - "h": 12, - "w": 12, - "x": 0, - "y": 59 - }, - "hiddenSeries": false, - "id": 21, - "interval": "", - "legend": { - "alignAsTable": true, - "avg": true, - "current": false, - "max": true, - "min": true, - "rightSide": false, - "show": true, - "total": false, - "values": true - }, - "lines": true, - "linewidth": 1, - "nullPointMode": "null", - "options": { - "alertThreshold": true - }, - "percentage": false, - "pluginVersion": "7.5.5", - "pointradius": 2, - "points": false, - "renderer": "flot", - "seriesOverrides": [ - { - "alias": "inbound", - "color": "#F2495C" - }, - { - "alias": "outbound", - "color": "#B877D9" - } - ], - "spaceLength": 10, - "stack": false, - "steppedLine": false, - "targets": [ - { - "expr": "irate(oracledb_network_received_from_client_b[5m])", - "interval": "", - "legendFormat": "inbound", - "refId": "A" - }, - { - "expr": "irate(oracledb_network_sent_to_client_b[5m])", - "legendFormat": "outbound", - "refId": "B" - } - ], - "thresholds": [], - "timeFrom": null, - "timeRegions": [], - "timeShift": null, - "title": "Network Traffic", - "tooltip": { - "shared": true, - "sort": 0, - "value_type": "individual" - }, - "type": "graph", - "xaxis": { - "buckets": null, - "mode": "time", - "name": null, - "show": true, - "values": [] - }, - "yaxes": [ - { - "format": "Bps", - "label": "", - "logBase": 1, - "max": null, - "min": null, - "show": true - }, - { - "format": "short", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": false - } - ], - "yaxis": { - "align": false, - "alignLevel": null - } - }, - { - "aliasColors": { - "Load 1m": "dark-orange" - }, - "bars": true, - "dashLength": 10, - "dashes": false, - "datasource": null, - "fieldConfig": { - "defaults": { - "links": [] - }, - "overrides": [] - }, - "fill": 1, - "fillGradient": 0, - "gridPos": { - "h": 12, - "w": 12, - "x": 12, - "y": 59 - }, - "hiddenSeries": false, - "id": 25, - "interval": "", - "legend": { - "alignAsTable": true, - "avg": true, - "current": false, - "max": true, - "min": true, - "rightSide": false, - "show": true, - "total": false, - "values": true - }, - "lines": false, - "linewidth": 1, - "nullPointMode": "null", - "options": { - "alertThreshold": true - }, - "percentage": false, - "pluginVersion": "7.5.5", - "pointradius": 2, - "points": false, - "renderer": "flot", - "seriesOverrides": [ - { - "alias": "inbound", - "color": "#F2495C" - }, - { - "alias": "outbound", - "color": "#B877D9" - } - ], - "spaceLength": 10, - "stack": true, - "steppedLine": false, - "targets": [ - { - "expr": "increase(oracledb_network_received_from_client_b[1h])", - "instant": false, - "interval": "1h", - "legendFormat": "inbound", - "refId": "A" - }, - { - "expr": "increase(oracledb_network_sent_to_client_b[1h])", - "instant": false, - "interval": "1h", - "legendFormat": "outbound", - "refId": "B" - } - ], - "thresholds": [], - "timeFrom": null, - "timeRegions": [], - "timeShift": null, - "title": "Network Traffic Hourly", - "tooltip": { - "shared": true, - "sort": 0, - "value_type": "individual" - }, - "type": "graph", - "xaxis": { - "buckets": null, - "mode": "time", - "name": null, - "show": true, - "values": [] - }, - "yaxes": [ - { - "format": "decbytes", - "label": "", - "logBase": 1, - "max": null, - "min": null, - "show": true - }, - { - "format": "short", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": false - } - ], - "yaxis": { - "align": false, - "alignLevel": null - } - }, - { - "collapsed": true, - "datasource": null, - "gridPos": { - "h": 1, - "w": 24, - "x": 0, - "y": 71 - }, - "id": 58, - "panels": [ - { - "datasource": null, - "fieldConfig": { - "defaults": { - "color": { - "mode": "thresholds" - }, - "custom": { - "align": null, - "filterable": false - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null - }, - { - "color": "red", - "value": 80 - } - ] - } - }, - "overrides": [ - { - "matcher": { - "id": "byName", - "options": "Value #A" - }, - "properties": [ - { - "id": "displayName", - "value": "Time Wait Count" - }, - { - "id": "unit", - "value": "short" - }, - { - "id": "decimals", - "value": 0 - }, - { - "id": "custom.align", - "value": null - } - ] - } - ] - }, - "gridPos": { - "h": 20, - "w": 8, - "x": 0, - "y": 11 - }, - "id": 31, - "options": { - "showHeader": true, - "sortBy": [ - { - "desc": true, - "displayName": "wait time (s)" - } - ] - }, - "pluginVersion": "7.5.5", - "targets": [ - { - "exemplar": true, - "expr": "oracledb_system_wait_time_waited / 100", - "format": "table", - "instant": true, - "interval": "", - "intervalFactor": 1, - "legendFormat": "{{wait_class}}", - "refId": "A" - } - ], - "timeFrom": null, - "timeShift": null, - "title": "System: Amount of time spent in the wait class", - "transformations": [ - { - "id": "filterFieldsByName", - "options": { - "include": { - "names": [ - "wait_class", - "Value" - ] - } - } - }, - { - "id": "organize", - "options": { - "excludeByName": {}, - "indexByName": {}, - "renameByName": { - "Value": "wait time (s)", - "wait_class": "wait class" - } - } - } - ], - "type": "table" - }, - { - "datasource": null, - "description": "Seconds spent in the current wait condition", - "fieldConfig": { - "defaults": { - "color": { - "mode": "thresholds" - }, - "custom": { - "align": null, - "filterable": false - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null - }, - { - "color": "red", - "value": 80 - } - ] - } - }, - "overrides": [ - { - "matcher": { - "id": "byName", - "options": "wait time" - }, - "properties": [ - { - "id": "unit" - } - ] - } - ] - }, - "gridPos": { - "h": 20, - "w": 15, - "x": 8, - "y": 11 - }, - "id": 47, - "options": { - "showHeader": true, - "sortBy": [ - { - "desc": true, - "displayName": "wait time (s)" - } - ] - }, - "pluginVersion": "7.5.5", - "targets": [ - { - "exemplar": true, - "expr": "oracledb_session_wait_seconds_in_wait", - "format": "table", - "instant": true, - "interval": "", - "legendFormat": "", - "refId": "A" - } - ], - "timeFrom": null, - "timeShift": null, - "title": "Session: Amount of time spent in the wait class", - "transformations": [ - { - "id": "filterFieldsByName", - "options": { - "include": { - "names": [ - "event", - "state", - "username", - "wait_class", - "Value" - ] - } - } - }, - { - "id": "organize", - "options": { - "excludeByName": {}, - "indexByName": {}, - "renameByName": { - "Value": "wait time (s)" - } - } - } - ], - "type": "table" - } - ], - "title": "Wait Time", - "type": "row" - }, - { - "collapsed": true, - "datasource": null, - "gridPos": { - "h": 1, - "w": 24, - "x": 0, - "y": 72 - }, - "id": 61, - "panels": [ - { - "aliasColors": { - "Load 1m": "dark-orange" - }, - "bars": false, - "dashLength": 10, - "dashes": false, - "datasource": null, - "description": "Number of processes running or waiting on the run queue", - "fieldConfig": { - "defaults": { - "links": [] - }, - "overrides": [] - }, - "fill": 3, - "fillGradient": 0, - "gridPos": { - "h": 9, - "w": 12, - "x": 0, - "y": 12 - }, - "hiddenSeries": false, - "id": 10, - "interval": "", - "legend": { - "alignAsTable": true, - "avg": true, - "current": true, - "max": false, - "min": false, - "rightSide": false, - "show": true, - "total": false, - "values": true - }, - "lines": true, - "linewidth": 1, - "links": [ - { - "targetBlank": true, - "title": "V$OSSTAT", - "url": "https://docs.oracle.com/en/database/oracle/oracle-database/19/refrn/V-OSSTAT.html#GUID-E1E48692-47FA-4AE3-9402-82477E66FFC0" - } - ], - "nullPointMode": "null", - "options": { - "alertThreshold": true - }, - "percentage": false, - "pluginVersion": "7.5.5", - "pointradius": 2, - "points": false, - "renderer": "flot", - "seriesOverrides": [ - { - "$$hashKey": "object:2164", - "alias": "Load 1m", - "color": "rgb(248, 80, 0)" - }, - { - "$$hashKey": "object:2165", - "alias": "Load 5m", - "color": "#FF9830" - }, - { - "$$hashKey": "object:2166", - "alias": "Load 15m", - "color": "#FADE2A" - } - ], - "spaceLength": 10, - "stack": false, - "steppedLine": false, - "targets": [ - { - "exemplar": true, - "expr": " sum(sum_over_time(oracledb_os_value{stat_name=\"LOAD\"}[1m])) / sum(count_over_time(oracledb_os_value{stat_name=\"LOAD\"}[1m]))", - "interval": "", - "legendFormat": "Load 1m", - "refId": "A" - }, - { - "expr": " sum(sum_over_time(oracledb_os_value{stat_name=\"LOAD\"}[5m])) / sum(count_over_time(oracledb_os_value{stat_name=\"LOAD\"}[5m]))", - "legendFormat": "Load 5m", - "refId": "B" - }, - { - "expr": " sum(sum_over_time(oracledb_os_value{stat_name=\"LOAD\"}[15m])) / sum(count_over_time(oracledb_os_value{stat_name=\"LOAD\"}[15m]))", - "legendFormat": "Load 15m", - "refId": "C" - } - ], - "thresholds": [], - "timeFrom": null, - "timeRegions": [], - "timeShift": null, - "title": "Process Load", - "tooltip": { - "shared": true, - "sort": 0, - "value_type": "individual" - }, - "type": "graph", - "xaxis": { - "buckets": null, - "mode": "time", - "name": null, - "show": true, - "values": [] - }, - "yaxes": [ - { - "format": "short", - "label": "", - "logBase": 1, - "max": null, - "min": null, - "show": true - }, - { - "format": "short", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": true - } - ], - "yaxis": { - "align": false, - "alignLevel": null - } - } - ], - "title": "Process", - "type": "row" - } - ], - "refresh": "30s", - "schemaVersion": 27, - "style": "dark", - "tags": [], - "templating": { - "list": [ - { - "allValue": null, - "current": { - "selected": true, - "text": "1", - "value": "1" - }, - "datasource": null, - "definition": "label_values(oracledb_instance_dummy, inst_id)", - "description": null, - "error": null, - "hide": 0, - "includeAll": false, - "label": null, - "multi": false, - "name": "Instance", - "options": [ - { - "selected": true, - "text": "1", - "value": "1" - } - ], - "query": { - "query": "label_values(oracledb_instance_dummy, inst_id)", - "refId": "StandardVariableQuery" - }, - "refresh": 0, - "regex": "", - "skipUrlSync": false, - "sort": 3, - "tagValuesQuery": "", - "tags": [], - "tagsQuery": "", - "type": "query", - "useTags": false - } - ] - }, - "time": { - "from": "now-3h", - "to": "now" - }, - "timepicker": { - "refresh_intervals": [ - "5s", - "10s", - "30s", - "1m", - "5m", - "15m", - "30m", - "1h", - "2h", - "1d" - ] - }, - "timezone": "browser", - "title": "Oracle App-Specific -- Database System Level - v1.1", - "uid": "fjZKiJbgz", - "version": 16 -} diff --git a/docker_vol/prom_app_vol/config.yml b/docker_vol/prom_app_vol/config.yml deleted file mode 100644 index 7d85fa1b..00000000 --- a/docker_vol/prom_app_vol/config.yml +++ /dev/null @@ -1,25 +0,0 @@ -# -# -# Copyright (c) 2021 Oracle and/or its affiliates. -# Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl/ -# -# - -global: - scrape_interval: 30s - scrape_timeout: 30s - evaluation_interval: 30s - -scrape_configs: - - job_name: 'TEQ Monitor' - scheme: https - static_configs: - - targets: ['exporter:9161'] - basic_auth: - username: auth.username - password: auth.password - tls_config: - insecure_skip_verify: true - -rule_files: - - "/etc/prometheus/prometheus_vol/myrules.yml" diff --git a/docker_vol/prom_app_vol/myrules.yml b/docker_vol/prom_app_vol/myrules.yml deleted file mode 100644 index 09c94363..00000000 --- a/docker_vol/prom_app_vol/myrules.yml +++ /dev/null @@ -1,14 +0,0 @@ -# -# -# Copyright (c) 2021 Oracle and/or its affiliates. -# Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl/ -# -# - - -groups: - - name: database-system-rules - rules: - - record: job:os:total_cpu_elpased_time - expr: oracledb_os_value{stat_name="BUSY_TIME"} + ignoring(stat_name) oracledb_os_value{stat_name="IDLE_TIME"} - \ No newline at end of file diff --git a/docker_vol/prom_app_vol/web.yml b/docker_vol/prom_app_vol/web.yml deleted file mode 100644 index c24c7f13..00000000 --- a/docker_vol/prom_app_vol/web.yml +++ /dev/null @@ -1,12 +0,0 @@ -# -# -# Copyright (c) 2021 Oracle and/or its affiliates. -# Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl/ -# -# - -tls_server_config: - cert_file: /localhost.crt - key_file: /localhost.key -basic_auth_users: - mntmgr: prom.auth.pwd diff --git a/examples/oracle-aq-default-metrics.toml b/examples/oracle-aq-default-metrics.toml new file mode 100644 index 00000000..68b0272b --- /dev/null +++ b/examples/oracle-aq-default-metrics.toml @@ -0,0 +1,38 @@ + +[[metric]] +context = "teq" +labels = ["inst_id", "queue_name", "subscriber_name"] +metricsdesc = { enqueued_msgs = "Total enqueued messages.", dequeued_msgs = "Total dequeued messages.", remained_msgs = "Total remained messages.", time_since_last_dequeue = "Time since last dequeue.", estd_time_to_drain_no_enq = "Estimated time to drain if no enqueue.", message_latency_1 = "Message latency for last 5 mins.", message_latency_2 = "Message latency for last 1 hour.", message_latency_3 = "Message latency for last 5 hours."} +request = ''' +SELECT DISTINCT + t1.inst_id, + t1.queue_id, + t2.queue_name, + t1.subscriber_id AS subscriber_name, + t1.enqueued_msgs, + t1.dequeued_msgs, + t1.remained_msgs, + t1.message_latency_1, + t1.message_latency_2, + t1.message_latency_3 +FROM + ( + SELECT + inst_id, + queue_id, + subscriber_id, + SUM(enqueued_msgs) AS enqueued_msgs, + SUM(dequeued_msgs) AS dequeued_msgs, + SUM(enqueued_msgs - dequeued_msgs) AS remained_msgs, + AVG(10) AS message_latency_1, + AVG(20) AS message_latency_2, + AVG(30) AS message_latency_3 + FROM + gv$persistent_subscribers + GROUP BY + queue_id, + subscriber_id, + inst_id + ) t1 + JOIN gv$persistent_queues t2 ON t1.queue_id = t2.queue_id +''' diff --git a/exporter/Dockerfile b/exporter/Dockerfile deleted file mode 100644 index 35ac7518..00000000 --- a/exporter/Dockerfile +++ /dev/null @@ -1,16 +0,0 @@ -# -# -# Copyright (c) 2021 Oracle and/or its affiliates. -# Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl/ -# -# - -FROM oracle-db-monitoring-exporter:0.3.0-oraclelinux - -COPY default-metrics.toml /opt/ -COPY auth_config.yml / -COPY localhost.crt / -COPY localhost.key / - -ENTRYPOINT ["/oracledb_exporter", "--default.metrics", "/opt/default-metrics.toml", "--auth.config", "/auth_config.yml", \ -"--web.secured-metrics", "--web.ssl-server-cert", "/localhost.crt", "--web.ssl-server-key", "/localhost.key","--query.timeout", "60"] diff --git a/exporter/auth_config.yml b/exporter/auth_config.yml deleted file mode 100644 index 5c82fe5a..00000000 --- a/exporter/auth_config.yml +++ /dev/null @@ -1,9 +0,0 @@ -# -# -# Copyright (c) 2021 Oracle and/or its affiliates. -# Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl/ -# -# - -username: auth.username -password: auth.password \ No newline at end of file diff --git a/exporter/default-metrics.toml b/exporter/default-metrics.toml deleted file mode 100644 index 44e30c1d..00000000 --- a/exporter/default-metrics.toml +++ /dev/null @@ -1,733 +0,0 @@ -# -# -# Copyright (c) 2021 Oracle and/or its affiliates. -# Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl/ -# -# - -[[metric]] -context = "database_version" -labels = ["inst_id", "con_id", "banner"] -metricsdesc = { dummy = "full database banner info"} -request = ''' -SELECT - 1 as dummy, - inst_id, - con_id, - banner_full as banner -FROM - sys.gv_$version -''' - -[[metric]] -context = "database_rac" -labels = ["inst_id", "name", "con_id"] -metricsdesc = { dummy = "full database banner info", value = "1 for true, 0 for false if rac"} -request = ''' -SELECT - inst_id, - name, - con_id, - case - when value = 'TRUE' then 1 - when value = 'FALSE' then 0 - end as value -FROM - sys.gv_$parameter -WHERE - name = 'cluster_database' -''' - - -[[metric]] -context = "system_stat" -labels = ["inst_id", "name"] -metricsdesc = { value = "system metric values from sys.gv_$sysstat in user, sql, cache" } -request = ''' -SELECT - inst_id, - name, - value -FROM - sys.gv_$sysstat -WHERE name IN ( - 'user commits', - 'user rollbacks', - 'user calls', - 'execute count', - 'physical read total IO requests', - 'physical write total IO requests', - 'physical read total bytes', - 'physical write total bytes' - ) -''' - -[[metric]] -context = "system_wait" -labels = ["inst_id", "con_id", "wait_class"] -metricsdesc = { total_waits = "Number of times waits of the class occurred", time_waited = "Amount of time spent in the wait by all sessions in the instance" } -request = ''' -SELECT - inst_id, - con_id, - wait_class, - total_waits, - time_waited -FROM - sys.gv_$system_wait_class -''' - - -[[metric]] -context = "system_time" -labels = ["inst_id", "con_id", "stat_name"] -metricsdesc = {value = "system-wide accumulated time(in microseconds) for each operations"} -request = ''' -SELECT - inst_id, - con_id, - stat_name, - value -FROM - sys.gv_$sys_time_model -WHERE stat_name IN ( - 'DB time', - 'DB CPU', - 'SQL execute elapsed time', - 'PL/SQL execution elapsed time', - 'PL/SQL compilation elapsed time', - 'Java execution elapsed time' - ) -''' - - -[[metric]] -context = "sga" -labels = ["inst_id"] -metricsdesc = { used_b = "sga used memory in b", free_b = "sga free memory in b", total_b = "sga total memory in b" } -request = ''' -SELECT - used.inst_id AS inst_id, - used.bytes AS used_b, - free.bytes AS free_b, - total.bytes AS total_b -FROM - ( ( - SELECT - inst_id, - SUM(bytes) bytes - FROM - sys.gv_$sgastat - WHERE - name != 'free memory' - GROUP BY - inst_id - ) used - INNER JOIN ( - SELECT - inst_id, - SUM(bytes) bytes - FROM - sys.gv_$sgastat - WHERE - name = 'free memory' - GROUP BY - inst_id - ) free ON used.inst_id = free.inst_id - INNER JOIN ( - SELECT - inst_id, - SUM(bytes) bytes - FROM - sys.gv_$sgastat - GROUP BY - inst_id - ) total ON free.inst_id = total.inst_id ) -''' - -[[metric]] -context = "network" -labels = ["inst_id"] -metricsdesc = { received_from_client_b = "network traffic received from client in b", sent_to_client_b = "network traffic sent to client in b" } -request = ''' -SELECT - t1.inst_id AS inst_id, - t1.received_from_client AS received_from_client_b, - t2.sent_to_client AS sent_to_client_b -FROM - ( - SELECT - inst_id, - value AS received_from_client - FROM - sys.gv_$sysstat - WHERE - name LIKE '%received via SQL*Net from client%' - ORDER BY - value DESC - ) t1 - LEFT JOIN ( - SELECT - inst_id, - value AS sent_to_client - FROM - sys.gv_$sysstat - WHERE - name LIKE '%sent via SQL*Net to client%' - ORDER BY - value DESC - ) t2 ON t1.inst_id = t2.inst_id -''' - -[[metric]] -context = "instance" -labels = ["inst_id", "host_name", "instance_name", "stime", "uptime", "version_full"] -metricsdesc = { dummy = "do nothing" } -request = ''' -SELECT - 1 as dummy, - inst_id, - host_name, - instance_name, - version_full, - to_char(startup_time, 'DD-MON-YYYY HH24:MI:SS') AS stime, - floor(sysdate - startup_time) - || ' days(s) ' - || trunc(24 *((sysdate - startup_time) - trunc(sysdate - startup_time))) - || ' hour(s) ' AS uptime -FROM - sys.gv_$instance -''' - - - -[[metric]] -context = "session_wait" -labels = ["inst_id", "username", "event", "wait_class", "state"] -metricsdesc = { sid = "Session id", serial_number = "Session serial number", wait_time = "Session's last wait time", seconds_in_wait = "Seconds spent in the current wait condition" } -request = ''' -SELECT - sw.inst_id AS inst_id, - nvl(s.username, '(oracle)') AS username, - s.sid AS sid, - s.serial# AS serial_number, - sw.event AS event, - sw.wait_class AS wait_class, - sw.wait_time AS wait_time, - sw.seconds_in_wait AS seconds_in_wait, - sw.state AS state -FROM - sys.gv_$session_wait sw, - sys.gv_$session s -WHERE - s.sid = sw.sid -ORDER BY - sw.seconds_in_wait DESC -''' - -[[metric]] -context = "session" -labels = ["inst_id", "status", "type"] -metricsdesc = { value = "session metric values from sys.gv_$session with count of sessions by status and type" } -request = ''' -SELECT - inst_id, - status, - type, - COUNT(*) AS value -FROM - sys.gv_$session -GROUP BY - status, - type, - inst_id -''' - -[[metric]] -context = "session" -labels = ["inst_id", "status", "type", "machine"] -metricsdesc = { mvalue = "session count group by connected machine" } -request = ''' -SELECT - inst_id, - status, - machine, - type, - COUNT(*) AS mvalue -FROM - sys.gv_$session -GROUP BY - machine, - STATUS, - type, - inst_id -''' - -[[metric]] -context = "os" -labels = ["inst_id", "stat_name"] -metricsdesc = { value = "os metric values from sys.gv_$osstat" } -request = ''' -SELECT - inst_id, - stat_name, - value -FROM - sys.gv_$osstat -WHERE stat_name IN ( - 'NUM_CPUS', - 'NUM_CPU_CORES', - 'LOAD', - 'IDLE_TIME', - 'BUSY_TIME', - 'USER_TIME', - 'SYS_TIME', - 'IOWAIT_TIME', - 'NICE_TIME', - 'PHYSICAL_MEMORY_BYTES', - 'FREE_MEMORY_BYTES' -) -''' - - -[[metric]] -context = "tablespace" -labels = [ "tablespace", "type" ] -metricsdesc = { bytes = "Generic counter metric of tablespaces bytes in Oracle.", max_bytes = "Generic counter metric of tablespaces max bytes in Oracle.", free = "Generic counter metric of tablespaces free bytes in Oracle." } -request = ''' -SELECT - dt.tablespace_name AS tablespace, - dt.contents AS type, - dtum.used_percent AS used, - dt.block_size * dtum.used_space AS bytes, - dt.block_size * dtum.tablespace_size AS max_bytes, - dt.block_size * ( dtum.tablespace_size - dtum.used_space ) AS free -FROM - dba_tablespace_usage_metrics dtum, - dba_tablespaces dt -WHERE - dtum.tablespace_name = dt.tablespace_name -ORDER BY - tablespace -''' - - - -[[metric]] -context = "sql_query_elapsed_time_order" -labels = ["inst_id", "module", "sql_id"] -metricsdesc = { elapsed_time = "Elapsed time (in microseconds) used by this cursor for parsing, executing, and fetching", executions = "Number of executions that took place on this object since it was brought into the library cache", cpu_time = "CPU time (in microseconds) used by this cursor for parsing, executing, and fetching", user_io_wait_time = "User I/O Wait Time (in microseconds)"} -request = ''' -SELECT - inst_id, - elapsed_time, - executions, - cpu_time, - user_io_wait_time, - module, - sql_id -FROM - sys.gv_$sql -ORDER BY elapsed_time DESC -FETCH FIRST 10 ROWS WITH TIES -''' - - -[[metric]] -context = "sql_query_cpu_time_order" -labels = ["inst_id", "module", "sql_id"] -metricsdesc = { elapsed_time = "Elapsed time (in microseconds) used by this cursor for parsing, executing, and fetching", executions = "Number of executions that took place on this object since it was brought into the library cache", cpu_time = "CPU time (in microseconds) used by this cursor for parsing, executing, and fetching", user_io_wait_time = "User I/O Wait Time (in microseconds)"} -request = ''' -SELECT - inst_id, - elapsed_time, - executions, - cpu_time, - user_io_wait_time, - module, - sql_id -FROM - sys.gv_$sql -ORDER BY cpu_time DESC -FETCH FIRST 10 ROWS WITH TIES -''' - - -[[metric]] -context = "sql_query_uio_time_order" -labels = ["inst_id", "module", "sql_id"] -metricsdesc = { elapsed_time = "Elapsed time (in microseconds) used by this cursor for parsing, executing, and fetching", executions = "Number of executions that took place on this object since it was brought into the library cache", cpu_time = "CPU time (in microseconds) used by this cursor for parsing, executing, and fetching", user_io_wait_time = "User I/O Wait Time (in microseconds)"} -request = ''' -SELECT - inst_id, - elapsed_time, - executions, - cpu_time, - user_io_wait_time, - module, - sql_id -FROM - sys.gv_$sql -ORDER BY user_io_wait_time DESC -FETCH FIRST 10 ROWS WITH TIES -''' - -[[metric]] -context = "sql_query_total" -labels = ["inst_id"] -metricsdesc = {io_wait_time = "total user io wait time", buffer_gets = "total number of buffer gets", disk_reads = "total number of disk reads", parse_calls = "total number of parse calls"} -request = ''' -SELECT - inst_id, - SUM(user_io_wait_time) AS io_wait_time, - SUM(buffer_gets) AS buffer_gets, - SUM(disk_reads) AS disk_reads, - SUM(parse_calls) AS parse_calls -FROM - sys.gv_$sql -GROUP BY inst_id -''' - - -[[metric]] -context = "sql_query_gets_order" -labels = ["inst_id", "module", "sql_id"] -metricsdesc = { elapsed_time = "Elapsed time (in microseconds) used by this cursor for parsing, executing, and fetching", executions = "Number of executions that took place on this object since it was brought into the library cache", cpu_time = "CPU time (in microseconds) used by this cursor for parsing, executing, and fetching", buffer_gets = "Number of buffer gets for all cursors with this SQL text and plan", user_io_wait_time = "User I/O Wait Time (in microseconds)"} -request = ''' -SELECT - inst_id, - elapsed_time, - executions, - cpu_time, - buffer_gets, - user_io_wait_time, - module, - sql_id -FROM - sys.gv_$sql -ORDER BY buffer_gets DESC -FETCH FIRST 10 ROWS WITH TIES -''' - -[[metric]] -context = "sql_query_reads_order" -labels = ["inst_id", "module", "sql_id"] -metricsdesc = { elapsed_time = "Elapsed time (in microseconds) used by this cursor for parsing, executing, and fetching", executions = "Number of executions that took place on this object since it was brought into the library cache", cpu_time = "CPU time (in microseconds) used by this cursor for parsing, executing, and fetching", disk_reads = "Number of disk reads for this child cursor", user_io_wait_time = "User I/O Wait Time (in microseconds)"} -request = ''' -SELECT - inst_id, - elapsed_time, - executions, - disk_reads, - cpu_time, - user_io_wait_time, - module, - sql_id -FROM - sys.gv_$sql -ORDER BY disk_reads DESC -FETCH FIRST 10 ROWS WITH TIES -''' - - -[[metric]] -context = "sql_query_exec_order" -labels = ["inst_id", "module", "sql_id"] -metricsdesc = { elapsed_time = "Elapsed time (in microseconds) used by this cursor for parsing, executing, and fetching", executions = "Number of executions that took place on this object since it was brought into the library cache", cpu_time = "CPU time (in microseconds) used by this cursor for parsing, executing, and fetching", rows_processed = "Total number of rows the parsed SQL statement returns", user_io_wait_time = "User I/O Wait Time (in microseconds)"} -request = ''' -SELECT - inst_id, - elapsed_time, - executions, - rows_processed, - cpu_time, - user_io_wait_time, - module, - sql_id -FROM - sys.gv_$sql -ORDER BY rows_processed DESC -FETCH FIRST 10 ROWS WITH TIES -''' - - -[[metric]] -context = "sql_query_parse_calls_order" -labels = ["inst_id", "module", "sql_id"] -metricsdesc = { elapsed_time = "Elapsed time (in microseconds) used by this cursor for parsing, executing, and fetching", executions = "Number of executions that took place on this object since it was brought into the library cache", parse_calls = "Number of parse calls for this child cursor", user_io_wait_time = "User I/O Wait Time (in microseconds)"} -request = ''' -SELECT - inst_id, - elapsed_time, - executions, - parse_calls, - user_io_wait_time, - module, - sql_id -FROM - sys.gv_$sql -ORDER BY parse_calls DESC -FETCH FIRST 10 ROWS WITH TIES -''' - - -[[metric]] -context = "concurrency_foreground_wait_class" -labels = ["inst_id", "con_id", "wait_class_name"] -metricsdesc = {waits_fg = "Total number of waits for the class, from foreground sessions", timeouts_fg = "Total number of timeouts for the class, from foreground sessions", total_wait_time_fg = "Total amount of time (in second) waited for the class, from foreground sessions", avg_wait_time_fg = "Average amount of time (in second) waited for the class, from foreground sessions"} -request = ''' -SELECT - inst_id, - con_id, - wait_class AS wait_class_name, - SUM(total_waits_fg) AS waits_fg, - SUM(total_timeouts_fg) as timeouts_fg, - SUM(time_waited_fg)/100 AS total_wait_time_fg, - SUM(average_wait_fg)/100 AS avg_wait_time_fg -FROM - sys.gv_$system_event -WHERE - wait_class NOT IN ('Idle') -GROUP BY - inst_id, con_id, wait_class -ORDER BY - total_wait_time_fg DESC, waits_fg DESC -''' - - -[[metric]] -context = "concurrency_sysevent" -labels = ["inst_id", "con_id"] -metricsdesc = {total_timeout = "Total number of timeouts for the event, from foreground sessions"} -request = ''' -SELECT - inst_id, - con_id, - SUM(total_timeouts) AS total_timeout -FROM - sys.gv_$system_event -GROUP BY - inst_id, con_id -''' - -[[metric]] -context = "concurrency_sysstat" -labels = ["inst_id", "con_id"] -metricsdesc = {db_time = "Total database time (in second), not including idle"} -request = ''' -SELECT - inst_id, - con_id, - value/1000 AS db_time -FROM - sys.gv_$SYSSTAT -WHERE NAME = 'DB time' -''' - -[[metric]] -context = "concurrency_foreground_wait_event" -labels = ["inst_id", "con_id", "event_name"] -metricsdesc = {waits_fg = "Total number of waits for the event, from foreground sessions", timeouts_fg = "Total number of timeouts for the event, from foreground sessions", time_waited_fg = "Total amount of time (in milliseconds) waited for the event, from foreground sessions", average_wait_fg = "Average amount of time (in second) waited for the event, from foreground sessions"} -request = ''' -SELECT - inst_id, - con_id, - event AS event_name, - total_waits_fg AS waits_fg, - total_timeouts_fg AS timeouts_fg, - time_waited_micro_fg / 1000000 AS time_waited_fg, - average_wait_fg * 10 AS average_wait_fg -FROM - sys.gv_$system_event -WHERE - wait_class NOT IN ('Idle') -ORDER BY - time_waited_fg DESC, waits_fg DESC -FETCH FIRST 20 ROWS WITH TIES -''' - - -[[metric]] -context = "concurrency_background_wait_event" -labels = ["inst_id", "con_id", "event_name"] -metricsdesc = {waits_bg = "Total number of waits for the event, from background sessions", timeouts_bg = "Total number of timeouts for the event, from background sessions", time_waited_bg = "Total amount of time (in milliseconds) waited for the event, from background sessions", average_wait_bg = "Average amount of time (in second) waited for the event, from background sessions"} -request = ''' -SELECT - inst_id, - con_id, - event AS event_name, - (total_waits - total_waits_fg) AS waits_bg, - (total_timeouts - total_timeouts_fg) AS timeouts_bg, - (time_waited_micro - time_waited_micro_fg) / 1000 AS time_waited_bg, - average_wait * 10 AS average_wait_bg -FROM - sys.gv_$system_event -WHERE - wait_class NOT IN ('Idle') -ORDER BY - time_waited_bg DESC, waits_bg DESC -FETCH FIRST 20 ROWS WITH TIES -''' - -[[metric]] -context = "concurrency_sysstat" -labels = ["inst_id", "con_id"] -metricsdesc = {total_time_waited_bg = "total background wait time"} -request = ''' -SELECT - inst_id, - con_id, - (total_wait_time - total_wait_time_fg) / 100 AS total_time_waited_bg -FROM - (SELECT - inst_id, - con_id, - SUM(TIME_WAITED) AS total_wait_time, - SUM(TIME_WAITED_FG) AS total_wait_time_fg - FROM - sys.gv_$system_event - GROUP BY inst_id, con_id) -''' - - - -[[metric]] -context = "io_function" -labels = ["inst_id", "con_id", "function_name"] -metricsdesc = {read_data_s = "Number of single block megabytes read", read_req_s = "Number of single block read requests", write_data_s = "Number of megabytes written via single block write requests", write_req_s = "Number of single block write requests", read_data_l = "Number of megabytes read via multiblock read requests", read_req_l = "Number of multiblock read requests", write_data_l = "Number of megabytes written via multiblock write requests", write_req_l = "Number of multiblock write requests", number_of_waits = "Number of synchronous I/O waits by functionality", time = "Total synchronous I/O wait time (in seconds)"} -request = ''' -SELECT - inst_id, - con_id, - function_name, - read_data_s, - read_req_s, - write_data_s, - write_req_s, - read_data_l, - read_req_l, - write_data_l, - write_req_l, - number_of_waits, - time / 1000 AS time -FROM - (SELECT - inst_id, - con_id, - function_name, - SUM(small_read_megabytes) AS read_data_s, - SUM(small_read_reqs) AS read_req_s, - SUM(small_write_megabytes) AS write_data_s, - SUM(small_write_reqs) AS write_req_s, - SUM(large_read_megabytes) AS read_data_l, - SUM(large_read_reqs) AS read_req_l, - SUM(large_write_megabytes) AS write_data_l, - SUM(large_write_reqs) AS write_req_l, - SUM(number_of_waits) AS number_of_waits, - SUM(wait_time) AS time - FROM - sys.gv_$IOSTAT_FUNCTION - GROUP BY function_name, inst_id, con_id) -WHERE (read_data_s + write_data_s + read_data_l + write_data_l) > 0 -ORDER BY (read_data_s + write_data_s + read_data_l + write_data_l) DESC -FETCH FIRST 5 ROWS WITH TIES -''' - -[[metric]] -context = "io_function" -labels = ["inst_id", "con_id", "function_name"] -metricsdesc = {total_read_data_s = "Total Number of single block megabytes read", total_read_req_s = "Total Number of single block read requests", total_write_data_s = "Number of megabytes written via single block write requests", total_write_req_s = "Number of single block write requests", total_read_data_l = "Number of megabytes read via multiblock read requests", total_read_req_l = "Number of multiblock read requests", total_write_data_l = "Number of megabytes written via multiblock write requests", total_write_req_l = "Number of multiblock write requests", total_number_of_waits = "Number of synchronous I/O waits by functionality", total_time = "Total synchronous I/O wait time (in seconds)"} -request = ''' -SELECT - inst_id, - con_id, - 'total' AS function_name, - SUM(small_read_megabytes) AS total_read_data_s, - SUM(small_read_reqs) AS total_read_req_s, - SUM(small_write_megabytes) AS total_write_data_s, - SUM(small_write_reqs) AS total_write_req_s, - SUM(large_read_megabytes) AS total_read_data_l, - SUM(large_read_reqs) AS total_read_req_l, - SUM(large_write_megabytes) AS total_write_data_l, - SUM(large_write_reqs) AS total_write_req_l, - SUM(number_of_waits) AS total_number_of_waits, - SUM(wait_time) AS total_time -FROM - sys.gv_$IOSTAT_FUNCTION -GROUP BY inst_id, con_id -''' - -[[metric]] -context = "io_filetype" -labels = ["inst_id", "con_id", "filetype_name"] -metricsdesc = {read_data_s = "Number of single block megabytes read", read_req_s = "Number of single block read requests", write_data_s = "Number of megabytes written via single block write requests", write_req_s = "Number of single block write requests", read_data_l = "Number of megabytes read via multiblock read requests", read_req_l = "Number of multiblock read requests", write_data_l = "Number of megabytes written via multiblock write requests", write_req_l = "Number of multiblock write requests", read_stime_s = "Total service time (in seconds) for single block read requests", write_stime_s = "Total service time (in seconds) for single block write requests", read_stime_l = "Total service time (in seconds) for multiblock read requests", write_stime_l = "Total service time (in seconds) for multiblock write requests"} -request = ''' -SELECT - inst_id, - con_id, - filetype_name, - read_data_s, - read_req_s, - write_data_s, - write_req_s, - read_data_l, - read_req_l, - write_data_l, - write_req_l, - read_stime_s / 1000 AS read_stime_s, - write_stime_s / 1000 AS write_stime_s, - read_stime_l / 1000 AS read_stime_l, - write_stime_l / 1000 AS write_stime_l -FROM - (SELECT - inst_id, - con_id, - filetype_name, - SUM(small_read_megabytes) AS read_data_s, - SUM(small_read_reqs) AS read_req_s, - SUM(small_write_megabytes) AS write_data_s, - SUM(small_write_reqs) AS write_req_s, - SUM(large_read_megabytes) AS read_data_l, - SUM(large_read_reqs) AS read_req_l, - SUM(large_write_megabytes) AS write_data_l, - SUM(large_write_reqs) AS write_req_l, - SUM(small_read_servicetime) AS read_stime_s, - SUM(small_write_servicetime) AS write_stime_s, - SUM(large_read_servicetime) AS read_stime_l, - SUM(large_write_servicetime) AS write_stime_l - FROM - sys.gv_$IOSTAT_FILE - WHERE con_id = 1 - GROUP BY inst_id, con_id, filetype_name) -WHERE (read_data_s + write_data_s + read_data_l + write_data_l) > 0 -ORDER BY (read_data_s + write_data_s + read_data_l + write_data_l) DESC -FETCH FIRST 5 ROWS WITH TIES -''' - - -[[metric]] -context = "io_filetype" -labels = ["inst_id", "con_id", "filetype_name"] -metricsdesc = {total_read_data_s = "Number of single block megabytes read", total_read_req_s = "Number of single block read requests", total_write_data_s = "Number of megabytes written via single block write requests", total_write_req_s = "Number of single block write requests", total_read_data_l = "Number of megabytes read via multiblock read requests", total_read_req_l = "Number of multiblock read requests", total_write_data_l = "Number of megabytes written via multiblock write requests", total_write_req_l = "Number of multiblock write requests", total_read_stime_s = "Total service time (in seconds) for single block read requests", total_write_stime_s = "Total service time (in seconds) for single block write requests", total_read_stime_l = "Total service time (in seconds) for multiblock read requests", total_write_stime_l = "Total service time (in seconds) for multiblock write requests"} -request = ''' -SELECT - inst_id, - con_id, - 'total' AS filetype_name, - SUM(small_read_megabytes) AS total_read_data_s, - SUM(small_read_reqs) AS total_read_req_s, - SUM(small_write_megabytes) AS total_write_data_s, - SUM(small_write_reqs) AS total_write_req_s, - SUM(large_read_megabytes) AS total_read_data_l, - SUM(large_read_reqs) AS total_read_req_l, - SUM(large_write_megabytes) AS total_write_data_l, - SUM(large_write_reqs) AS total_write_req_l, - SUM(small_read_servicetime) AS total_read_stime_s, - SUM(small_write_servicetime) AS total_write_stime_s, - SUM(large_read_servicetime) AS total_read_stime_l, - SUM(large_write_servicetime) AS total_write_stime_l -FROM - sys.gv_$IOSTAT_FILE -WHERE con_id = 1 -GROUP BY inst_id, con_id -''' diff --git a/grafana/Dockerfile b/grafana/Dockerfile deleted file mode 100644 index bc67ca12..00000000 --- a/grafana/Dockerfile +++ /dev/null @@ -1,15 +0,0 @@ -# -# -# Copyright (c) 2021 Oracle and/or its affiliates. -# Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl/ -# -# - -FROM grafana/grafana:7.5.5 - -COPY dashboards/*.yml /etc/grafana/provisioning/dashboards/ -COPY datasources/*.yml /etc/grafana/provisioning/datasources/ -COPY grafana.ini /etc/grafana/grafana.ini -COPY localhost.crt / -COPY localhost.key / -# COPY dashboards/*.json /var/lib/grafana/dashboards/ diff --git a/grafana/dashboards/all.yml b/grafana/dashboards/all.yml deleted file mode 100644 index fbaa00bf..00000000 --- a/grafana/dashboards/all.yml +++ /dev/null @@ -1,14 +0,0 @@ -# -# -# Copyright (c) 2021 Oracle and/or its affiliates. -# Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl/ -# -# - -- name: 'App-specific Oracle Database Monitor' - org_id: 1 - folder: '' - type: 'file' - allowUiUpdates: true - options: - folder: '/var/lib/grafana/grafana_vol' diff --git a/grafana/dashboards/dashboard.json b/grafana/dashboards/dashboard.json deleted file mode 100644 index e763d997..00000000 --- a/grafana/dashboards/dashboard.json +++ /dev/null @@ -1,2544 +0,0 @@ -{ - "annotations": { - "list": [ - { - "builtIn": 1, - "datasource": "-- Grafana --", - "enable": true, - "hide": true, - "iconColor": "rgba(0, 211, 255, 1)", - "name": "Annotations & Alerts", - "type": "dashboard" - } - ] - }, - "editable": true, - "gnetId": null, - "graphTooltip": 0, - "id": 4, - "links": [], - "panels": [ - { - "cacheTimeout": null, - "colorBackground": false, - "colorValue": false, - "colors": [ - "#299c46", - "rgba(237, 129, 40, 0.89)", - "#d44a3a" - ], - "datasource": null, - "format": "none", - "gauge": { - "maxValue": 100, - "minValue": 0, - "show": false, - "thresholdLabels": false, - "thresholdMarkers": true - }, - "gridPos": { - "h": 3, - "w": 4, - "x": 0, - "y": 0 - }, - "id": 16, - "interval": null, - "links": [], - "mappingType": 1, - "mappingTypes": [ - { - "name": "value to text", - "value": 1 - }, - { - "name": "range to text", - "value": 2 - } - ], - "maxDataPoints": 100, - "nullPointMode": "connected", - "nullText": null, - "options": {}, - "postfix": "", - "postfixFontSize": "50%", - "prefix": "", - "prefixFontSize": "50%", - "rangeMaps": [ - { - "from": "null", - "text": "N/A", - "to": "null" - } - ], - "sparkline": { - "fillColor": "rgba(31, 118, 189, 0.18)", - "full": false, - "lineColor": "rgb(31, 120, 193)", - "show": false, - "ymax": null, - "ymin": null - }, - "tableColumn": "host_name", - "targets": [ - { - "expr": "max(oracledb_instance_dummy) by (host_name)", - "format": "table", - "instant": true, - "refId": "A" - } - ], - "thresholds": "", - "timeFrom": null, - "timeShift": null, - "title": "Host Name", - "type": "singlestat", - "valueFontSize": "80%", - "valueMaps": [ - { - "op": "=", - "text": "N/A", - "value": "null" - } - ], - "valueName": "first" - }, - { - "cacheTimeout": null, - "colorBackground": false, - "colorPostfix": false, - "colorPrefix": false, - "colorValue": true, - "colors": [ - "#73BF69", - "rgba(237, 129, 40, 0.89)", - "#d44a3a" - ], - "datasource": null, - "format": "none", - "gauge": { - "maxValue": 100, - "minValue": 0, - "show": false, - "thresholdLabels": false, - "thresholdMarkers": true - }, - "gridPos": { - "h": 3, - "w": 4, - "x": 4, - "y": 0 - }, - "id": 14, - "interval": null, - "links": [], - "mappingType": 1, - "mappingTypes": [ - { - "name": "value to text", - "value": 1 - }, - { - "name": "range to text", - "value": 2 - } - ], - "maxDataPoints": 100, - "nullPointMode": "connected", - "nullText": null, - "options": {}, - "postfix": "", - "postfixFontSize": "50%", - "prefix": "", - "prefixFontSize": "50%", - "rangeMaps": [ - { - "from": "null", - "text": "N/A", - "to": "null" - } - ], - "sparkline": { - "fillColor": "rgba(31, 118, 189, 0.18)", - "full": false, - "lineColor": "rgb(31, 120, 193)", - "show": false, - "ymax": null, - "ymin": null - }, - "tableColumn": "instance_name", - "targets": [ - { - "expr": "max(oracledb_instance_dummy) by (instance_name)", - "format": "table", - "instant": true, - "legendFormat": "", - "refId": "A" - } - ], - "thresholds": "", - "timeFrom": null, - "timeShift": null, - "title": "Instance Name", - "type": "singlestat", - "valueFontSize": "120%", - "valueMaps": [], - "valueName": "current" - }, - { - "cacheTimeout": null, - "colorBackground": false, - "colorPostfix": false, - "colorPrefix": false, - "colorValue": false, - "colors": [ - "#73BF69", - "rgba(237, 129, 40, 0.89)", - "#d44a3a" - ], - "datasource": null, - "format": "none", - "gauge": { - "maxValue": 100, - "minValue": 0, - "show": false, - "thresholdLabels": false, - "thresholdMarkers": true - }, - "gridPos": { - "h": 3, - "w": 5, - "x": 8, - "y": 0 - }, - "id": 18, - "interval": null, - "links": [], - "mappingType": 1, - "mappingTypes": [ - { - "name": "value to text", - "value": 1 - }, - { - "name": "range to text", - "value": 2 - } - ], - "maxDataPoints": 100, - "nullPointMode": "connected", - "nullText": null, - "options": {}, - "postfix": "", - "postfixFontSize": "50%", - "prefix": "", - "prefixFontSize": "50%", - "rangeMaps": [ - { - "from": "null", - "text": "N/A", - "to": "null" - } - ], - "sparkline": { - "fillColor": "rgba(31, 118, 189, 0.18)", - "full": false, - "lineColor": "rgb(31, 120, 193)", - "show": false, - "ymax": null, - "ymin": null - }, - "tableColumn": "uptime", - "targets": [ - { - "expr": "max(oracledb_instance_dummy) by (uptime)", - "format": "table", - "instant": true, - "legendFormat": "", - "refId": "A" - } - ], - "thresholds": "", - "timeFrom": null, - "timeShift": null, - "title": "Uptime", - "type": "singlestat", - "valueFontSize": "70%", - "valueMaps": [], - "valueName": "current" - }, - { - "cacheTimeout": null, - "colorBackground": false, - "colorPostfix": false, - "colorPrefix": false, - "colorValue": true, - "colors": [ - "#73BF69", - "rgba(237, 129, 40, 0.89)", - "#d44a3a" - ], - "datasource": null, - "format": "none", - "gauge": { - "maxValue": 100, - "minValue": 0, - "show": false, - "thresholdLabels": false, - "thresholdMarkers": true - }, - "gridPos": { - "h": 3, - "w": 5, - "x": 13, - "y": 0 - }, - "id": 17, - "interval": null, - "links": [], - "mappingType": 1, - "mappingTypes": [ - { - "name": "value to text", - "value": 1 - }, - { - "name": "range to text", - "value": 2 - } - ], - "maxDataPoints": 100, - "nullPointMode": "connected", - "nullText": null, - "options": {}, - "postfix": "", - "postfixFontSize": "50%", - "prefix": "", - "prefixFontSize": "50%", - "rangeMaps": [ - { - "from": "null", - "text": "N/A", - "to": "null" - } - ], - "sparkline": { - "fillColor": "rgba(31, 118, 189, 0.18)", - "full": false, - "lineColor": "rgb(31, 120, 193)", - "show": false, - "ymax": null, - "ymin": null - }, - "tableColumn": "stime", - "targets": [ - { - "expr": "max(oracledb_instance_dummy) by (stime)", - "format": "table", - "instant": true, - "legendFormat": "", - "refId": "A" - } - ], - "thresholds": "", - "timeFrom": null, - "timeShift": null, - "title": "Startup Time", - "type": "singlestat", - "valueFontSize": "80%", - "valueMaps": [], - "valueName": "current" - }, - { - "cacheTimeout": null, - "colorBackground": false, - "colorValue": true, - "colors": [ - "#73BF69", - "rgba(237, 129, 40, 0.89)", - "rgba(50, 172, 45, 0.97)" - ], - "datasource": "Prometheus", - "decimals": 1, - "editable": true, - "error": false, - "format": "s", - "gauge": { - "maxValue": 100, - "minValue": 0, - "show": false, - "thresholdLabels": false, - "thresholdMarkers": true - }, - "gridPos": { - "h": 3, - "w": 3, - "x": 18, - "y": 0 - }, - "height": "125px", - "id": 2, - "interval": "", - "links": [], - "mappingType": 1, - "mappingTypes": [ - { - "name": "value to text", - "value": 1 - }, - { - "name": "range to text", - "value": 2 - } - ], - "maxDataPoints": 100, - "nullPointMode": "connected", - "nullText": null, - "options": {}, - "postfix": "", - "postfixFontSize": "50%", - "prefix": "", - "prefixFontSize": "70%", - "rangeMaps": [ - { - "from": "null", - "text": "N/A", - "to": "null" - } - ], - "sparkline": { - "fillColor": "rgba(31, 118, 189, 0.18)", - "full": false, - "lineColor": "rgb(31, 120, 193)", - "show": false - }, - "tableColumn": "", - "targets": [ - { - "calculatedInterval": "10m", - "datasourceErrors": {}, - "errors": {}, - "expr": "oracledb_up", - "format": "time_series", - "hide": false, - "instant": true, - "interval": "", - "intervalFactor": 1, - "legendFormat": "", - "metric": "", - "refId": "A", - "step": 300 - } - ], - "thresholds": "", - "title": "System Status", - "type": "singlestat", - "valueFontSize": "120%", - "valueMaps": [ - { - "op": "=", - "text": "UP", - "value": "1" - }, - { - "op": "=", - "text": "DOWN", - "value": "0" - } - ], - "valueName": "current" - }, - { - "cacheTimeout": null, - "colorBackground": false, - "colorValue": true, - "colors": [ - "#37872D", - "rgba(237, 129, 40, 0.89)", - "rgba(50, 172, 45, 0.97)" - ], - "datasource": "Prometheus", - "editable": true, - "error": false, - "format": "none", - "gauge": { - "maxValue": 100, - "minValue": 0, - "show": false, - "thresholdLabels": false, - "thresholdMarkers": true - }, - "gridPos": { - "h": 4, - "w": 6, - "x": 0, - "y": 3 - }, - "height": "125px", - "id": 4, - "interval": "", - "links": [], - "mappingType": 1, - "mappingTypes": [ - { - "name": "value to text", - "value": 1 - }, - { - "name": "range to text", - "value": 2 - } - ], - "maxDataPoints": 100, - "nullPointMode": "connected", - "nullText": null, - "options": {}, - "postfix": "", - "postfixFontSize": "100%", - "prefix": "", - "prefixFontSize": "100%", - "rangeMaps": [ - { - "from": "null", - "text": "N/A", - "to": "null" - } - ], - "sparkline": { - "fillColor": "rgba(31, 118, 189, 0.18)", - "full": false, - "lineColor": "rgb(31, 120, 193)", - "show": false - }, - "tableColumn": "", - "targets": [ - { - "expr": "oracledb_os_value{stat_name=\"NUM_CPUS\"}", - "format": "time_series", - "instant": true, - "interval": "", - "intervalFactor": 1, - "legendFormat": "", - "refId": "A", - "step": 300 - } - ], - "thresholds": "", - "title": "Number of CPUs", - "type": "singlestat", - "valueFontSize": "120%", - "valueMaps": [ - { - "op": "=", - "text": "N/A", - "value": "null" - } - ], - "valueName": "current" - }, - { - "datasource": null, - "gridPos": { - "h": 8, - "w": 6, - "x": 6, - "y": 3 - }, - "id": 33, - "options": { - "fieldOptions": { - "calcs": [ - "lastNotNull" - ], - "defaults": { - "mappings": [], - "max": 1, - "min": 0, - "thresholds": [ - { - "color": "green", - "value": null - }, - { - "color": "#EAB839", - "value": 0.5 - }, - { - "color": "red", - "value": 0.8 - } - ], - "title": "", - "unit": "percentunit" - }, - "override": {}, - "values": false - }, - "orientation": "auto", - "showThresholdLabels": true, - "showThresholdMarkers": true - }, - "pluginVersion": "6.4.4", - "targets": [ - { - "expr": "rate(oracledb_os_value{stat_name=\"BUSY_TIME\"}[2m]) / ignoring(stat_name) oracledb_os_value{stat_name=\"NUM_CPUS\"} / ignoring(stat_name) rate(job:os:total_cpu_elpased_time[2m])", - "instant": true, - "refId": "A" - } - ], - "timeFrom": null, - "timeShift": null, - "title": "DB CPU Usage", - "type": "gauge" - }, - { - "aliasColors": {}, - "bars": false, - "dashLength": 10, - "dashes": false, - "datasource": null, - "decimals": 2, - "fill": 6, - "fillGradient": 2, - "gridPos": { - "h": 12, - "w": 12, - "x": 12, - "y": 3 - }, - "id": 8, - "legend": { - "alignAsTable": true, - "avg": true, - "current": true, - "hideEmpty": false, - "hideZero": false, - "max": true, - "min": true, - "rightSide": false, - "show": true, - "sideWidth": null, - "total": false, - "values": true - }, - "lines": true, - "linewidth": 1, - "nullPointMode": "null", - "options": { - "dataLinks": [] - }, - "percentage": false, - "pointradius": 2, - "points": false, - "renderer": "flot", - "seriesOverrides": [], - "spaceLength": 10, - "stack": false, - "steppedLine": false, - "targets": [ - { - "expr": "rate(oracledb_os_value{stat_name=\"BUSY_TIME\"}[2m]) / ignoring(stat_name) oracledb_os_value{stat_name=\"NUM_CPUS\"} / ignoring(stat_name) rate(job:os:total_cpu_elpased_time[2m])", - "instant": false, - "intervalFactor": 1, - "legendFormat": "busy", - "refId": "A" - }, - { - "expr": "rate(oracledb_os_value{stat_name=\"IOWAIT_TIME\"}[2m]) / ignoring(stat_name) rate(job:os:total_cpu_elpased_time[2m])", - "legendFormat": "iowait", - "refId": "B" - }, - { - "expr": "rate(oracledb_os_value{stat_name=\"SYS_TIME\"}[2m]) / ignoring(stat_name) rate(job:os:total_cpu_elpased_time[2m])", - "legendFormat": "sys", - "refId": "C" - }, - { - "expr": "rate(oracledb_os_value{stat_name=\"USER_TIME\"}[2m]) / ignoring(stat_name) rate(job:os:total_cpu_elpased_time[2m])", - "legendFormat": "user", - "refId": "D" - }, - { - "expr": "rate(oracledb_os_value{stat_name=\"NICE_TIME\"}[2m]) / ignoring(stat_name) rate(job:os:total_cpu_elpased_time[2m])", - "legendFormat": "nice", - "refId": "E" - } - ], - "thresholds": [], - "timeFrom": null, - "timeRegions": [], - "timeShift": null, - "title": "CPU Usage", - "tooltip": { - "shared": true, - "sort": 2, - "value_type": "individual" - }, - "type": "graph", - "xaxis": { - "buckets": null, - "mode": "time", - "name": null, - "show": true, - "values": [] - }, - "yaxes": [ - { - "decimals": 2, - "format": "percentunit", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": true - }, - { - "decimals": 5, - "format": "percent", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": false - } - ], - "yaxis": { - "align": false, - "alignLevel": null - } - }, - { - "cacheTimeout": null, - "colorBackground": false, - "colorValue": true, - "colors": [ - "rgba(50, 172, 45, 0.97)", - "rgba(237, 129, 40, 0.89)", - "#FADE2A" - ], - "datasource": "Prometheus", - "editable": true, - "error": false, - "format": "none", - "gauge": { - "maxValue": 100, - "minValue": 0, - "show": false, - "thresholdLabels": false, - "thresholdMarkers": true - }, - "gridPos": { - "h": 4, - "w": 6, - "x": 0, - "y": 7 - }, - "height": "125px", - "id": 11, - "interval": "", - "links": [], - "mappingType": 1, - "mappingTypes": [ - { - "name": "value to text", - "value": 1 - }, - { - "name": "range to text", - "value": 2 - } - ], - "maxDataPoints": 100, - "nullPointMode": "connected", - "nullText": null, - "options": {}, - "postfix": "", - "postfixFontSize": "50%", - "prefix": "", - "prefixFontSize": "80%", - "rangeMaps": [ - { - "from": "null", - "text": "N/A", - "to": "null" - } - ], - "sparkline": { - "fillColor": "rgba(31, 118, 189, 0.18)", - "full": false, - "lineColor": "rgb(31, 120, 193)", - "show": false - }, - "tableColumn": "", - "targets": [ - { - "expr": "oracledb_os_value{stat_name=\"NUM_CPU_CORES\"}", - "format": "time_series", - "instant": true, - "interval": "", - "intervalFactor": 1, - "legendFormat": "", - "refId": "A", - "step": 300 - } - ], - "thresholds": "", - "title": "Number of CPU Cores", - "type": "singlestat", - "valueFontSize": "120%", - "valueMaps": [ - { - "op": "=", - "text": "N/A", - "value": "null" - } - ], - "valueName": "current" - }, - { - "cacheTimeout": null, - "colorBackground": false, - "colorValue": false, - "colors": [ - "#73BF69", - "rgba(237, 129, 40, 0.89)", - "#d44a3a" - ], - "datasource": null, - "decimals": null, - "format": "bytes", - "gauge": { - "maxValue": 100, - "minValue": 0, - "show": false, - "thresholdLabels": false, - "thresholdMarkers": true - }, - "gridPos": { - "h": 4, - "w": 6, - "x": 0, - "y": 11 - }, - "id": 35, - "interval": null, - "links": [], - "mappingType": 1, - "mappingTypes": [ - { - "name": "value to text", - "value": 1 - }, - { - "name": "range to text", - "value": 2 - } - ], - "maxDataPoints": 100, - "nullPointMode": "connected", - "nullText": null, - "options": {}, - "postfix": "", - "postfixFontSize": "50%", - "prefix": "", - "prefixFontSize": "50%", - "rangeMaps": [ - { - "from": "null", - "text": "N/A", - "to": "null" - } - ], - "sparkline": { - "fillColor": "rgba(31, 118, 189, 0.18)", - "full": false, - "lineColor": "rgb(31, 120, 193)", - "show": false, - "ymax": null, - "ymin": null - }, - "tableColumn": "", - "targets": [ - { - "expr": "oracledb_os_value{stat_name=\"PHYSICAL_MEMORY_BYTES\"} ", - "instant": true, - "refId": "A" - } - ], - "thresholds": "", - "timeFrom": null, - "timeShift": null, - "title": "Total Physical Memory(OS)", - "type": "singlestat", - "valueFontSize": "150%", - "valueMaps": [ - { - "op": "=", - "text": "N/A", - "value": "null" - } - ], - "valueName": "current" - }, - { - "cacheTimeout": null, - "colorBackground": false, - "colorValue": false, - "colors": [ - "#73BF69", - "rgba(237, 129, 40, 0.89)", - "#d44a3a" - ], - "datasource": null, - "format": "bytes", - "gauge": { - "maxValue": 100, - "minValue": 0, - "show": false, - "thresholdLabels": false, - "thresholdMarkers": true - }, - "gridPos": { - "h": 4, - "w": 6, - "x": 6, - "y": 11 - }, - "id": 39, - "interval": null, - "links": [], - "mappingType": 1, - "mappingTypes": [ - { - "name": "value to text", - "value": 1 - }, - { - "name": "range to text", - "value": 2 - } - ], - "maxDataPoints": 100, - "nullPointMode": "connected", - "nullText": null, - "options": {}, - "postfix": "", - "postfixFontSize": "50%", - "prefix": "", - "prefixFontSize": "50%", - "rangeMaps": [ - { - "from": "null", - "text": "N/A", - "to": "null" - } - ], - "sparkline": { - "fillColor": "rgba(31, 118, 189, 0.18)", - "full": false, - "lineColor": "rgb(31, 120, 193)", - "show": false, - "ymax": null, - "ymin": null - }, - "tableColumn": "", - "targets": [ - { - "expr": "oracledb_sga_total_b", - "instant": true, - "refId": "A" - } - ], - "thresholds": "", - "timeFrom": null, - "timeShift": null, - "title": "SGA Total Memory", - "type": "singlestat", - "valueFontSize": "120%", - "valueMaps": [ - { - "op": "=", - "text": "N/A", - "value": "null" - } - ], - "valueName": "current" - }, - { - "cacheTimeout": null, - "datasource": "Prometheus", - "gridPos": { - "h": 7, - "w": 6, - "x": 0, - "y": 15 - }, - "id": 12, - "links": [], - "options": { - "fieldOptions": { - "calcs": [ - "lastNotNull" - ], - "defaults": { - "mappings": [], - "max": 1, - "min": 0, - "nullValueMode": "connected", - "thresholds": [ - { - "color": "green", - "value": null - }, - { - "color": "#EAB839", - "value": 0.5 - }, - { - "color": "red", - "value": 0.8 - } - ], - "unit": "percentunit" - }, - "override": {}, - "values": false - }, - "orientation": "horizontal", - "showThresholdLabels": true, - "showThresholdMarkers": true - }, - "pluginVersion": "6.4.4", - "targets": [ - { - "expr": "oracledb_os_value{stat_name=\"FREE_MEMORY_BYTES\"} / ignoring(stat_name) oracledb_os_value{stat_name=\"PHYSICAL_MEMORY_BYTES\"}", - "format": "time_series", - "instant": true, - "interval": "", - "intervalFactor": 1, - "legendFormat": "", - "refId": "A", - "step": 300 - } - ], - "title": "Memory Usage(OS)", - "type": "gauge" - }, - { - "datasource": null, - "gridPos": { - "h": 7, - "w": 6, - "x": 6, - "y": 15 - }, - "id": 41, - "options": { - "fieldOptions": { - "calcs": [ - "lastNotNull" - ], - "defaults": { - "mappings": [], - "max": 1, - "min": 0, - "thresholds": [ - { - "color": "green", - "value": null - }, - { - "color": "red", - "value": 0.8 - } - ], - "unit": "percentunit" - }, - "override": {}, - "values": false - }, - "orientation": "auto", - "showThresholdLabels": true, - "showThresholdMarkers": true - }, - "pluginVersion": "6.4.4", - "targets": [ - { - "expr": "oracledb_sga_used_b / ignoring(inst_id) oracledb_sga_total_b", - "instant": true, - "refId": "A" - } - ], - "timeFrom": null, - "timeShift": null, - "title": "SGA Memory Usage", - "type": "gauge" - }, - { - "aliasColors": { - "Load 1m": "dark-orange" - }, - "bars": false, - "dashLength": 10, - "dashes": false, - "datasource": null, - "fill": 8, - "fillGradient": 0, - "gridPos": { - "h": 7, - "w": 12, - "x": 12, - "y": 15 - }, - "id": 20, - "interval": "", - "legend": { - "alignAsTable": true, - "avg": true, - "current": true, - "max": true, - "min": true, - "rightSide": false, - "show": true, - "total": false, - "values": true - }, - "lines": true, - "linewidth": 1, - "nullPointMode": "null", - "options": { - "dataLinks": [] - }, - "percentage": false, - "pointradius": 2, - "points": false, - "renderer": "flot", - "seriesOverrides": [ - { - "alias": "sga free", - "color": "#1F60C4" - }, - { - "alias": "sga used", - "color": "#8AB8FF" - } - ], - "spaceLength": 10, - "stack": true, - "steppedLine": false, - "targets": [ - { - "expr": "oracledb_sga_free_b", - "interval": "", - "legendFormat": "sga free", - "refId": "A" - }, - { - "expr": "oracledb_sga_used_b", - "legendFormat": "sga used", - "refId": "B" - } - ], - "thresholds": [], - "timeFrom": null, - "timeRegions": [], - "timeShift": null, - "title": "SGA Memory", - "tooltip": { - "shared": true, - "sort": 0, - "value_type": "individual" - }, - "type": "graph", - "xaxis": { - "buckets": null, - "mode": "time", - "name": null, - "show": true, - "values": [] - }, - "yaxes": [ - { - "format": "decbytes", - "label": "", - "logBase": 1, - "max": null, - "min": "0", - "show": true - }, - { - "format": "short", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": false - } - ], - "yaxis": { - "align": false, - "alignLevel": null - } - }, - { - "cacheTimeout": null, - "colorBackground": false, - "colorValue": true, - "colors": [ - "#73BF69", - "rgba(237, 129, 40, 0.89)", - "#d44a3a" - ], - "datasource": null, - "format": "none", - "gauge": { - "maxValue": 100, - "minValue": 0, - "show": false, - "thresholdLabels": false, - "thresholdMarkers": true - }, - "gridPos": { - "h": 3, - "w": 6, - "x": 0, - "y": 22 - }, - "id": 28, - "interval": null, - "links": [], - "mappingType": 1, - "mappingTypes": [ - { - "name": "value to text", - "value": 1 - }, - { - "name": "range to text", - "value": 2 - } - ], - "maxDataPoints": 100, - "nullPointMode": "connected", - "nullText": null, - "options": {}, - "postfix": "", - "postfixFontSize": "50%", - "prefix": "", - "prefixFontSize": "50%", - "rangeMaps": [ - { - "from": "null", - "text": "N/A", - "to": "null" - } - ], - "sparkline": { - "fillColor": "rgba(31, 118, 189, 0.18)", - "full": false, - "lineColor": "rgb(31, 120, 193)", - "show": true, - "ymax": null, - "ymin": null - }, - "tableColumn": "", - "targets": [ - { - "expr": "oracledb_session_value{status=\"ACTIVE\", type=\"USER\"}", - "instant": true, - "refId": "A" - } - ], - "thresholds": "", - "timeFrom": null, - "timeShift": null, - "title": "Active User Session", - "type": "singlestat", - "valueFontSize": "150%", - "valueMaps": [ - { - "op": "=", - "text": "N/A", - "value": "null" - } - ], - "valueName": "current" - }, - { - "columns": [], - "datasource": null, - "fontSize": "100%", - "gridPos": { - "h": 9, - "w": 6, - "x": 6, - "y": 22 - }, - "id": 43, - "options": {}, - "pageSize": null, - "showHeader": true, - "sort": { - "col": 2, - "desc": false - }, - "styles": [ - { - "alias": "Time", - "dateFormat": "YYYY-MM-DD HH:mm:ss", - "pattern": "Time", - "type": "date" - }, - { - "alias": "", - "colorMode": null, - "colors": [ - "rgba(245, 54, 54, 0.9)", - "rgba(237, 129, 40, 0.89)", - "rgba(50, 172, 45, 0.97)" - ], - "decimals": 2, - "pattern": "/.*/", - "thresholds": [], - "type": "number", - "unit": "short" - } - ], - "targets": [ - { - "expr": "oracledb_session_mvalue", - "format": "time_series", - "instant": true, - "intervalFactor": 1, - "legendFormat": "{{machine}}", - "refId": "A" - } - ], - "timeFrom": null, - "timeShift": null, - "title": "Sessions by Machine", - "transform": "timeseries_to_rows", - "type": "table" - }, - { - "aliasColors": { - "Load 1m": "dark-orange" - }, - "bars": false, - "dashLength": 10, - "dashes": false, - "datasource": null, - "fill": 5, - "fillGradient": 0, - "gridPos": { - "h": 7, - "w": 12, - "x": 12, - "y": 22 - }, - "id": 26, - "interval": "", - "legend": { - "alignAsTable": true, - "avg": true, - "current": true, - "max": true, - "min": true, - "rightSide": false, - "show": true, - "total": false, - "values": true - }, - "lines": true, - "linewidth": 1, - "nullPointMode": "null", - "options": { - "dataLinks": [] - }, - "percentage": false, - "pointradius": 2, - "points": false, - "renderer": "flot", - "seriesOverrides": [ - { - "alias": "read", - "color": "#96D98D" - }, - { - "alias": "write", - "color": "#FADE2A" - } - ], - "spaceLength": 10, - "stack": true, - "steppedLine": false, - "targets": [ - { - "expr": "rate(oracledb_system_value{name=\"physical read total bytes\"}[5m])", - "instant": false, - "interval": "", - "legendFormat": "read", - "refId": "A" - }, - { - "expr": "rate(oracledb_system_value{name=\"physical write total bytes\"}[5m])", - "instant": false, - "legendFormat": "write", - "refId": "B" - } - ], - "thresholds": [], - "timeFrom": null, - "timeRegions": [], - "timeShift": null, - "title": "Total Physical Read/Write Rate", - "tooltip": { - "shared": true, - "sort": 0, - "value_type": "individual" - }, - "type": "graph", - "xaxis": { - "buckets": null, - "mode": "time", - "name": null, - "show": true, - "values": [] - }, - "yaxes": [ - { - "format": "Bps", - "label": "", - "logBase": 1, - "max": null, - "min": null, - "show": true - }, - { - "format": "short", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": false - } - ], - "yaxis": { - "align": false, - "alignLevel": null - } - }, - { - "cacheTimeout": null, - "colorBackground": false, - "colorValue": true, - "colors": [ - "#5794F2", - "rgba(237, 129, 40, 0.89)", - "#d44a3a" - ], - "datasource": null, - "format": "none", - "gauge": { - "maxValue": 100, - "minValue": 0, - "show": false, - "thresholdLabels": false, - "thresholdMarkers": true - }, - "gridPos": { - "h": 3, - "w": 6, - "x": 0, - "y": 25 - }, - "id": 30, - "interval": null, - "links": [], - "mappingType": 1, - "mappingTypes": [ - { - "name": "value to text", - "value": 1 - }, - { - "name": "range to text", - "value": 2 - } - ], - "maxDataPoints": 100, - "nullPointMode": "connected", - "nullText": null, - "options": {}, - "postfix": "", - "postfixFontSize": "50%", - "prefix": "", - "prefixFontSize": "50%", - "rangeMaps": [ - { - "from": "null", - "text": "N/A", - "to": "null" - } - ], - "sparkline": { - "fillColor": "rgba(31, 118, 189, 0.18)", - "full": false, - "lineColor": "rgb(31, 120, 193)", - "show": true, - "ymax": null, - "ymin": null - }, - "tableColumn": "", - "targets": [ - { - "expr": "oracledb_session_value{status=\"INACTIVE\", type=\"USER\"}", - "instant": true, - "refId": "A" - } - ], - "thresholds": "", - "timeFrom": null, - "timeShift": null, - "title": "Inactive User Session", - "type": "singlestat", - "valueFontSize": "150%", - "valueMaps": [ - { - "op": "=", - "text": "N/A", - "value": "null" - } - ], - "valueName": "current" - }, - { - "cacheTimeout": null, - "colorBackground": false, - "colorValue": true, - "colors": [ - "#FF9830", - "rgba(237, 129, 40, 0.89)", - "#d44a3a" - ], - "datasource": null, - "format": "none", - "gauge": { - "maxValue": 100, - "minValue": 0, - "show": false, - "thresholdLabels": false, - "thresholdMarkers": true - }, - "gridPos": { - "h": 3, - "w": 6, - "x": 0, - "y": 28 - }, - "id": 29, - "interval": null, - "links": [], - "mappingType": 1, - "mappingTypes": [ - { - "name": "value to text", - "value": 1 - }, - { - "name": "range to text", - "value": 2 - } - ], - "maxDataPoints": 100, - "nullPointMode": "connected", - "nullText": null, - "options": {}, - "postfix": "", - "postfixFontSize": "50%", - "prefix": "", - "prefixFontSize": "50%", - "rangeMaps": [ - { - "from": "null", - "text": "N/A", - "to": "null" - } - ], - "sparkline": { - "fillColor": "rgba(31, 118, 189, 0.18)", - "full": false, - "lineColor": "rgb(31, 120, 193)", - "show": true, - "ymax": null, - "ymin": null - }, - "tableColumn": "", - "targets": [ - { - "expr": "oracledb_session_value{status=\"ACTIVE\", type=\"BACKGROUND\"}", - "instant": true, - "refId": "A" - } - ], - "thresholds": "", - "timeFrom": null, - "timeShift": null, - "title": "Active Background Session", - "type": "singlestat", - "valueFontSize": "150%", - "valueMaps": [ - { - "op": "=", - "text": "N/A", - "value": "null" - } - ], - "valueName": "current" - }, - { - "aliasColors": {}, - "bars": false, - "dashLength": 10, - "dashes": false, - "datasource": null, - "fill": 2, - "fillGradient": 0, - "gridPos": { - "h": 7, - "w": 12, - "x": 12, - "y": 29 - }, - "id": 37, - "legend": { - "alignAsTable": true, - "avg": true, - "current": true, - "max": true, - "min": true, - "show": true, - "total": false, - "values": true - }, - "lines": true, - "linewidth": 1, - "nullPointMode": "null", - "options": { - "dataLinks": [] - }, - "percentage": false, - "pointradius": 2, - "points": false, - "renderer": "flot", - "seriesOverrides": [ - { - "alias": "read", - "color": "#C4162A" - }, - { - "alias": "write", - "color": "#37872D" - } - ], - "spaceLength": 10, - "stack": true, - "steppedLine": false, - "targets": [ - { - "expr": "rate(oracledb_system_value{name=\"physical read total IO requests\"}[5m])", - "legendFormat": "read", - "refId": "A" - }, - { - "expr": "rate(oracledb_system_value{name=\"physical write total IO requests\"}[5m])", - "legendFormat": "write", - "refId": "B" - } - ], - "thresholds": [], - "timeFrom": null, - "timeRegions": [], - "timeShift": null, - "title": "Total Physical Read/Write IO Request Rate", - "tooltip": { - "shared": true, - "sort": 0, - "value_type": "individual" - }, - "type": "graph", - "xaxis": { - "buckets": null, - "mode": "time", - "name": null, - "show": true, - "values": [] - }, - "yaxes": [ - { - "format": "short", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": true - }, - { - "format": "short", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": true - } - ], - "yaxis": { - "align": false, - "alignLevel": null - } - }, - { - "aliasColors": {}, - "bars": false, - "dashLength": 10, - "dashes": false, - "datasource": null, - "fill": 2, - "fillGradient": 0, - "gridPos": { - "h": 10, - "w": 12, - "x": 0, - "y": 31 - }, - "id": 45, - "legend": { - "alignAsTable": true, - "avg": true, - "current": true, - "max": true, - "min": true, - "rightSide": false, - "show": true, - "total": false, - "values": true - }, - "lines": true, - "linewidth": 1, - "nullPointMode": "null", - "options": { - "dataLinks": [] - }, - "percentage": false, - "pointradius": 2, - "points": false, - "renderer": "flot", - "seriesOverrides": [], - "spaceLength": 10, - "stack": false, - "steppedLine": false, - "targets": [ - { - "expr": "rate(oracledb_system_value{name=\"user calls\"}[2m])", - "legendFormat": "{{name}}", - "refId": "A" - }, - { - "expr": "rate(oracledb_system_value{name=\"user commits\"}[2m])", - "legendFormat": "{{name}}", - "refId": "B" - }, - { - "expr": "rate(oracledb_system_value{name=\"user rollbacks\"}[2m])", - "legendFormat": "{{name}}", - "refId": "C" - }, - { - "expr": "rate(oracledb_system_value{name=\"execute count\"}[2m])", - "legendFormat": "{{name}}", - "refId": "D" - } - ], - "thresholds": [], - "timeFrom": null, - "timeRegions": [], - "timeShift": null, - "title": "User Activity Rate", - "tooltip": { - "shared": false, - "sort": 2, - "value_type": "individual" - }, - "type": "graph", - "xaxis": { - "buckets": null, - "mode": "time", - "name": null, - "show": true, - "values": [] - }, - "yaxes": [ - { - "format": "none", - "label": "requests per minute", - "logBase": 1, - "max": null, - "min": null, - "show": true - }, - { - "format": "short", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": true - } - ], - "yaxis": { - "align": false, - "alignLevel": null - } - }, - { - "aliasColors": { - "Load 1m": "dark-orange" - }, - "bars": true, - "dashLength": 10, - "dashes": false, - "datasource": null, - "decimals": 2, - "fill": 6, - "fillGradient": 2, - "gridPos": { - "h": 16, - "w": 12, - "x": 12, - "y": 36 - }, - "id": 24, - "interval": "", - "legend": { - "alignAsTable": true, - "avg": true, - "current": false, - "max": true, - "min": true, - "rightSide": false, - "show": true, - "total": false, - "values": true - }, - "lines": false, - "linewidth": 2, - "nullPointMode": "null", - "options": { - "dataLinks": [] - }, - "percentage": false, - "pluginVersion": "6.4.4", - "pointradius": 2, - "points": false, - "renderer": "flot", - "seriesOverrides": [], - "spaceLength": 10, - "stack": true, - "steppedLine": false, - "targets": [ - { - "expr": "increase(oracledb_system_value{name=\"execute count\"}[1h])", - "instant": false, - "interval": "1h", - "legendFormat": "execute count", - "refId": "A" - }, - { - "expr": "increase(oracledb_system_value{name=\"user calls\"}[1h])", - "instant": false, - "interval": "1h", - "legendFormat": "user calls", - "refId": "B" - }, - { - "expr": "increase(oracledb_system_value{name=\"user commits\"}[1h])", - "interval": "1h", - "legendFormat": "user commits", - "refId": "C" - }, - { - "expr": "increase(oracledb_system_value{name=\"user rollbacks\"}[1h])", - "interval": "1h", - "legendFormat": "rollbacks", - "refId": "D" - } - ], - "thresholds": [], - "timeFrom": null, - "timeRegions": [], - "timeShift": null, - "title": "User Activity Hourly", - "tooltip": { - "shared": true, - "sort": 0, - "value_type": "individual" - }, - "type": "graph", - "xaxis": { - "buckets": null, - "min": null, - "mode": "time", - "name": null, - "show": true, - "values": [] - }, - "yaxes": [ - { - "format": "short", - "label": "", - "logBase": 1, - "max": null, - "min": "0", - "show": true - }, - { - "format": "short", - "label": null, - "logBase": 1, - "max": null, - "min": "0", - "show": true - } - ], - "yaxis": { - "align": false, - "alignLevel": null - } - }, - { - "aliasColors": { - "Load 1m": "dark-orange" - }, - "bars": false, - "dashLength": 10, - "dashes": false, - "datasource": null, - "fill": 1, - "fillGradient": 0, - "gridPos": { - "h": 9, - "w": 12, - "x": 0, - "y": 41 - }, - "id": 21, - "interval": "", - "legend": { - "alignAsTable": true, - "avg": true, - "current": false, - "max": true, - "min": true, - "rightSide": false, - "show": true, - "total": false, - "values": true - }, - "lines": true, - "linewidth": 1, - "nullPointMode": "null", - "options": { - "dataLinks": [] - }, - "percentage": false, - "pointradius": 2, - "points": false, - "renderer": "flot", - "seriesOverrides": [ - { - "alias": "inbound", - "color": "#F2495C" - }, - { - "alias": "outbound", - "color": "#B877D9" - } - ], - "spaceLength": 10, - "stack": false, - "steppedLine": false, - "targets": [ - { - "expr": "irate(oracledb_network_received_from_client_b[5m])", - "interval": "", - "legendFormat": "inbound", - "refId": "A" - }, - { - "expr": "irate(oracledb_network_sent_to_client_b[5m])", - "legendFormat": "outbound", - "refId": "B" - } - ], - "thresholds": [], - "timeFrom": null, - "timeRegions": [], - "timeShift": null, - "title": "Network Traffic", - "tooltip": { - "shared": true, - "sort": 0, - "value_type": "individual" - }, - "type": "graph", - "xaxis": { - "buckets": null, - "mode": "time", - "name": null, - "show": true, - "values": [] - }, - "yaxes": [ - { - "format": "Bps", - "label": "", - "logBase": 1, - "max": null, - "min": null, - "show": true - }, - { - "format": "short", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": false - } - ], - "yaxis": { - "align": false, - "alignLevel": null - } - }, - { - "columns": [ - { - "text": "Current", - "value": "current" - } - ], - "datasource": null, - "fontSize": "110%", - "gridPos": { - "h": 12, - "w": 12, - "x": 0, - "y": 50 - }, - "id": 31, - "options": {}, - "pageSize": null, - "showHeader": true, - "sort": { - "col": null, - "desc": false - }, - "styles": [ - { - "alias": "Time", - "colorMode": null, - "colors": [ - "rgba(245, 54, 54, 0.9)", - "rgba(237, 129, 40, 0.89)", - "rgba(50, 172, 45, 0.97)" - ], - "dateFormat": "YYYY-MM-DD HH:mm:ss", - "decimals": 2, - "mappingType": 1, - "pattern": "Time", - "thresholds": [], - "type": "date", - "unit": "short" - }, - { - "alias": "Instance ID", - "colorMode": "value", - "colors": [ - "#73BF69", - "rgba(237, 129, 40, 0.89)", - "rgba(50, 172, 45, 0.97)" - ], - "decimals": 0, - "pattern": "inst_id", - "thresholds": [], - "type": "number", - "unit": "none" - }, - { - "alias": "123", - "colorMode": null, - "colors": [ - "rgba(245, 54, 54, 0.9)", - "rgba(237, 129, 40, 0.89)", - "rgba(50, 172, 45, 0.97)" - ], - "dateFormat": "YYYY-MM-DD HH:mm:ss", - "decimals": 2, - "mappingType": 1, - "pattern": "Current", - "thresholds": [], - "type": "number", - "unit": "short" - } - ], - "targets": [ - { - "expr": "oracledb_system_wait_time_waited", - "format": "time_series", - "instant": true, - "interval": "", - "intervalFactor": 1, - "legendFormat": "{{wait_class}}", - "refId": "A" - } - ], - "timeFrom": null, - "timeShift": null, - "title": "System: Amount of time spent in the wait class", - "transform": "timeseries_aggregations", - "type": "table" - }, - { - "aliasColors": { - "Load 1m": "dark-orange" - }, - "bars": true, - "dashLength": 10, - "dashes": false, - "datasource": null, - "fill": 1, - "fillGradient": 0, - "gridPos": { - "h": 10, - "w": 12, - "x": 12, - "y": 52 - }, - "id": 25, - "interval": "", - "legend": { - "alignAsTable": true, - "avg": true, - "current": false, - "max": true, - "min": true, - "rightSide": false, - "show": true, - "total": false, - "values": true - }, - "lines": false, - "linewidth": 1, - "nullPointMode": "null", - "options": { - "dataLinks": [] - }, - "percentage": false, - "pointradius": 2, - "points": false, - "renderer": "flot", - "seriesOverrides": [ - { - "alias": "inbound", - "color": "#F2495C" - }, - { - "alias": "outbound", - "color": "#B877D9" - } - ], - "spaceLength": 10, - "stack": true, - "steppedLine": false, - "targets": [ - { - "expr": "increase(oracledb_network_received_from_client_b[1h])", - "instant": false, - "interval": "1h", - "legendFormat": "inbound", - "refId": "A" - }, - { - "expr": "increase(oracledb_network_sent_to_client_b[1h])", - "instant": false, - "interval": "1h", - "legendFormat": "outbound", - "refId": "B" - } - ], - "thresholds": [], - "timeFrom": null, - "timeRegions": [], - "timeShift": null, - "title": "Network Traffic Hourly", - "tooltip": { - "shared": true, - "sort": 0, - "value_type": "individual" - }, - "type": "graph", - "xaxis": { - "buckets": null, - "mode": "time", - "name": null, - "show": true, - "values": [] - }, - "yaxes": [ - { - "format": "decbytes", - "label": "", - "logBase": 1, - "max": null, - "min": null, - "show": true - }, - { - "format": "short", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": false - } - ], - "yaxis": { - "align": false, - "alignLevel": null - } - }, - { - "columns": [ - { - "text": "Current", - "value": "current" - } - ], - "datasource": null, - "fontSize": "100%", - "gridPos": { - "h": 20, - "w": 24, - "x": 0, - "y": 62 - }, - "id": 47, - "options": {}, - "pageSize": null, - "showHeader": true, - "sort": { - "col": 0, - "desc": true - }, - "styles": [ - { - "alias": "Time", - "dateFormat": "YYYY-MM-DD HH:mm:ss", - "link": false, - "pattern": "Time", - "type": "date" - }, - { - "alias": "", - "colorMode": null, - "colors": [ - "#73BF69", - "rgba(237, 129, 40, 0.89)", - "rgba(50, 172, 45, 0.97)" - ], - "decimals": null, - "pattern": "inst_id", - "thresholds": [], - "type": "number", - "unit": "none" - } - ], - "targets": [ - { - "expr": "oracledb_session_wait_seconds_in_wait", - "format": "table", - "instant": true, - "interval": "", - "legendFormat": "", - "refId": "A" - } - ], - "timeFrom": null, - "timeShift": null, - "title": "System: Amount of time spent in the wait class", - "transform": "table", - "type": "table" - }, - { - "aliasColors": { - "Load 1m": "dark-orange" - }, - "bars": true, - "dashLength": 10, - "dashes": false, - "datasource": null, - "fill": 1, - "fillGradient": 0, - "gridPos": { - "h": 9, - "w": 12, - "x": 0, - "y": 82 - }, - "id": 22, - "interval": "", - "legend": { - "alignAsTable": true, - "avg": true, - "current": false, - "max": true, - "min": true, - "rightSide": false, - "show": true, - "total": false, - "values": true - }, - "lines": true, - "linewidth": 2, - "nullPointMode": "null", - "options": { - "dataLinks": [] - }, - "percentage": false, - "pointradius": 2, - "points": false, - "renderer": "flot", - "seriesOverrides": [ - { - "alias": "active background", - "color": "#C4162A" - }, - { - "alias": "active user", - "color": "#FA6400" - }, - { - "alias": "inactive user", - "color": "rgb(19, 195, 189)" - } - ], - "spaceLength": 10, - "stack": false, - "steppedLine": false, - "targets": [ - { - "expr": "oracledb_session_value{status=\"ACTIVE\", type=\"BACKGROUND\"}", - "interval": "", - "legendFormat": "active background", - "refId": "A" - }, - { - "expr": "oracledb_session_value{status=\"ACTIVE\", type=\"USER\"}", - "legendFormat": "active user", - "refId": "B" - }, - { - "expr": "oracledb_session_value{status=\"INACTIVE\", type=\"USER\"}", - "legendFormat": "inactive user", - "refId": "C" - } - ], - "thresholds": [], - "timeFrom": null, - "timeRegions": [], - "timeShift": null, - "title": "Processes", - "tooltip": { - "shared": true, - "sort": 0, - "value_type": "individual" - }, - "type": "graph", - "xaxis": { - "buckets": null, - "mode": "time", - "name": null, - "show": true, - "values": [] - }, - "yaxes": [ - { - "format": "none", - "label": "", - "logBase": 1, - "max": null, - "min": "0", - "show": true - }, - { - "format": "short", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": false - } - ], - "yaxis": { - "align": false, - "alignLevel": null - } - }, - { - "aliasColors": { - "Load 1m": "dark-orange" - }, - "bars": false, - "dashLength": 10, - "dashes": false, - "datasource": null, - "description": "Number of processes running or waiting on the run queue", - "fill": 3, - "fillGradient": 0, - "gridPos": { - "h": 8, - "w": 12, - "x": 0, - "y": 91 - }, - "id": 10, - "interval": "", - "legend": { - "alignAsTable": true, - "avg": true, - "current": false, - "max": true, - "min": true, - "rightSide": false, - "show": true, - "total": false, - "values": true - }, - "lines": true, - "linewidth": 1, - "nullPointMode": "null", - "options": { - "dataLinks": [] - }, - "percentage": false, - "pointradius": 2, - "points": false, - "renderer": "flot", - "seriesOverrides": [ - { - "alias": "Load 1m", - "color": "rgb(248, 80, 0)" - }, - { - "alias": "Load 5m", - "color": "#FF9830" - }, - { - "alias": "Load 15m", - "color": "#FADE2A" - } - ], - "spaceLength": 10, - "stack": false, - "steppedLine": false, - "targets": [ - { - "expr": " sum(sum_over_time(oracledb_os_value{stat_name=\"LOAD\"}[1m])) / sum(count_over_time(oracledb_os_value{stat_name=\"LOAD\"}[1m]))", - "interval": "", - "legendFormat": "Load 1m", - "refId": "A" - }, - { - "expr": " sum(sum_over_time(oracledb_os_value{stat_name=\"LOAD\"}[5m])) / sum(count_over_time(oracledb_os_value{stat_name=\"LOAD\"}[5m]))", - "legendFormat": "Load 5m", - "refId": "B" - }, - { - "expr": " sum(sum_over_time(oracledb_os_value{stat_name=\"LOAD\"}[15m])) / sum(count_over_time(oracledb_os_value{stat_name=\"LOAD\"}[15m]))", - "legendFormat": "Load 15m", - "refId": "C" - } - ], - "thresholds": [], - "timeFrom": null, - "timeRegions": [], - "timeShift": null, - "title": "Process Load", - "tooltip": { - "shared": true, - "sort": 0, - "value_type": "individual" - }, - "type": "graph", - "xaxis": { - "buckets": null, - "mode": "time", - "name": null, - "show": true, - "values": [] - }, - "yaxes": [ - { - "format": "short", - "label": "", - "logBase": 1, - "max": null, - "min": null, - "show": true - }, - { - "format": "short", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": true - } - ], - "yaxis": { - "align": false, - "alignLevel": null - } - } - ], - "refresh": "30s", - "schemaVersion": 20, - "style": "dark", - "tags": [], - "templating": { - "list": [] - }, - "time": { - "from": "now-6h", - "to": "now" - }, - "timepicker": { - "refresh_intervals": [ - "5s", - "10s", - "30s", - "1m", - "5m", - "15m", - "30m", - "1h", - "2h", - "1d" - ] - }, - "timezone": "browser", - "title": "Oracle App-Specific -- Database System Level -- Update", - "uid": "fjZKiJbgz", - "version": 3 -} diff --git a/grafana/datasources/all.yml b/grafana/datasources/all.yml deleted file mode 100644 index f002048b..00000000 --- a/grafana/datasources/all.yml +++ /dev/null @@ -1,19 +0,0 @@ -# -# -# Copyright (c) 2021 Oracle and/or its affiliates. -# Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl/ -# -# - -datasources: - - name: 'Prometheus' - type: 'prometheus' - access: 'proxy' - org_id: 1 - url: 'https://prometheus:9090' - is_default: true - version: 1 - editable: true - jsonData: - tlsSkipVerify: true - tlsAuthWithCACert: true diff --git a/grafana/grafana.ini b/grafana/grafana.ini deleted file mode 100644 index e3c14f07..00000000 --- a/grafana/grafana.ini +++ /dev/null @@ -1,921 +0,0 @@ -# -# -# Copyright (c) 2021 Oracle and/or its affiliates. -# Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl/ -# -# -##################### Grafana Configuration Example ##################### -# -# Everything has defaults so you only need to uncomment things you want to -# change - -# possible values : production, development -;app_mode = production - -# instance name, defaults to HOSTNAME environment variable value or hostname if HOSTNAME var is empty -;instance_name = ${HOSTNAME} - -#################################### Paths #################################### -[paths] -# Path to where grafana can store temp files, sessions, and the sqlite3 db (if that is used) -;data = /var/lib/grafana - -# Temporary files in `data` directory older than given duration will be removed -;temp_data_lifetime = 24h - -# Directory where grafana can store logs -;logs = /var/log/grafana - -# Directory where grafana will automatically scan and look for plugins -;plugins = /var/lib/grafana/plugins - -# folder that contains provisioning config files that grafana will apply on startup and while running. -;provisioning = conf/provisioning - -#################################### Server #################################### -[server] -# Protocol (http, https, h2, socket) -protocol = https - -# The ip address to bind to, empty will bind to all interfaces -;http_addr = - -# The http port to use -http_port = 3000 - -# The public facing domain name used to access grafana from a browser -;domain = localhost - -# Redirect to correct domain if host header does not match domain -# Prevents DNS rebinding attacks -;enforce_domain = false - -# The full public facing url you use in browser, used for redirects and emails -# If you use reverse proxy and sub path specify full url (with sub path) -root_url = %(protocol)s://%(domain)s:%(http_port)s/ - -# Serve Grafana from subpath specified in `root_url` setting. By default it is set to `false` for compatibility reasons. -;serve_from_sub_path = false - -# Log web requests -;router_logging = false - -# the path relative working path -;static_root_path = public - -# enable gzip -;enable_gzip = false - -# https certs & key file -cert_file = /localhost.crt -cert_key = /localhost.key - -# Unix socket path -;socket = - -# CDN Url -;cdn_url = - -# Sets the maximum time using a duration format (5s/5m/5ms) before timing out read of an incoming request and closing idle connections. -# `0` means there is no timeout for reading the request. -;read_timeout = 0 - -#################################### Database #################################### -[database] -# You can configure the database connection by specifying type, host, name, user and password -# as separate properties or as on string using the url properties. - -# Either "mysql", "postgres" or "sqlite3", it's your choice -;type = sqlite3 -;host = 127.0.0.1:3306 -;name = grafana -;user = root -# If the password contains # or ; you have to wrap it with triple quotes. Ex """#password;""" -;password = - -# Use either URL or the previous fields to configure the database -# Example: mysql://user:secret@host:port/database -;url = - -# For "postgres" only, either "disable", "require" or "verify-full" -;ssl_mode = disable - -;ca_cert_path = -;client_key_path = -;client_cert_path = -;server_cert_name = - -# For "sqlite3" only, path relative to data_path setting -;path = grafana.db - -# Max idle conn setting default is 2 -;max_idle_conn = 2 - -# Max conn setting default is 0 (mean not set) -;max_open_conn = - -# Connection Max Lifetime default is 14400 (means 14400 seconds or 4 hours) -;conn_max_lifetime = 14400 - -# Set to true to log the sql calls and execution times. -;log_queries = - -# For "sqlite3" only. cache mode setting used for connecting to the database. (private, shared) -;cache_mode = private - -################################### Data sources ######################### -[datasources] -# Upper limit of data sources that Grafana will return. This limit is a temporary configuration and it will be deprecated when pagination will be introduced on the list data sources API. -;datasource_limit = 5000 - -#################################### Cache server ############################# -[remote_cache] -# Either "redis", "memcached" or "database" default is "database" -;type = database - -# cache connectionstring options -# database: will use Grafana primary database. -# redis: config like redis server e.g. `addr=127.0.0.1:6379,pool_size=100,db=0,ssl=false`. Only addr is required. ssl may be 'true', 'false', or 'insecure'. -# memcache: 127.0.0.1:11211 -;connstr = - -#################################### Data proxy ########################### -[dataproxy] - -# This enables data proxy logging, default is false -;logging = false - -# How long the data proxy waits before timing out, default is 30 seconds. -# This setting also applies to core backend HTTP data sources where query requests use an HTTP client with timeout set. -;timeout = 30 - -# How many seconds the data proxy waits before sending a keepalive probe request. -;keep_alive_seconds = 30 - -# How many seconds the data proxy waits for a successful TLS Handshake before timing out. -;tls_handshake_timeout_seconds = 10 - -# How many seconds the data proxy will wait for a server's first response headers after -# fully writing the request headers if the request has an "Expect: 100-continue" -# header. A value of 0 will result in the body being sent immediately, without -# waiting for the server to approve. -;expect_continue_timeout_seconds = 1 - -# The maximum number of idle connections that Grafana will keep alive. -;max_idle_connections = 100 - -# How many seconds the data proxy keeps an idle connection open before timing out. -;idle_conn_timeout_seconds = 90 - -# If enabled and user is not anonymous, data proxy will add X-Grafana-User header with username into the request, default is false. -;send_user_header = false - -#################################### Analytics #################################### -[analytics] -# Server reporting, sends usage counters to stats.grafana.org every 24 hours. -# No ip addresses are being tracked, only simple counters to track -# running instances, dashboard and error counts. It is very helpful to us. -# Change this option to false to disable reporting. -;reporting_enabled = true - -# The name of the distributor of the Grafana instance. Ex hosted-grafana, grafana-labs -;reporting_distributor = grafana-labs - -# Set to false to disable all checks to https://grafana.net -# for new versions (grafana itself and plugins), check is used -# in some UI views to notify that grafana or plugin update exists -# This option does not cause any auto updates, nor send any information -# only a GET request to http://grafana.com to get latest versions -;check_for_updates = true - -# Google Analytics universal tracking code, only enabled if you specify an id here -;google_analytics_ua_id = - -# Google Tag Manager ID, only enabled if you specify an id here -;google_tag_manager_id = - -#################################### Security #################################### -[security] -# disable creation of admin user on first start of grafana -;disable_initial_admin_creation = false - -# default admin user, created on startup -;admin_user = admin - -# default admin password, can be changed before first start of grafana, or in profile settings -;admin_password = admin - -# used for signing -;secret_key = SW2YcwTIb9zpOOhoPsMm - -# disable gravatar profile images -;disable_gravatar = false - -# data source proxy whitelist (ip_or_domain:port separated by spaces) -;data_source_proxy_whitelist = - -# disable protection against brute force login attempts -;disable_brute_force_login_protection = false - -# set to true if you host Grafana behind HTTPS. default is false. -;cookie_secure = false - -# set cookie SameSite attribute. defaults to `lax`. can be set to "lax", "strict", "none" and "disabled" -;cookie_samesite = lax - -# set to true if you want to allow browsers to render Grafana in a ,