Skip to content

Commit

Permalink
8.17.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
mindw committed Dec 14, 2024
1 parent 1b33add commit 4bc7288
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ It collects all relevant metrics and makes them available to Prometheus via the

| Elasticsearch | Plugin | Release date |
|---------------|----------|---------------|
| 8.17.0 | 8.17.0.0 | Dec 14, 2024 |
| 8.16.1 | 8.16.1.0 | Nov 23, 2024 |
| 8.16.0 | 8.16.0.0 | Nov 16, 2024 |
| 8.15.4 | 8.15.4.0 | Nov 16, 2024 |
Expand Down Expand Up @@ -118,7 +119,7 @@ It collects all relevant metrics and makes them available to Prometheus via the

```
./bin/elasticsearch-plugin install -b \
https://github.com/mindw/elasticsearch-prometheus-exporter/releases/download/8.16.0.0/prometheus-exporter-8.16.0.0.zip
https://github.com/mindw/elasticsearch-prometheus-exporter/releases/download/8.17.0.0/prometheus-exporter-8.17.0.0.zip
```

**Do not forget to restart the node after the installation!**
Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
group = org.elasticsearch.plugin.prometheus

version = 8.16.1.1-SNAPSHOT
version = 8.17.0.0

pluginName = prometheus-exporter
pluginClassname = org.elasticsearch.plugin.prometheus.PrometheusExporterPlugin
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1055,12 +1055,12 @@ private void updateOsMetrics(OsStats os) {
catalog.setNodeInfo("os_cgroup_control_group", "cpuacct", cgroup.getCpuAcctControlGroup());
catalog.setNodeInfo("os_cgroup_control_group", "cpu", cgroup.getCpuControlGroup());
catalog.setNodeInfo("os_cgroup_control_group", "memory", cgroup.getMemoryControlGroup());
catalog.setNodeGauge("os_cgroup_cpuacct_usage", cgroup.getCpuAcctUsageNanos() / 1E9);
catalog.setNodeGauge("os_cgroup_cpuacct_usage", cgroup.getCpuAcctUsageNanos().doubleValue() / 1E9);
catalog.setNodeGauge("os_cgroup_cpu_cfs_period", cgroup.getCpuCfsPeriodMicros() / 1E6);
catalog.setNodeGauge("os_cgroup_cpu_cfs_quota", cgroup.getCpuCfsQuotaMicros() / 1E6);
catalog.setNodeGauge("os_cgroup_cpu_cfs_stat_number_of_elapsed_periods", cgroup.getCpuStat().getNumberOfElapsedPeriods());
catalog.setNodeGauge("os_cgroup_cpu_cfs_stat_number_of_times_throttled", cgroup.getCpuStat().getNumberOfTimesThrottled());
catalog.setNodeGauge("os_cgroup_cpu_cfs_stat_time_throttled", cgroup.getCpuStat().getTimeThrottledNanos() / 1E9);
catalog.setNodeGauge("os_cgroup_cpu_cfs_stat_number_of_elapsed_periods", cgroup.getCpuStat().getNumberOfElapsedPeriods().longValue());
catalog.setNodeGauge("os_cgroup_cpu_cfs_stat_number_of_times_throttled", cgroup.getCpuStat().getNumberOfTimesThrottled().longValue());
catalog.setNodeGauge("os_cgroup_cpu_cfs_stat_time_throttled", cgroup.getCpuStat().getTimeThrottledNanos().doubleValue() / 1E9);
catalog.setNodeGauge("os_cgroup_cpu_cfs_period", cgroup.getCpuCfsPeriodMicros() / 1E6);
catalog.setNodeGauge("os_cgroup_cpu_cfs_quota", cgroup.getCpuCfsQuotaMicros() / 1E6);
// limit in CGroupsV2 limit can be a string - "max" so in that case we give it os_mem_total value
Expand Down

0 comments on commit 4bc7288

Please sign in to comment.