Remove $FreeBSD$: two-line nroff patternRemove /^\.\\"\n\.\\"\s*\$FreeBSD\$$\n/
Remove $FreeBSD$: one-line sh patternRemove /^\s*#[#!]?\s*\$FreeBSD\$.*$\n/
Remove $FreeBSD$: one-line .c patternRemove /^[\s*]*__FBSDID\("\$FreeBSD\$"\);?\s*\n/
prometheus_sysctl_exporter: Replace magic numbers with identifiers.Identifiers make it clearer what is going on and makes it easier tofind consumers of sysctl functionality.No functional change.
prometheus_sysctl_exporter: Replace magic numbers with identifiers.Identifiers make it clearer what is going on and makes it easier tofind consumers of sysctl functionality.No functional change.MFC after: 3 daysReviewed by: asomersDifferential Revision: https://reviews.freebsd.org/D39797
show more ...
Update/fix Makefile.depend for userland
prometheus_sysctl_exporter: ignore ENOENT for mibs specified on the CLIThey might belong to kernel modules not currently loaded, or to otherkernel versions. Ignoring them allows the configuration
prometheus_sysctl_exporter: ignore ENOENT for mibs specified on the CLIThey might belong to kernel modules not currently loaded, or to otherkernel versions. Ignoring them allows the configuration to be sharedbetween multiple hosts.MFC after: 2 weeksSponsored by: AxcientReviewed by: rewDifferential Revision: https://reviews.freebsd.org/D35540
prometheus_sysctl_exporter: fix metric aliasingWhen exporting sysctls to Prometheus, the exporter replaces "." with"_". This caused several metrics to alias, confusing the Prometheusserver. Fix
prometheus_sysctl_exporter: fix metric aliasingWhen exporting sysctls to Prometheus, the exporter replaces "." with"_". This caused several metrics to alias, confusing the Prometheusserver. Fix it by:* Renaming the "tcp_log_bucket" UMA zone to "tcp_log_id_bucket". Also, rename "tcp_log_node" to "tcp_log_id_node" for consistency.* Not exporting sysctls with "(LEGACY)" in the description. That is used by ZFS sysctls that have been replaced by others, many of which alias to the same Prometheus metric name (like "vfs.zfs.arc_max" and "vfs.zfs.arc.max").PR: 259607Reported by: delphijMFC after: 2 weeksSponsored by: AxcientReviewed by: delphij,rew,thjDifferential Revision: https://reviews.freebsd.org/D34952
Fix typo on "Celsius""Celcius" --> "Celsius"Signed-off-by: Elyes HAOUAS <[email protected]>Pull Request: https://github.com/freebsd/freebsd-src/pull/551/files
prometheus_sysctl_exporter(8): filter output using a regexAdd two options, -i and -e, for filtering prometheus metrics.Each option takes a regular expression as an argument. The providedregex wi
prometheus_sysctl_exporter(8): filter output using a regexAdd two options, -i and -e, for filtering prometheus metrics.Each option takes a regular expression as an argument. The providedregex will be tested against the prometheus metric name.The -i option includes metrics matching the given regex.The -e option excludes metrics matching the given regex.Sponsored by: Modirum MDPaySponsored by: Klara Inc.Reviewed by: 0mp, debdrupDifferential Revision: https://reviews.freebsd.org/D32269
DIRDEPS_BUILD: Update dependencies.Sponsored by: Dell EMC Isilon
Be a bit more liberal about sysctl naming.On the systems on which I tested this exporter, I never ran into metricsthat were named in such a way that they couldn't be exported toPrometheus metrics
Be a bit more liberal about sysctl naming.On the systems on which I tested this exporter, I never ran into metricsthat were named in such a way that they couldn't be exported toPrometheus metrics directly. Now it turns out that on systems with NUMA,the sysctl tree contains metrics named dev.${driver}.${index}.%domain.For these metrics, the % in the name is problematic, as Prometheusdoesn't allow this symbol to be used.Remove the assertions that were originally put in place to prevent theexporter from generating malformed output and add code to deal with itaccordingly. For metric names, convert any unsupported character to anunderscore. For label values, perform string escaping.PR: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=221035Reported by: lifanov@
DIRDEPS_BUILD: Connect new directories.Sponsored by: Dell EMC Isilon
Add a Prometheus exporter for sysctl values.Now that we have our sysctl tree annotated with aggregation labels,let's go ahead and provide a very simple utility for exporting thesysctl tree in Pro
Add a Prometheus exporter for sysctl values.Now that we have our sysctl tree annotated with aggregation labels,let's go ahead and provide a very simple utility for exporting thesysctl tree in Prometheus' format. It can either be used in conjunctionwith the Prometheus node exporter or run through inetd(8).The reason why I'm opting for having it in the base system is because ithas a pretty strong integration with some of sysctl's innards, such asaccess to iterators, name lookups, metadata and type information. As Iam investigating whether we can add histograms as native types to sysctlas well, this integration will only get stronger as we go along. That'swhy it would be safer to oversee the development of this exporterourselves, as opposed to having it as an external project.This exporter is remarkably compact, especially when compared to theofficial Linux binary of the Prometheus node exporter (16 KB vs 12 MB).I guess this could be an interesting aspect for monitoring embeddedFreeBSD-based systems.Differential Revision: https://reviews.freebsd.org/D8792