Prometheus-JVM

在这里插入图片描述

一. JVM监控

  • 通过 jmx_exporter 启动端口来实现JVM的监控

Github

Kubernetes Deployment Java 服务,修改

wget https://repo1.maven.org/maven2/io/prometheus/jmx/jmx_prometheus_javaagent/0.19.0/jmx_prometheus_javaagent-0.19.0.jar# 编写配置文件,我是通过 hostPath 方式挂进 pod 中的
lowercaseOutputLabelNames: true
lowercaseOutputName: true
whitelistObjectNames: ["java.lang:type=OperatingSystem"]
rules:- pattern: 'java.lang<type=OperatingSystem><>((?!process_cpu_time)\w+):'name: os_$1type: GAUGEattrNameSnakeCase: true# 加入启动参数,其他部分省略,只看增加的spec:containers:- command:- java- -javaagent:/home/prometheus/jmx/jmx_prometheus_javaagent-0.19.0.jar=9999:/home/prometheus/jmx/config.yml		# 加入启动参数,指定端口为9999,并指定配置文件volumeMounts:        - mountPath: /home/prometheus/jmxname: jmxvolumes:- hostPath:path: /home/prometheus/jmxtype: ""name: jmx        

Service 修改或增加

apiVersion: v1
kind: Service
metadata:annotations:					# Service加入2行注释prometheus.io/jvm: "true"prometheus.io/port: "9999"name: yff-uef-apinamespace: yff
spec:ports:- name: httpport: 8080protocol: TCPtargetPort: 8080- name: jmx-metrices			# 并增加jmx所暴露的端口port: 9999protocol: TCPtargetPort: 9999selector:name: yff-uef-apiservice/env: prodtype: ClusterIP

Prometheus 增加 jvm 的配置

    - job_name: 'jvm'kubernetes_sd_configs:- role: endpointsrelabel_configs:- source_labels: [__meta_kubernetes_service_annotation_prometheus_io_jvm]action: keepregex: true- source_labels: [__address__, __meta_kubernetes_service_annotation_prometheus_io_port]action: replacetarget_label: __address__regex: ([^:]+)(?::\d+)?;(\d+)replacement: $1:$2- source_labels: [__meta_kubernetes_service_name]action: replaceregex: (.+)target_label: applicationreplacement: $1- action: labelmapregex: __meta_kubernetes_service_label_(.+)

