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.mzph.cn/news/240548.shtml

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

相关文章

Nacos单机安装

采用的版本是Nacos Release 2.3.0 (Nov 30, 2023) alibaba/nacos GitHub 依赖于jdk&#xff0c;要先安装好jdk1.8。 修改配置 下载解压后&#xff0c;修改配置文件&#xff1a;conf/application.properties。 nacos.core.auth.plugin.nacos.token.secret.key 官方文档Na…

【SVN】centos7搭建svn--亲测能通

centos7.6搭建svn 1 知识小课堂1.1 CentOS1.2 SVN 2 搭建过程2.1 前期准备2.2 通过yum命令安装svnserve2.3 创建版本库目录2.4 创建svn版本库2.5 配置修改2.5 防火墙配置2.6 启动或关闭svn服务器2.6.1 进程守护2.6.2 检测svn端口3690是否已经监听&#xff1a;2.6.3 关闭SVN 2.7…

随机森林 2(决策树)

通过 随机森林 1 的介绍&#xff0c;相信大家对随机森林都有了一个初步的认知&#xff0c;知道了随机和森林分别指的是什么&#xff0c;以及决策树根据什么选择内部节点。本文将会从森林深入到树&#xff0c;去看一下决策树是如何构建的。网上很多文章都讲了决策树如何构建&…

Linux常用基本命令(三)

一、显示命令 1. cat 通式&#xff1a;cat 选项 文件名 只能看普通的文本文件 缺点&#xff1a;如果内容过多会显示不全 选项效果-n显示行号包括空行-b跳过空白行编号-s讲所有的连续的多个空行替换为一个空行&#xff08;压缩成一个空行&#xff09;-A显示隐藏字符 三个标准文件…

【XR806开发板试用】通过http请求从心知天气网获取天气预报信息

1. 开发环境搭建 本次评测开发环境搭建在windows11的WSL2的Ubuntu20.04中&#xff0c;关于windows安装WSL2可以参考文章: Windows下安装Linux(Ubuntu20.04)子系统&#xff08;WSL&#xff09; (1) 在WSL的Ubuntu20.04下安装必要的工具的. 安装git: sudo apt-get install git …

【UML】第9篇 类图(概念、作用和抽象类)(1/3)

目录 一、类图的概念 二、类图的主要作用 三、类图的构成 3.1 类的名称 3.2 抽象类&#xff08;Abstract Class&#xff09; 一、类图的概念 类图是UML模型中静态视图。它用来描述系统中的有意义的概念&#xff0c;包括具体的概念、抽象的概念、实现方面的概念等。静态视…

服务器数据恢复-误操作导致xfs分区数据丢失的数据恢复案例

服务器数据恢复环境&#xff1a; 某品牌OceanStorT系列某型号存储MD1200磁盘柜&#xff0c;组建的raid5磁盘阵列。上层分配了1个lun&#xff0c;安装的linux操作系统&#xff0c;划分两个分区&#xff0c;分区一通过lvm进行扩容&#xff0c;分区二格式化为xfs文件系统。 服务器…

深入了解C编译管道

文章目录 引言1. 预处理阶段2. 编译阶段3. 汇编阶段4. 链接阶段5.流程图结论 引言 C编译管道是软件开发中至关重要的工具&#xff0c;它负责将C语言源代码转换为可执行的机器代码。理解C编译管道的工作原理有助于提高代码的可读性、可维护性&#xff0c;并有助于优化生成的可执…

css画三角形

css画三角形 <!doctype html> <html lang"en"><head><meta charset"UTF-8"><meta name"viewport"content"widthdevice-width, user-scalableno, initial-scale1.0, maximum-scale1.0, minimum-scale1.0"&g…

python调用GPT API

每次让gpt给我生成一个调用api的程序时&#xff0c;他经常会调用以前的一些api的方法&#xff0c;导致我的程序运行错误&#xff0c;所以这期记录一下使用新的方法区调用api 参考网址 Migration Guide&#xff0c;这里简要地概括了一下新版本做了哪些更改 OpenAI Python API l…

WEB 3D技术 three.js 设置图像随窗口大小变化而变化

