File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -2709,6 +2709,146 @@ data:
27092709 "title": "Advisory account data usage",
27102710 "type": "timeseries"
27112711 },
2712+ {
2713+ "datasource": {
2714+ "type": "prometheus",
2715+ "uid": "$datasource"
2716+ },
2717+ "description": "",
2718+ "fieldConfig": {
2719+ "defaults": {
2720+ "color": {
2721+ "mode": "palette-classic"
2722+ },
2723+ "custom": {
2724+ "axisBorderShow": false,
2725+ "axisCenteredZero": false,
2726+ "axisColorMode": "text",
2727+ "axisLabel": "Items",
2728+ "axisPlacement": "auto",
2729+ "barAlignment": 0,
2730+ "barWidthFactor": 0.6,
2731+ "drawStyle": "line",
2732+ "fillOpacity": 0,
2733+ "gradientMode": "none",
2734+ "hideFrom": {
2735+ "legend": false,
2736+ "tooltip": false,
2737+ "viz": false
2738+ },
2739+ "insertNulls": false,
2740+ "lineInterpolation": "linear",
2741+ "lineWidth": 1,
2742+ "pointSize": 5,
2743+ "scaleDistribution": {
2744+ "type": "linear"
2745+ },
2746+ "showPoints": "never",
2747+ "spanNulls": false,
2748+ "stacking": {
2749+ "group": "A",
2750+ "mode": "none"
2751+ },
2752+ "thresholdsStyle": {
2753+ "mode": "off"
2754+ }
2755+ },
2756+ "links": [
2757+
2758+ ],
2759+ "mappings": [
2760+
2761+ ],
2762+ "noValue": "0%",
2763+ "thresholds": {
2764+ "mode": "absolute",
2765+ "steps": [
2766+ {
2767+ "color": "green"
2768+ },
2769+ {
2770+ "color": "red",
2771+ "value": 80
2772+ }
2773+ ]
2774+ },
2775+ "unit": "none"
2776+ },
2777+ "overrides": [
2778+ {
2779+ "matcher": {
2780+ "id": "byName",
2781+ "options": "hit ratio"
2782+ },
2783+ "properties": [
2784+ {
2785+ "id": "custom.axisLabel",
2786+ "value": "Hit ratio"
2787+ },
2788+ {
2789+ "id": "unit",
2790+ "value": "percentunit"
2791+ },
2792+ {
2793+ "id": "custom.axisPlacement",
2794+ "value": "right"
2795+ }
2796+ ]
2797+ }
2798+ ]
2799+ },
2800+ "gridPos": {
2801+ "h": 6,
2802+ "w": 12,
2803+ "x": 12,
2804+ "y": 34
2805+ },
2806+ "id": 96,
2807+ "options": {
2808+ "legend": {
2809+ "calcs": [
2810+
2811+ ],
2812+ "displayMode": "list",
2813+ "placement": "bottom",
2814+ "showLegend": true
2815+ },
2816+ "tooltip": {
2817+ "hideZeros": false,
2818+ "mode": "multi",
2819+ "sort": "none"
2820+ }
2821+ },
2822+ "pluginVersion": "11.6.3",
2823+ "targets": [
2824+ {
2825+ "datasource": {
2826+ "type": "prometheus",
2827+ "uid": "$datasource"
2828+ },
2829+ "editorMode": "code",
2830+ "expr": "sum(patchman_engine_manager_package_account_data_cache)",
2831+ "hide": false,
2832+ "legendFormat": "items",
2833+ "range": true,
2834+ "refId": "A"
2835+ },
2836+ {
2837+ "datasource": {
2838+ "type": "prometheus",
2839+ "uid": "$datasource"
2840+ },
2841+ "editorMode": "code",
2842+ "expr": "sum(patchman_engine_manager_package_account_data_cache{type=\"hit\"})/sum(patchman_engine_manager_package_account_data_cache)",
2843+ "hide": false,
2844+ "legendFormat": "hit ratio",
2845+ "range": true,
2846+ "refId": "B"
2847+ }
2848+ ],
2849+ "title": "Package account data usage",
2850+ "type": "timeseries"
2851+ },
27122852 {
27132853 "collapsed": false,
27142854 "gridPos": {
You can’t perform that action at this time.
0 commit comments