Grafana 增加面板

  • 可以在官网寻找面板 JXM dashboard
  • 如下是我的 dashboard json信息
{"annotations": {"list": [{"builtIn": 1,"datasource": {"type": "datasource","uid": "grafana"},"enable": true,"hide": true,"iconColor": "rgba(0, 211, 255, 1)","name": "Annotations & Alerts","type": "dashboard"},{"datasource": {"type": "prometheus","uid": "xpMiKxl4k"},"enable": true,"expr": "resets(process_uptime_seconds{application=\"$application\", instance=\"$instance\"}[1m]) > 0","hide": false,"iconColor": "rgba(255, 96, 96, 1)","name": "Restart Detection","showIn": 0,"step": "1m","tagKeys": "restart-tag","textFormat": "uptime reset","titleFormat": "Restart"}]},"description": "Complete dashboard using metrics from prometheus JMX exporter, with drill down per job > instance","editable": true,"fiscalYearStartMonth": 0,"gnetId": 8563,"graphTooltip": 0,"id": 81,"links": [],"liveNow": false,"panels": [{"datasource": {"uid": "$datasource"},"fieldConfig": {"defaults": {"color": {"mode": "thresholds"},"mappings": [{"options": {"0": {"text": "DOWN"},"1": {"text": "UP"}},"type": "value"},{"options": {"match": "null","result": {"text": "DOWN"}},"type": "special"}],"thresholds": {"mode": "absolute","steps": [{"color": "#d44a3a","value": null},{"color": "#e24d42","value": 0},{"color": "#299c46","value": 1}]},"unit": "none"},"overrides": []},"gridPos": {"h": 4,"w": 3,"x": 3,"y": 0},"hideTimeOverride": false,"id": 21,"links": [{"targetBlank": true,"title": "Tomcat dashboard","url": "/d/chanjarster-tomcat-dashboard/tomcat-dashboard?$__url_time_range&$__all_variables"}],"maxDataPoints": 100,"options": {"colorMode": "value","graphMode": "none","justifyMode": "auto","orientation": "horizontal","reduceOptions": {"calcs": ["lastNotNull"],"fields": "","values": false},"textMode": "auto"},"pluginVersion": "9.5.7","targets": [{"datasource": {"uid": "$datasource"},"expr": "up{job=\"$job\",instance=\"$instance\"}","format": "time_series","instant": true,"intervalFactor": 1,"refId": "A"}],"title": "Status","type": "stat"},{"datasource": {"uid": "$datasource"},"fieldConfig": {"defaults": {"color": {"mode": "thresholds"},"decimals": 0,"mappings": [{"options": {"match": "null","result": {"text": "N/A"}},"type": "special"}],"thresholds": {"mode": "absolute","steps": [{"color": "green","value": null},{"color": "red","value": 80}]},"unit": "s"},"overrides": []},"gridPos": {"h": 4,"w": 4,"x": 6,"y": 0},"id": 14,"links": [],"maxDataPoints": 100,"options": {"colorMode": "none","graphMode": "none","justifyMode": "auto","orientation": "horizontal","reduceOptions": {"calcs": ["lastNotNull"],"fields": "","values": false},"textMode": "auto"},"pluginVersion": "9.5.7","targets": [{"datasource": {"uid": "$datasource"},"expr": "time() - process_start_time_seconds{job=\"$job\",instance=\"$instance\"}","format": "time_series","instant": true,"intervalFactor": 1,"refId": "A"}],"title": "Uptime","type": "stat"},{"datasource": {"uid": "$datasource"},"fieldConfig": {"defaults": {"color": {"mode": "thresholds"},"mappings": [{"options": {"match": "null","result": {"text": "N/A"}},"type": "special"}],"thresholds": {"mode": "absolute","steps": [{"color": "#299c46","value": null},{"color": "rgba(237, 129, 40, 0.89)","value": 35},{"color": "#d44a3a","value": 50}]},"unit": "dateTimeAsIso"},"overrides": []},"gridPos": {"h": 4,"w": 4,"x": 10,"y": 0},"id": 15,"interval": "","links": [],"maxDataPoints": 100,"options": {"colorMode": "none","graphMode": "none","justifyMode": "auto","orientation": "horizontal","reduceOptions": {"calcs": ["lastNotNull"],"fields": "","values": false},"textMode": "auto"},"pluginVersion": "9.5.7","targets": [{"datasource": {"uid": "$datasource"},"expr": "process_start_time_seconds{job=\"$job\",instance=\"$instance\"}*1000","format": "time_series","instant": true,"intervalFactor": 1,"refId": "A"}],"title": "Start time","type": "stat"},{"datasource": {"uid": "$datasource"},"fieldConfig": {"defaults": {"color": {"mode": "thresholds"},"decimals": 0,"mappings": [{"options": {"match": "null","result": {"text": "N/A"}},"type": "special"}],"thresholds": {"mode": "absolute","steps": [{"color": "green","value": null},{"color": "red","value": 80}]},"unit": "none"},"overrides": []},"gridPos": {"h": 4,"w": 7,"x": 14,"y": 0},"id": 19,"links": [],"maxDataPoints": 100,"options": {"colorMode": "none","graphMode": "none","justifyMode": "auto","orientation": "horizontal","reduceOptions": {"calcs": ["lastNotNull"],"fields": "/^jdk$/","values": false},"textMode": "auto"},"pluginVersion": "9.5.7","targets": [{"datasource": {"uid": "$datasource"},"expr": "label_join(jvm_info{job=\"$job\",instance=\"$instance\"}, \"jdk\", \", \", \"vendor\", \"runtime\", \"version\")","format": "table","instant": true,"intervalFactor": 1,"legendFormat": "","refId": "A"}],"title": "JVM Version","type": "stat"},{"datasource": {"uid": "$datasource"},"fieldConfig": {"defaults": {"color": {"mode": "thresholds"},"mappings": [{"options": {"match": "null","result": {"text": "N/A"}},"type": "special"}],"thresholds": {"mode": "absolute","steps": [{"color": "green","value": null},{"color": "red","value": 80}]},"unit": "none"},"overrides": []},"gridPos": {"h": 4,"w": 4,"x": 6,"y": 4},"id": 39,"interval": "","links": [],"maxDataPoints": 100,"options": {"colorMode": "none","graphMode": "none","justifyMode": "auto","orientation": "horizontal","reduceOptions": {"calcs": ["lastNotNull"],"fields": "","values": false},"textMode": "auto"},"pluginVersion": "9.5.7","targets": [{"datasource": {"uid": "$datasource"},"expr": "os_available_processors{job=\"$job\",instance=\"$instance\"}","format": "time_series","instant": true,"intervalFactor": 1,"refId": "A"}],"title": "Available CPUs","type": "stat"},{"datasource": {"uid": "$datasource"},"fieldConfig": {"defaults": {"color": {"mode": "thresholds"},"mappings": [{"options": {"match": "null","result": {"text": "N/A"}},"type": "special"}],"thresholds": {"mode": "absolute","steps": [{"color": "green","value": null},{"color": "red","value": 80}]},"unit": "none"},"overrides": []},"gridPos": {"h": 4,"w": 4,"x": 10,"y": 4},"id": 23,"links": [],"maxDataPoints": 100,"options": {"colorMode": "none","graphMode": "none","justifyMode": "auto","orientation": "horizontal","reduceOptions": {"calcs": ["mean"],"fields": "","values": false},"textMode": "auto"},"pluginVersion": "9.5.7","targets": [{"datasource": {"uid": "$datasource"},"expr": "os_system_load_average{job=\"$job\",instance=\"$instance\"}","format": "time_series","instant": true,"intervalFactor": 1,"refId": "A"}],"title": "System load average","type": "stat"},{"datasource": {"uid": "$datasource"},"fieldConfig": {"defaults": {"color": {"mode": "thresholds"},"mappings": [{"options": {"match": "null","result": {"text": "N/A"}},"type": "special"}],"thresholds": {"mode": "absolute","steps": [{"color": "green","value": null},{"color": "red","value": 80}]},"unit": "none"},"overrides": []},"gridPos": {"h": 4,"w": 4,"x": 14,"y": 4},"id": 38,"links": [],"maxDataPoints": 100,"options": {"colorMode": "none","graphMode": "none","justifyMode": "auto","orientation": "horizontal","reduceOptions": {"calcs": ["mean"],"fields": "","values": false},"textMode": "auto"},"pluginVersion": "9.5.7","targets": [{"datasource": {"uid": "$datasource"},"expr": "os_open_file_descriptor_count{job=\"$job\",instance=\"$instance\"}","format": "time_series","instant": true,"intervalFactor": 1,"refId": "A"}],"title": "Open file descriptors","type": "stat"},{"aliasColors": {},"bars": false,"dashLength": 10,"dashes": false,"datasource": {"uid": "$datasource"},"decimals": 1,"fill": 1,"fillGradient": 0,"gridPos": {"h": 9,"w": 24,"x": 0,"y": 8},"hiddenSeries": false,"id": 29,"legend": {"alignAsTable": true,"avg": false,"current": true,"max": true,"min": false,"show": true,"total": false,"values": true},"lines": true,"linewidth": 1,"links": [],"nullPointMode": "null","options": {"alertThreshold": true},"percentage": false,"pluginVersion": "9.5.7","pointradius": 5,"points": false,"renderer": "flot","seriesOverrides": [],"spaceLength": 10,"stack": false,"steppedLine": false,"targets": [{"datasource": {"uid": "$datasource"},"expr": "os_system_cpu_load{job=\"$job\",instance=\"$instance\"}","format": "time_series","intervalFactor": 1,"legendFormat": "System","refId": "B"},{"datasource": {"uid": "$datasource"},"expr": "os_process_cpu_load{job=\"$job\",instance=\"$instance\"}","format": "time_series","intervalFactor": 1,"legendFormat": "JVM","refId": "A"}],"thresholds": [],"timeRegions": [],"title": "CPU load","tooltip": {"shared": true,"sort": 0,"value_type": "individual"},"type": "graph","xaxis": {"mode": "time","show": true,"values": []},"yaxes": [{"decimals": 1,"format": "percentunit","logBase": 1,"show": true},{"format": "short","logBase": 1,"show": false}],"yaxis": {"align": false}},{"aliasColors": {},"bars": false,"dashLength": 10,"dashes": false,"datasource": {"uid": "$datasource"},"fill": 1,"fillGradient": 0,"gridPos": {"h": 9,"w": 12,"x": 0,"y": 17},"hiddenSeries": false,"id": 8,"legend": {"alignAsTable": true,"avg": true,"current": true,"max": true,"min": true,"rightSide": false,"show": true,"sortDesc": true,"total": false,"values": true},"lines": true,"linewidth": 1,"links": [],"maxPerRow": 2,"nullPointMode": "null","options": {"alertThreshold": true},"percentage": false,"pluginVersion": "9.5.7","pointradius": 5,"points": false,"renderer": "flot","repeat": "memarea","repeatDirection": "h","seriesOverrides": [{"alias": "Usage %","bars": true,"color": "#6d1f62","legend": false,"lines": false,"yaxis": 2,"zindex": -1}],"spaceLength": 10,"stack": false,"steppedLine": false,"targets": [{"datasource": {"uid": "$datasource"},"expr": "jvm_memory_bytes_used{area=\"$memarea\",job=\"$job\",instance=\"$instance\"}","format": "time_series","intervalFactor": 1,"legendFormat": "Used","refId": "A"},{"datasource": {"uid": "$datasource"},"expr": " jvm_memory_bytes_max{area=\"$memarea\",job=\"$job\",instance=\"$instance\"}","format": "time_series","intervalFactor": 1,"legendFormat": "Max","refId": "B"},{"datasource": {"uid": "$datasource"},"expr": "jvm_memory_bytes_used{area=\"$memarea\",job=\"$job\",instance=\"$instance\"} / jvm_memory_bytes_max >= 0","format": "time_series","intervalFactor": 1,"legendFormat": "Usage %","refId": "C"}],"thresholds": [],"timeRegions": [],"title": "Memory area [$memarea]","tooltip": {"shared": true,"sort": 0,"value_type": "individual"},"type": "graph","xaxis": {"mode": "time","show": true,"values": []},"yaxes": [{"format": "bytes","logBase": 1,"show": true},{"format": "percentunit","label": "","logBase": 1,"max": "1","min": "0","show": true}],"yaxis": {"align": false}},{"aliasColors": {},"bars": false,"dashLength": 10,"dashes": false,"datasource": {"uid": "$datasource"},"fill": 1,"fillGradient": 0,"gridPos": {"h": 9,"w": 12,"x": 0,"y": 26},"hiddenSeries": false,"id": 2,"legend": {"alignAsTable": true,"avg": true,"current": true,"max": true,"min": true,"rightSide": false,"show": true,"sort": "current","sortDesc": true,"total": false,"values": true},"lines": true,"linewidth": 1,"links": [],"maxPerRow": 2,"nullPointMode": "null","options": {"alertThreshold": true},"percentage": false,"pluginVersion": "9.5.7","pointradius": 5,"points": false,"renderer": "flot","repeat": "mempool","repeatDirection": "h","seriesOverrides": [],"spaceLength": 10,"stack": false,"steppedLine": false,"targets": [{"datasource": {"uid": "$datasource"},"expr": "jvm_memory_pool_bytes_max{pool=\"$mempool\",job=\"$job\",instance=\"$instance\"}","format": "time_series","interval": "","intervalFactor": 1,"legendFormat": "Max","metric": "jvm_memory_bytes_used","refId": "B","step": 5},{"datasource": {"uid": "$datasource"},"expr": "jvm_memory_pool_bytes_used{pool=\"$mempool\",job=\"$job\",instance=\"$instance\"}","format": "time_series","interval": "","intervalFactor": 1,"legendFormat": "Used","metric": "jvm_memory_bytes_used","refId": "A","step": 5},{"datasource": {"uid": "$datasource"},"expr": "jvm_memory_pool_bytes_committed{pool=\"$mempool\",job=\"$job\",instance=\"$instance\"}","format": "time_series","interval": "","intervalFactor": 1,"legendFormat": "Committed","metric": "jvm_memory_bytes_used","refId": "C","step": 5}],"thresholds": [],"timeRegions": [],"title": "Memory pool [$mempool]","tooltip": {"shared": true,"sort": 0,"value_type": "individual"},"type": "graph","xaxis": {"mode": "time","show": true,"values": []},"yaxes": [{"format": "bytes","logBase": 1,"show": true},{"format": "short","logBase": 1,"show": true}],"yaxis": {"align": false}},{"aliasColors": {},"bars": false,"dashLength": 10,"dashes": false,"datasource": {"uid": "$datasource"},"decimals": 0,"fill": 1,"fillGradient": 0,"gridPos": {"h": 9,"w": 12,"x": 0,"y": 53},"hiddenSeries": false,"id": 6,"legend": {"alignAsTable": true,"avg": false,"current": true,"max": true,"min": true,"show": true,"total": false,"values": true},"lines": true,"linewidth": 1,"links": [],"nullPointMode": "null","options": {"alertThreshold": true},"percentage": false,"pluginVersion": "9.5.7","pointradius": 5,"points": false,"renderer": "flot","seriesOverrides": [],"spaceLength": 10,"stack": false,"steppedLine": false,"targets": [{"datasource": {"uid": "$datasource"},"expr": "increase(jvm_gc_collection_seconds_count{job=\"$job\",instance=~\"$instance\"}[$__interval])","format": "time_series","interval": "60s","intervalFactor": 1,"legendFormat": "{{gc}}","metric": "","refId": "A","step": 10}],"thresholds": [],"timeRegions": [],"title": "GC count increase","tooltip": {"shared": true,"sort": 0,"value_type": "individual"},"type": "graph","xaxis": {"mode": "time","show": true,"values": []},"yaxes": [{"decimals": 0,"format": "short","logBase": 1,"show": true},{"format": "short","logBase": 1,"show": false}],"yaxis": {"align": false}},{"aliasColors": {},"bars": false,"dashLength": 10,"dashes": false,"datasource": {"uid": "$datasource"},"decimals": 0,"fill": 1,"fillGradient": 0,"gridPos": {"h": 9,"w": 12,"x": 12,"y": 53},"hiddenSeries": false,"id": 5,"legend": {"alignAsTable": true,"avg": false,"current": true,"max": true,"min": true,"rightSide": false,"show": true,"total": false,"values": true},"lines": true,"linewidth": 1,"links": [],"nullPointMode": "null","options": {"alertThreshold": true},"percentage": false,"pluginVersion": "9.5.7","pointradius": 5,"points": false,"renderer": "flot","seriesOverrides": [],"spaceLength": 10,"stack": false,"steppedLine": false,"targets": [{"datasource": {"uid": "$datasource"},"expr": "increase(jvm_gc_collection_seconds_sum{job=\"$job\",instance=~\"$instance\"}[$__interval])","format": "time_series","interval": "60s","intervalFactor": 1,"legendFormat": "{{gc}}","metric": "jvm_gc_collection_seconds_sum","refId": "A","step": 10}],"thresholds": [],"timeRegions": [],"title": "GC time","tooltip": {"shared": true,"sort": 0,"value_type": "individual"},"type": "graph","xaxis": {"mode": "time","show": true,"values": []},"yaxes": [{"format": "s","logBase": 1,"show": true},{"format": "short","logBase": 1,"show": false}],"yaxis": {"align": false}},{"aliasColors": {},"bars": false,"dashLength": 10,"dashes": false,"datasource": {"uid": "$datasource"},"decimals": 0,"fill": 1,"fillGradient": 0,"gridPos": {"h": 9,"w": 12,"x": 0,"y": 62},"hiddenSeries": false,"id": 3,"legend": {"alignAsTable": true,"avg": false,"current": true,"hideZero": true,"max": true,"min": false,"rightSide": false,"show": true,"total": false,"values": true},"lines": true,"linewidth": 1,"links": [],"nullPointMode": "null","options": {"alertThreshold": true},"percentage": false,"pluginVersion": "9.5.7","pointradius": 5,"points": false,"renderer": "flot","seriesOverrides": [],"spaceLength": 10,"stack": false,"steppedLine": false,"targets": [{"datasource": {"uid": "$datasource"},"expr": "jvm_threads_current{job=\"$job\",instance=\"$instance\"}","format": "time_series","intervalFactor": 5,"legendFormat": "JVM current threads","metric": "jvm_threads_current","refId": "A","step": 10},{"datasource": {"uid": "$datasource"},"expr": "jvm_threads_daemon{job=\"$job\",instance=\"$instance\"}","format": "time_series","intervalFactor": 5,"legendFormat": "JVM daemon threads","metric": "jvm_threads_daemon","refId": "B","step": 10},{"datasource": {"uid": "$datasource"},"expr": "jvm_threads_deadlocked{job=\"$job\",instance=\"$instance\"}","format": "time_series","intervalFactor": 1,"legendFormat": "JVM deadlocked threads","refId": "C"}],"thresholds": [],"timeRegions": [],"title": "Threads used","tooltip": {"shared": true,"sort": 0,"value_type": "individual"},"type": "graph","xaxis": {"mode": "time","show": true,"values": []},"yaxes": [{"decimals": 0,"format": "short","logBase": 1,"show": true},{"format": "short","logBase": 1,"show": false}],"yaxis": {"align": false}},{"aliasColors": {},"bars": false,"dashLength": 10,"dashes": false,"datasource": {"type": "prometheus","uid": "$datasource"},"fill": 1,"fillGradient": 0,"gridPos": {"h": 9,"w": 12,"x": 12,"y": 62},"hiddenSeries": false,"id": 4,"legend": {"alignAsTable": true,"avg": false,"current": true,"max": true,"min": true,"show": true,"total": false,"values": true},"lines": true,"linewidth": 1,"links": [],"nullPointMode": "null","options": {"alertThreshold": true},"percentage": false,"pluginVersion": "9.5.7","pointradius": 5,"points": false,"renderer": "flot","seriesOverrides": [],"spaceLength": 10,"stack": false,"steppedLine": false,"targets": [{"datasource": {"uid": "$datasource"},"editorMode": "code","expr": "jvm_classes_loaded_total{job=\"$job\", instance=\"$instance\"}","format": "time_series","interval": "","intervalFactor": 5,"legendFormat": "loaded","metric": "jvm_classes_loaded","range": true,"refId": "A","step": 10}],"thresholds": [],"timeRegions": [],"title": "Class loading","tooltip": {"shared": true,"sort": 0,"value_type": "individual"},"type": "graph","xaxis": {"mode": "time","show": true,"values": []},"yaxes": [{"$$hashKey": "object:412","decimals": 0,"format": "short","label": "","logBase": 1,"show": true},{"$$hashKey": "object:413","format": "short","logBase": 1,"show": false}],"yaxis": {"align": false}},{"aliasColors": {},"bars": false,"dashLength": 10,"dashes": false,"datasource": {"type": "prometheus","uid": "$datasource"},"fill": 1,"fillGradient": 0,"gridPos": {"h": 10,"w": 24,"x": 0,"y": 71},"hiddenSeries": false,"id": 44,"legend": {"alignAsTable": true,"avg": false,"current": true,"max": true,"min": true,"show": true,"total": false,"values": true},"lines": true,"linewidth": 1,"links": [],"nullPointMode": "null","options": {"alertThreshold": true},"percentage": false,"pluginVersion": "9.5.7","pointradius": 5,"points": false,"renderer": "flot","seriesOverrides": [],"spaceLength": 10,"stack": false,"steppedLine": false,"targets": [{"datasource": {"uid": "$datasource"},"editorMode": "code","expr": "os_total_physical_memory_size{job=\"$job\",instance=\"$instance\"}","format": "time_series","intervalFactor": 1,"legendFormat": "Total physical memory","range": true,"refId": "A"},{"datasource": {"uid": "$datasource"},"editorMode": "code","expr": "os_committed_virtual_memory_size{job=\"$job\",instance=\"$instance\"}","format": "time_series","intervalFactor": 1,"legendFormat": "Committed virtual memory","range": true,"refId": "B"},{"datasource": {"uid": "$datasource"},"editorMode": "code","expr": "os_free_physical_memory_size{job=\"$job\",instance=\"$instance\"}","format": "time_series","intervalFactor": 1,"legendFormat": "Free physical memory","range": true,"refId": "C"}],"thresholds": [],"timeRegions": [],"title": "Physical memory","tooltip": {"shared": true,"sort": 0,"value_type": "individual"},"type": "graph","xaxis": {"mode": "time","show": true,"values": []},"yaxes": [{"$$hashKey": "object:486","format": "decbytes","logBase": 1,"show": true},{"$$hashKey": "object:487","format": "short","logBase": 1,"show": true}],"yaxis": {"align": false}}],"refresh": "5s","schemaVersion": 38,"style": "dark","tags": ["JVM","Kubernetes"],"templating": {"list": [{"current": {"selected": false,"text": "Prometheus","value": "Prometheus"},"hide": 0,"includeAll": false,"multi": false,"name": "datasource","options": [],"query": "prometheus","queryValue": "","refresh": 1,"regex": "","skipUrlSync": false,"type": "datasource"},{"current": {"selected": true,"text": "jvm","value": "jvm"},"hide": 0,"label": "job","name": "job","options": [{"selected": true,"text": "jvm","value": "jvm"}],"query": "jvm","skipUrlSync": false,"type": "textbox"},{"current": {"selected": false,"text": "digitalclinic-queueflow-api-jmx","value": "digitalclinic-queueflow-api-jmx"},"datasource": {"type": "prometheus","uid": "xpMiKxl4k"},"definition": "label_values(jvm_info{job=\"$job\"},application)","hide": 0,"includeAll": false,"label": "Application","multi": false,"name": "application","options": [],"query": {"query": "label_values(jvm_info{job=\"$job\"},application)","refId": "StandardVariableQuery"},"refresh": 2,"regex": "","skipUrlSync": false,"sort": 0,"tagValuesQuery": "","tagsQuery": "","type": "query","useTags": false},{"allValue": ".*","current": {"selected": false,"text": "172.17.204.47:9999","value": "172.17.204.47:9999"},"datasource": {"type": "prometheus","uid": "xpMiKxl4k"},"definition": "label_values(jvm_info{application=\"$application\"},instance)","hide": 0,"includeAll": false,"label": "instance","multi": false,"name": "instance","options": [],"query": {"query": "label_values(jvm_info{application=\"$application\"},instance)","refId": "StandardVariableQuery"},"refresh": 1,"regex": "","skipUrlSync": false,"sort": 0,"tagValuesQuery": "","tagsQuery": "","type": "query","useTags": false},{"current": {"selected": true,"text": ["All"],"value": ["$__all"]},"datasource": {"type": "prometheus","uid": "$datasource"},"definition": "","hide": 2,"includeAll": true,"multi": true,"name": "mempool","options": [],"query": {"query": "label_values(jvm_memory_pool_bytes_max{job=\"$job\", instance=\"$instance\"}, pool)","refId": "Prometheus-mempool-Variable-Query"},"refresh": 1,"regex": "","skipUrlSync": false,"sort": 1,"tagValuesQuery": "","tagsQuery": "","type": "query","useTags": false},{"current": {"selected": true,"text": ["All"],"value": ["$__all"]},"datasource": {"type": "prometheus","uid": "$datasource"},"definition": "","hide": 2,"includeAll": true,"multi": true,"name": "memarea","options": [],"query": {"query": "label_values(jvm_memory_bytes_used{job=\"$job\", instance=\"$instance\"}, area)","refId": "Prometheus-memarea-Variable-Query"},"refresh": 1,"regex": "","skipUrlSync": false,"sort": 0,"tagValuesQuery": "","tagsQuery": "","type": "query","useTags": false}]},"time": {"from": "now-15m","to": "now"},"timepicker": {"refresh_intervals": ["5s","10s","30s","1m","5m"],"time_options": ["5m","15m","1h","6h","12h","24h","2d","7d","30d"]},"timezone": "","title": "JVM dashboard","uid": "chanjarster-jvm-dashboard","version": 3,"weekStart": ""
}

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处:http://www.rhkb.cn/news/226703.html

