|
| 1 | +{ |
| 2 | + "SOLR": { |
| 3 | + "SOLR_SERVER": [ |
| 4 | + { |
| 5 | + "name": "solr", |
| 6 | + "label": "Solr Web UI", |
| 7 | + "description": "This host-level alert is triggered if the Solr Cloud Instance is unreachable.", |
| 8 | + "interval": 1, |
| 9 | + "scope": "ANY", |
| 10 | + "source": { |
| 11 | + "type": "WEB", |
| 12 | + "uri": { |
| 13 | + "http": "{{solr-config-env/solr_config_port}}", |
| 14 | + "https": "{{solr-config-env/solr_config_port}}", |
| 15 | + "https_property": "{{solr-ssl/solr_ssl_enable}}", |
| 16 | + "https_property_value": "true", |
| 17 | + "kerberos_keytab": "{{solr-config-env/solr_spnego_keytab_path}}", |
| 18 | + "kerberos_principal": "{{solr-config-env/solr_spnego_principal_name}}", |
| 19 | + "connection_timeout": 5.0, |
| 20 | + "default_port": 8983 |
| 21 | + }, |
| 22 | + "reporting": { |
| 23 | + "ok": { |
| 24 | + "text": "HTTP {0} response in {2:.3f}s" |
| 25 | + }, |
| 26 | + "warning": { |
| 27 | + "text": "HTTP {0} response from {1} in {2:.3f}s ({3})" |
| 28 | + }, |
| 29 | + "critical": { |
| 30 | + "text": "Connection failed to {1} ({3})" |
| 31 | + } |
| 32 | + } |
| 33 | + } |
| 34 | + }, |
| 35 | + { |
| 36 | + "name": "solr_cpu_usage", |
| 37 | + "label": "Solr CPU Utilization", |
| 38 | + "description": "This host-level alert is triggered if CPU utilization of the Solr exceeds certain warning and critical thresholds. It checks the Solr JMX Servlet for the SystemCPULoad property. The threshold values are in percent.", |
| 39 | + "interval": 5, |
| 40 | + "scope": "ANY", |
| 41 | + "source": { |
| 42 | + "type": "SCRIPT", |
| 43 | + "path": "SOLR/7.3.1/package/alerts/alert_solr_cpu_metrics.py", |
| 44 | + "parameters": [ |
| 45 | + { |
| 46 | + "name": "connection.timeout", |
| 47 | + "value": 5.0, |
| 48 | + "type": "NUMERIC", |
| 49 | + "units": "seconds", |
| 50 | + "visibility": "HIDDEN" |
| 51 | + }, |
| 52 | + { |
| 53 | + "name": "app.id", |
| 54 | + "value": "solr-host-app", |
| 55 | + "type": "STRING", |
| 56 | + "visibility": "HIDDEN" |
| 57 | + }, |
| 58 | + { |
| 59 | + "name": "metric.names", |
| 60 | + "value": "solr.jvm.gauge.os.processCpuLoad", |
| 61 | + "type": "STRING", |
| 62 | + "visibility": "HIDDEN" |
| 63 | + }, |
| 64 | + { |
| 65 | + "name": "metric.solr.cpu.warning.threshold", |
| 66 | + "display_name": "Warning threshold", |
| 67 | + "type": "PERCENT", |
| 68 | + "units": "%", |
| 69 | + "value": 75, |
| 70 | + "description": "CPU usage is greater than 50%", |
| 71 | + "threshold": "WARNING" |
| 72 | + }, |
| 73 | + { |
| 74 | + "name": "metric.solr.cpu.critical.threshold", |
| 75 | + "display_name": "Critical threshold", |
| 76 | + "type": "PERCENT", |
| 77 | + "units": "%", |
| 78 | + "value": 90, |
| 79 | + "description": "CPU usage is greater than 75%", |
| 80 | + "threshold": "CRITICAL" |
| 81 | + } |
| 82 | + ] |
| 83 | + } |
| 84 | + }, |
| 85 | + { |
| 86 | + "name": "solr_memory", |
| 87 | + "label": "Solr Memory Utilization", |
| 88 | + "description": "This host-level alert is triggered if CPU utilization of the Solr exceeds certain warning and critical thresholds. It checks the Solr JMX Servlet for the SystemCPULoad property. The threshold values are in percent.", |
| 89 | + "interval": 5, |
| 90 | + "scope": "ANY", |
| 91 | + "source": { |
| 92 | + "type": "SCRIPT", |
| 93 | + "path": "SOLR/7.3.1/package/alerts/alert_solr_memory_metrics.py", |
| 94 | + "parameters": [ |
| 95 | + { |
| 96 | + "name": "connection.timeout", |
| 97 | + "value": 5.0, |
| 98 | + "type": "NUMERIC", |
| 99 | + "units": "seconds", |
| 100 | + "visibility": "HIDDEN" |
| 101 | + }, |
| 102 | + { |
| 103 | + "name": "app.id", |
| 104 | + "value": "solr-host-app", |
| 105 | + "type": "STRING", |
| 106 | + "visibility": "HIDDEN" |
| 107 | + }, |
| 108 | + { |
| 109 | + "name": "metric.names", |
| 110 | + "value": "solr.jvm.gauge.memory.total.used,solr.jvm.gauge.memory.total.max", |
| 111 | + "type": "STRING", |
| 112 | + "visibility": "HIDDEN" |
| 113 | + }, |
| 114 | + { |
| 115 | + "name": "metric.solr.memory.warning.threshold", |
| 116 | + "display_name": "Warning threshold", |
| 117 | + "type": "PERCENT", |
| 118 | + "units": "%", |
| 119 | + "value": 75, |
| 120 | + "description": "Memory usage is greater than 50%", |
| 121 | + "threshold": "WARNING" |
| 122 | + }, |
| 123 | + { |
| 124 | + "name": "metric.solr.memory.critical.threshold", |
| 125 | + "display_name": "Critical threshold", |
| 126 | + "type": "PERCENT", |
| 127 | + "units": "%", |
| 128 | + "value": 90, |
| 129 | + "description": "Memory usage is greater than 75%", |
| 130 | + "threshold": "CRITICAL" |
| 131 | + } |
| 132 | + ] |
| 133 | + } |
| 134 | + } |
| 135 | + ] |
| 136 | + } |
| 137 | +} |
0 commit comments