aboutsummaryrefslogtreecommitdiffstats
path: root/csit/metrics/policy-dashboard-example.json
diff options
context:
space:
mode:
authoradheli.tavares <adheli.tavares@est.tech>2022-02-02 14:53:10 +0000
committeradheli.tavares <adheli.tavares@est.tech>2022-02-15 16:50:14 +0000
commit7abe36cd557a9c2d5abebcf54a4ed5957a4168a1 (patch)
tree27b4ec7af94c5d456dd5326693ad9a54e0a20d3a /csit/metrics/policy-dashboard-example.json
parent67f7bd978865e8cad3cc84c2a4074f6ce02dff3e (diff)
Add docker configuration for Prometheus and Grafana
- docker compose file with the policy components - configuration files for components to allow usage of http - basic prometheus configuration to connect to api, pap, drools (apps/pdp), xaclm and apex - examples of metrics to be added to a dashboard in Grafana Issue-ID: POLICY-3886 Change-Id: Ic377b69b1a296017a85cb08ccdbbf9b8b281d8e3 Signed-off-by: adheli.tavares <adheli.tavares@est.tech>
Diffstat (limited to 'csit/metrics/policy-dashboard-example.json')
-rw-r--r--csit/metrics/policy-dashboard-example.json173
1 files changed, 173 insertions, 0 deletions
diff --git a/csit/metrics/policy-dashboard-example.json b/csit/metrics/policy-dashboard-example.json
new file mode 100644
index 00000000..ac479247
--- /dev/null
+++ b/csit/metrics/policy-dashboard-example.json
@@ -0,0 +1,173 @@
+{
+ "panels": [
+ {
+ "fieldConfig": {
+ "defaults": {
+ "color": {
+ "mode": "palette-classic"
+ },
+ "custom": {
+ "axisLabel": "",
+ "axisPlacement": "auto",
+ "barAlignment": 0,
+ "drawStyle": "line",
+ "fillOpacity": 0,
+ "gradientMode": "none",
+ "hideFrom": {
+ "legend": false,
+ "tooltip": false,
+ "viz": false
+ },
+ "lineInterpolation": "linear",
+ "lineWidth": 1,
+ "pointSize": 5,
+ "scaleDistribution": {
+ "type": "linear"
+ },
+ "showPoints": "auto",
+ "spanNulls": false,
+ "stacking": {
+ "group": "A",
+ "mode": "none"
+ },
+ "thresholdsStyle": {
+ "mode": "off"
+ }
+ },
+ "mappings": [],
+ "thresholds": {
+ "mode": "absolute",
+ "steps": [
+ {
+ "color": "green",
+ "value": null
+ },
+ {
+ "color": "red",
+ "value": 80
+ }
+ ]
+ },
+ "unit": "decbytes"
+ },
+ "overrides": []
+ },
+ "gridPos": {
+ "h": 8,
+ "w": 12,
+ "x": 0,
+ "y": 0
+ },
+ "id": 4,
+ "options": {
+ "legend": {
+ "calcs": [],
+ "displayMode": "list",
+ "placement": "bottom"
+ },
+ "tooltip": {
+ "mode": "single"
+ }
+ },
+ "targets": [
+ {
+ "datasource": {
+ "type": "prometheus",
+ "uid": "GdZ1Voanz"
+ },
+ "exemplar": true,
+ "expr": "jvm_memory_bytes_used{area=\"heap\"}",
+ "interval": "",
+ "legendFormat": "{{job}}",
+ "refId": "A"
+ }
+ ],
+ "title": "jvm_memory_bytes_used heap",
+ "type": "timeseries"
+ },
+ {
+ "fieldConfig": {
+ "defaults": {
+ "color": {
+ "mode": "palette-classic"
+ },
+ "custom": {
+ "axisLabel": "",
+ "axisPlacement": "auto",
+ "barAlignment": 0,
+ "drawStyle": "line",
+ "fillOpacity": 0,
+ "gradientMode": "none",
+ "hideFrom": {
+ "legend": false,
+ "tooltip": false,
+ "viz": false
+ },
+ "lineInterpolation": "linear",
+ "lineWidth": 1,
+ "pointSize": 5,
+ "scaleDistribution": {
+ "type": "linear"
+ },
+ "showPoints": "auto",
+ "spanNulls": false,
+ "stacking": {
+ "group": "A",
+ "mode": "none"
+ },
+ "thresholdsStyle": {
+ "mode": "off"
+ }
+ },
+ "mappings": [],
+ "thresholds": {
+ "mode": "absolute",
+ "steps": [
+ {
+ "color": "green",
+ "value": null
+ },
+ {
+ "color": "red",
+ "value": 80
+ }
+ ]
+ }
+ },
+ "overrides": []
+ },
+ "gridPos": {
+ "h": 9,
+ "w": 12,
+ "x": 0,
+ "y": 8
+ },
+ "id": 2,
+ "options": {
+ "legend": {
+ "calcs": [],
+ "displayMode": "list",
+ "placement": "bottom"
+ },
+ "tooltip": {
+ "mode": "single"
+ }
+ },
+ "targets": [
+ {
+ "datasource": {
+ "type": "prometheus",
+ "uid": "GdZ1Voanz"
+ },
+ "exemplar": true,
+ "expr": "jvm_threads_current{}",
+ "interval": "",
+ "legendFormat": "{{job}}",
+ "refId": "A"
+ }
+ ],
+ "title": "jvm_threads_current",
+ "type": "timeseries"
+ }
+ ]
+} \ No newline at end of file