如若内容造成侵权/违法违规/事实不符,请联系长河编程网进行投诉反馈email:809451989@qq.com,一经查实,立即删除!

相关文章

limit查询报错问题

分页时候 limit 后面的公式是 (pageNum-1)*pageSize,pageSize 但是在数据库查询时候 当然在.XML中也不能像下面这么写,如果要计算 在业务层或者控制层计算好再传值进来

c++ / day01

1. 整理思维导图 2. 定义自己的命名空间myspace&#xff0c;并在myspace中定义一个字符串&#xff0c;实现求字符串大小的函数。 代码 #include <iostream>using namespace std;namespace myns {unsigned long long strlen(string s){return s.length();}}int main() {…

Chatgpt如何共享可以防止封号!

ChatGPT 是一个基于 GPT-3.5/GPT-4 模型的对话系统&#xff0c;它主要用于处理自然语言对话。通过训练模型来模拟人类的语言行为&#xff0c;ChatGPT 可以通过文本交流与用户互动。每个新版本的 GPT 通常都会在模型规模、性能和其他方面有一些改进。在目前免费版GPT-3.5 中&…

CNVD原创漏洞审核和处理流程

一、CNVD原创漏洞审核归档和发布主流程 &#xff08;一&#xff09;审核和归档流程 审核流程分为一级、二级、三级审核&#xff0c;其中一级审核主要对提交的漏洞信息完整性进行审核&#xff0c;漏洞符合可验证&#xff08;通用型漏洞有验证代码信息或多个互联网实例、事件型…