本文 我们来讲讲我们图层适应窗口变化的效果 可能这样说有点笼统 那么 自适应应该大家更熟悉 就是 当我们窗口发生变化说 做一些界面调整比例 例如 我们这样一个i项目界面 我们打开 F12 明显有一部分被挡住了 那么 我们可以刷新 这样是正常了 但是 我们将F12关掉 给F12的…

Uniapp 开发 BLE

BLE 低功耗蓝牙&#xff08;Bluetooth Low Energy&#xff0c;或称Bluetooth LE、BLE&#xff0c;旧商标Bluetooth Smart&#xff09;&#xff0c;用于医疗保健、运动健身、安防、工业控制、家庭娱乐等领域。在如今的物联网时代下大放异彩&#xff0c;扮演者重要一环&#xff…

PIC单片机项目(8)——基于PIC16F877A的温度光照检测装置的protues仿真

1.功能设计 使用PIC16F877A单片机&#xff0c;进行温度检测、光照检测。温度使用的是DS18B20&#xff0c;光照检测直接利用的AD转换。 光照太暗就开灯&#xff0c;温度太高就开风扇。温度阈值和光照阈值都实时显示在LCD1602屏幕上面。 完成了protues仿真。文件里面包含代码和仿…

Liteos移植_STM32_HAL库

0 开发环境 STM32CubeMX(HAL库)keil 5正点原子探索者STM32F4ZET6LiteOS-develop分支 1 STM32CubeMX创建工程 如果有自己的工程&#xff0c;直接从LiteOS源码获取开始 关于STM32CubeMX的安装&#xff0c;看我另一篇博客STM32CubeMX安装 工程配置 创建新工程 选择芯片【STM32F…

第一次记录QPSK,BSPK,MPSK,QAM—MATLAB实现

最近有偶然的机会学习了一次QPSK防止以后忘记又得找资料&#xff0c;这里就详细的记录一下 基于 QPSK 的通信系统如图 1 所示&#xff0c;QPSK 调制是目前最常用的一种卫星数字和数 字集群信号调制方式&#xff0c;它具有较高的频谱利用率、较强的抗干扰性、在电路上实现也较为…

蓝牙物联网智能家居安防检测系统解决方案

随着科学技术的发展&#xff0c;我们的生活方式正在进行着翻天覆地的变化。互联网技术的实现推动了物联网新模式的出现改变着我们生活&#xff0c;使我们的社会生产生活变得更加的便利与人性化。借此现如今我们的生活方式更是向智能家居方向所发展&#xff0c;这一课题正在被相…

电脑组件整理(持续更新...)

1、*芯片 CPU(承担着负责的运算)&#xff1b; 量大阵营&#xff1a; AMD &#xff5c; Intel i5 12400F 6核12线 7nm -- 1189元 r7 5700x 8核16线 7 nm -- 1500元&#xff1b; ARM采用的是RISC精简指令集计算、 主要应用于移动终端之中&#xff0c;类如手机&#xff0c…

了解树和学习二叉树

1.树 1.1 概念 树是一种 非线性 的数据结构&#xff0c;它是由 n &#xff08; n>0 &#xff09;个有限结点组成一个具有层次关系的集合。 把它叫做树是因为它看 起来像一棵倒挂的树&#xff0c;也就是说它是根朝上&#xff0c;而叶朝下的 。 注意&#xff1a;树形结构中…

Kafka核心参数(带完善)

客户端 api Kafka提供了以下两套客户端API HighLevel(重点)LowLevel HighLevel API封装了kafka的运行细节&#xff0c;使用起来比较简单&#xff0c;是企业开发过程中最常用的客户端API。 而LowLevel API则需要客户端自己管理Kafka的运行细节&#xff0c;Partition&#x…

Linux-Keepalived(VRRP协议)高可用集群搭建

Linux-Keepalived&#xff08;VRRP协议&#xff09;高可用集群搭建 一、VRRP简介1.1 什么是VRRP&#xff1f;1.2 keepalived是什么&#xff1f;1.3 keepalived工作原理 二、实操配置过程2.1 试验模型2.2. Keepalived监控和维护VRRP集群的步骤2.2.1 安装keepalived2.2.2 配置kee…