Tekton

一. 概念 Tekton 官网 Github Tekton 是一种用于构建 CI/CD 管道的云原生解决方案&#xff0c;它由提供构建块的 Tekton Pipelines&#xff0c;Tekton 作为 Kubernetes 集群上的扩展安装和运行&#xff0c;包含一组 Kubernetes 自定义资源&#xff0c;这些资源定义了您可以为…

Ubuntu 20.04使用Livox Mid-360

参考文章&#xff1a; Ubuntu 20.04使用Livox mid 360 测试 FAST_LIO-CSDN博客 一&#xff1a;Livox mid 360驱动安装与测试 前言&#xff1a; Livox mid360需要使用Livox-SDK2&#xff0c;而非Livox-SDK&#xff0c;以及对应的livox_ros_driver2 。 1. 安装Livox-SDK2 参…

java SSM课程平台系统myeclipse开发mysql数据库springMVC模式java编程计算机网页设计

一、源码特点 java SSM课程平台系统是一套完善的web设计系统&#xff08;系统采用SSM框架进行设计开发&#xff0c;springspringMVCmybatis&#xff09;&#xff0c;对理解JSP java编程开发语言有帮助&#xff0c;系统具有完整的源代码和数据库&#xff0c;系统主要采用B/S…

RHCE9学习指南 第11章 网络配置

11.1 网络基础知识 一台主机需要配置必要的网络信息&#xff0c;才可以连接到互联网。需要的配置网络信息包括IP&#xff0c;子网掩码&#xff0c;网关和DNS。 11.1.1 IP地址 在计算机中对IP的标记使用的是32bit的二进制&#xff0c;例如&#xff0c; 11000000 10101000 00…

Linux上管理不同版本的 JDK

当在 Linux 上管理不同版本的 JDK 时&#xff0c;使用 yum 和 dnf 可以方便地安装和切换不同的 JDK 版本。本文将介绍如何通过这两个包管理工具安装 JDK 1.8 和 JDK 11&#xff0c;并利用软连接动态关联这些版本。 安装 JDK 1.8 和 JDK 11 使用 yum 安装 JDK 1.8 打开终端并…

基于Wenet长音频分割降噪识别

Wenet是一个流行的语音处理工具&#xff0c;它专注于长音频的处理&#xff0c;具备分割、降噪和识别功能。它的长音频分割降噪识别功能允许对长时间录制的音频进行分段处理&#xff0c;首先对音频进行分割&#xff0c;将其分解成更小的段落或语音片段。接着进行降噪处理&#x…

循环冗余效验码的计算方法

循环冗余效验码的计算方法 G&#xff08;x&#xff09;&#xff1a; 在了解计算方法之前我们首先要明白G&#xff08;x&#xff09;表明的意思&#xff0c;这一步非常重要&#xff01; 例如&#xff0c;G&#xff08;x&#xff09; x^3 x^2 1 &#xff0c;该式子表明的编…

Redis实现日榜|直播间榜单|排行榜|Redis实现日榜01

前言 直播间贡献榜是一种常见的直播平台功能&#xff0c;用于展示观众在直播过程中的贡献情况。它可以根据观众的互动行为和贡献值进行排名&#xff0c;并实时更新&#xff0c;以鼓励观众积极参与直播活动。 在直播间贡献榜中&#xff0c;每个观众都有一个对应的贡献值&#…

【NI-RIO入门】理解Windows、Real Time与FPGA之间数据通信的原理

于NI kb摘录 1.概述 对于NI RIO系列设备&#xff08;CompactRIO、sbRIO、myRIO等&#xff09;进行编程时&#xff0c;需要注意有三个不同的组件。 人机界面 (HMI) 。有时称为“主机”&#xff0c;为用户提供图形用户界面&#xff08;GUI&#xff09;&#xff0c;用于监控系统…

阿里云数据库polardb怎么收费?

阿里云数据库PolarDB租用价格表&#xff0c;云数据库PolarDB MySQL版2核4GB&#xff08;通用&#xff09;、2个节点、60 GB存储空间55元5天&#xff0c;云数据库 PolarDB 分布式版标准版2核16G&#xff08;通用&#xff09;57.6元3天&#xff0c;阿里云百科aliyunbaike.com分享…

搭建flink集群 —— 筑梦之路

Apache Flink 是一个框架和分布式处理引擎&#xff0c; 用于在无边界和有边界数据流上进行有状态的计算。 Flink 能在所有常见集群环境中运行&#xff0c;并能以内存速度和任意规模进行计算。 Flink并没有依靠自身实现所有分布式系统需要解决的问题&#xff0c; 而是在已有集群…

基于 Vue3 和 WebSocket 实现的简单网页聊天应用

首先附上项目介绍,后面详细解释技术细节 1. chat-websocket 一个基于Vue3和WebSocket的简易网络聊天室项目&#xff0c;包括服务端和客户端部分。 项目地址 websocket-chat 下面是项目的主要组成部分和功能&#xff1a; 项目结构 chat-websocket/ |-- server/ # WebSocket 服…

蓝桥杯c/c++程序设计——冶炼金属

冶炼金属 问题描述 小蓝有一个神奇的炉子用于将普通金属 O 冶炼成为一种特殊金属 X。这个炉子有一个称作转换率的属性 V&#xff0c;V 是一个正整数&#xff0c;这意味着消耗 V 个普通金属 O 恰好可以冶炼出一个特殊金属 X&#xff0c;当普通金属 O 的数目不足 V 时&#xff0…

Linux习题1

解析&#xff1a;Tcsh是csh的增强版&#xff0c;并且完全兼容csh。它不但具有csh的全部功能&#xff0c;还具有命令行编辑、拼写校正、可编程字符集、历史记录、作业控制等功能。 AWK是一种优良的文本处理工具&#xff0c;Linux及Unix环境中现有的功能最强大的数据处理引擎之一…

C++ Qt开发:SqlRelationalTable关联表组件

Qt 是一个跨平台C图形界面开发库&#xff0c;利用Qt可以快速开发跨平台窗体应用程序&#xff0c;在Qt中我们可以通过拖拽的方式将不同组件放到指定的位置&#xff0c;实现图形化开发极大的方便了开发效率&#xff0c;本章将重点介绍SqlRelationalTable关联表组件的常用方法及灵…

纯CSS实现马里奥效果,回忆一下童年吧

&#x1f4e2; 鸿蒙专栏&#xff1a;想学鸿蒙的&#xff0c;冲 &#x1f4e2; C语言专栏&#xff1a;想学C语言的&#xff0c;冲 &#x1f4e2; VUE专栏&#xff1a;想学VUE的&#xff0c;冲这里 &#x1f4e2; CSS专栏&#xff1a;想学CSS的&#xff0c;冲这里 &#x1f4…