Repository navigation
Releases
Releases · eenchev/prometheus-universal-exporter
Chart 2.1.0
What changed for you
- Deploys exporter 2.1.0: read its
### What changed for youbefore
upgrading. The image now carries every request type, and some label
values a target's URL gave are now<redacted>, which makes new series. - Chart:
Chart.yaml's description names every source the image reads, and
the README no longer tells you to build an image of your own for the
s3file,redis,tcp,ldapandsshexeccollectors; its ICMP and
SNMP collectors section shows thepodSecurityContext.sysctlsanicmp
collector may need
(ICMP and SNMP collectors).
New
- The chart's
preStopandallocator.preStopset the exporter's and the
allocator's containerlifecycle.preStophook, one ofexec,httpGet
andsleep; a sleep's seconds are added to the grace period the chart
renders and requires.allocator.terminationGracePeriodSecondssets the
allocator pods' grace period, which must cover its peers' shutdown delay
and its exit (Shutting down). - Chart:
kubernetesAccess.extraRulesadds RBAC rules of your own, with
their verbs, to the exporter's Role or ClusterRole;*and the core
group's secrets needallowBroadExtraRules
(Kubernetes collectors). - The chart's
allocator.balanceFactorsets the allocator's
--allocation.balance-factor, from 1 to 10 with at most three decimals;
empty keeps the allocator's 1.25
(chart README). - The chart runs
allocator.replicasallocator pods, 2 by default, with a
discovery source too, as peers of the allocator's headless Service, rolled
out one at a time, where it ran one pod and refused more. - The chart's
allocator.heartbeatIntervalsets the allocator's
--heartbeat.interval, and the allocator Deployment'sminReadySeconds
ismax(allocator.settle, 2m)plus it, so a new allocator pod counts as
available only once its first member list has formed and reached the
exporter pods, also during a rollout that shortens the interval, whose
old value the chart cannot know.
Exporter v2.1.0
What changed for you
- The default build and the published image carry every request type:
s3file,redis,tcp,ldapandsshexecare no longer opt-in, and
the newicmpandsnmpare in them too, so their collectors run on the
image as it is, and a build that names one inOPT_IN_REQUEST_TYPESnow
fails, saying the type is in every build: leave the variable empty. The
binary is some 7 MB larger, the AWS SDK's S3 client most of it; a build
that must not carry a type leaves it out withREQUEST_TYPES
(Choosing request types at build time). - The static target file's
concurrencyslots are shared between its
collectors: a collector whose targets hang can no longer hold every slot
and leave the others' targets skipped. Beyond its share,concurrency
divided by the collectors, a collector leaves a slot free for each other
collector holding none, half the slots at most
(Static targets). - A
dnscollector asks its question with a client of its own rather than
Go's resolver. ASERVFAIL,REFUSEDor other response code is now the
document'srcoderather than a failed scrape, so a rule that relied on
the failure reads.rcode;/etc/hostsis no longer read, its names
asked of the server like any other; and each answer has attl
(The question). - A
kubernetescollector lists its namespaces at once, four at a time,
rather than one after another; the document keeps them in the order
namespacesnames them. Its requests, and the allocator's listings of
EndpointSlices, carry theUser-Agent
prometheus-universal-exporter/<version>(pue-allocator/<version>)
in place of Go's. - A
kubernetescollector of the core group'ssecretsis refused whole
still, but loads withmetadata_only: true
(Secrets). - The debug page's series and OTLP tables sort text as the status pages'
do, the numbers in it by their value and a letter's case no matter. - A
sqlcollector withdriver: sqlserverruns its statement in a
transaction that is rolled back after it, withSET LOCK_TIMEOUTset to
the scrape's time left; one withdriver: mysqlsets
max_execution_time(MySQL 5.7.8 and later) ormax_statement_time
(MariaDB 10.1.1 and later) to it, in its read-only transaction, after
asking the server's version once on each connection. A statement that
cannot run in a transaction, or that the server now ends at that limit,
fails where it ran before; one the limit ends fails as the scrape's
deadline (Databases over SQL). - A label built from
$url, the static targets endpoint'stargetlabel
and the OTLPtargetattribute show<redacted>where they showed the
value of a query parameter withcode,ticket,sid,otporhmac
as a word of its name (code,country_code,promo_code,user_sid),
and of a path parameter whose name reads as a credential's
(;jsessionid=,;sid=, after;or%3B). A target or a URL with one
makes a new series, and the old one goes stale: adjust the queries,
recording rules and alerts that matched the old values. Where the query
does not matter, keep a label to the path with
$url | split("?")[0] | split(";")[0]
(Logging). - The status page writes a duration as Go does with every unit that is zero
left out: an interval of1m, an age of35mand a threshold of2h
where it wrote1m0s,35m0sand2h0m0s. The JSON keeps Go's form
and its seconds (Status page). pue-allocator --settletakes at most1h, and the chart's
allocator.settlefails rendering beyond it, where any duration was
taken: the targets of a replica gone without a word stay with it,
unscraped, for the settle time after its member TTL. An allocator started
with a longer settle time exits 2; set1hor less
(Members and allocation).- The target allocator bounds each member's load at
--allocation.balance-factor, 1.25 by default, times its fair share, and
places static and probe targets in one pass: with a few targets a member,
some that rendezvous hashing put on a member already over its bound go to
another, and the targets of one shard key, static or probe, stay on one
member. With many targets a member the bound seldom binds and nothing
moves: a thousand over five members are placed as before, every one. Give
--allocation.balance-factor=10for hashing alone, for up to 10 members
(Weights and capacity). - A
collector_filesentry of the allocator's configuration that would
matchallocation.yaml, such asa*.yaml, is refused at load, as one
matchingstatic-targets.yamlis: the bundle may carry a file of that
name. Narrow the entry, for example to a directory of collector files.
New
- An
oauth2login takesgrant_type: refresh_tokenwith a
refresh_token_file: the exporter trades a user's refresh token for an
access token, so the Gmail API and other Google and Microsoft APIs that
act for a user can be scraped.client_secret_fileis optional with it,
for a public client, and a refresh token the endpoint rotates is used
until the file changes
(A user's refresh token). - An
snmprequest type reads SNMP agents, as snmp_exporter does:
getreads objects one by one andwalkwalks tables whole, each by a
name of the collector's and its numeric identifier, the columns of a
table merged into rows by their index, with no MIB read. It speaks v1,
v2c and v3, v3 with every security level, HMAC of MD5, SHA and SHA-2,
and DES, AES-128 and both ways of AES-192 and AES-256, and needs nothing
outside the standard library.request_timeoutandretriesset how
long each request waits and how many times it is sent again, and a
static target may set its own, beside its own community or v3 user
(SNMP agents). - A
tcpcollector checks that a port takes a connection with
connect_only: true: it dials, makes the TLS handshake with atls
block, and closes, sending and reading nothing, and answers a JSON
document ofopen, the address reached and how long the connection and
the handshake took. A port that refuses, does not answer within
connect_timeoutor fails the handshake is"open": falsewith the
reason, not a failed scrape, so the series is 0 or 1
(Checking that a port is open). - With
ports: [22, 443, 5432]such a collector dials each port of the
target's host at once, so one target covers a host; docs/TCP.md shows it
beside anicmpping of the same host
(Several ports of a host). - docs/KUBERNETES.md has an example of each node's conditions, disk
pressure among them, and its allocatable against its capacity
(Examples). - docs/GRPC.md shows the health service's
List, every service's status in
one call, built in asCheckis
(Health checks). - An
ldapcollector binds as its TLS client certificate with
sasl_external: true(SASL EXTERNAL), with no password file
(A client certificate). - An
s3filecollector'schecksumssets how an object's checksum is
checked:when_present, the default,requiredoroff
(Checksums). - A
dnscollector asks for a name's DNSSEC signatures,record_type: RRSIG, each with its expiry and the seconds it has left, and asks over
TLS withtransport: tls(RFC 7858)
(DNSSEC signatures,
DNS over TLS). - Exported traces time the connections of
tcp,tlscert,ldap,
redis,sshexec,sshfileandgrpcrequests, as an http request's
are:connection.dns,connection.connectandconnection.tls, or
connection.handshakefor SSH, under the request's span
(Traces of slow requests). - A
dnscollector answers each record's TTL, the response code as
rcode, the answer's AA, RA and AD bits, and records ofSOA,CAAand
DNSKEY(The document). - A
grpccollector calls a server streaming method with
stream_messages, reading its stream until the server ends it or that many
messages have come, the health service'sWatchamong them
(Server streaming). - A
rediscollector reads the primary a Sentinel names withsentinel:
its target is the Sentinel, asked which server is the primary of
sentinel.masternow, and the document'ssentinelholds what the
Sentinel knows of it, its flags, replicas and quorum
(Sentinel). - A
tcpcollector speaks a conversation withsteps, each asendand
theuntilits answer matches, as SMTP'sEHLOthenQUIT
(A conversation). - An
ldapcollector follows an attribute answered in ranges, as Active
Directory answers a large group'smember;range=0-1499, and holds every
value undermember. - An
ntpcollector sends a serversamplesrequests,sample_interval
apart, and answers the one of the least delay with the jitter of their
offsets; a target may name several servers by commas, compared by the
median and spread of their offsets
(Several samples,
Several servers). - An
icmpcollector pings every address of a name withall_addresses,
each in the document'saddressesand the top of all of them together
(Every address)...
Exporter v2.0.0
What changed for you
- The self-metrics have a histogram more of each collector, always:
http_exporter_probe_duration_seconds{collector,kind}, 16 more lines of
the text format a collector, and 16 more for one a static target names. - A Prometheus that asks for its protobuf format first, as it does when it
scrapes native histograms, gets the self-metrics in protobuf, with
http_exporter_collector_scrape_duration_secondscarrying native buckets
beside its classic ones; it got OpenMetrics before. Every other scraper
gets what it got.web.self_metrics.native_histograms: falseanswers it in
OpenMetrics again. - Fewer Python workers stay idle, for less long: after a burst of scrapes one
worker of each collector's script stays idle, rather than four, and an idle
worker stops after two minutes unused, rather than five. Each is a CPython
process of about 11 MB, 17 MB with lxml, so ten Python collectors keep
about 110 to 170 MB in idle workers rather than 440 to 680 MB. Two minutes
is twice a scrape interval of a minute, so a collector scraped every minute
or more often still keeps its worker warm.--python.max-idle-workersand
--python.idle-timeoutbring the old behaviour back (4and5m). - The
go_andprocess_resource metrics are published on the
self-metrics endpoint by default: reading them no longer stops the world,
because the memory statistics now come fromruntime/metricsand the
garbage collection pauses fromruntime/debug.ReadGCStatsinstead of
runtime.ReadMemStats. Setweb.self_metrics.resource_metrics_enabled: falseto leave them out.go_gc_duration_secondsnow carries the
quantiles 0, 0.25, 0.5, 0.75 and 1 beside its_sumand_count, as in
client_golang. The series names, types and help texts are as before. - The JSON schemas refuse more of what the exporter refuses, so an editor now
marks it: durations and sizes under the exporter's least (script_timeout
under 1ms,max_script_memoryunder 32MiB, intervals under 1s, a zero
failure_backoffduration), a client certificate without its key or a key
without its certificate, two credentials in one request, a pagination key of
another paging type,grpcdescriptor files beside the wrong source, and a
pythontransform without ascript. - A key that takes one of a few words takes them only as the schemas write
them:request.type,transform.type,decoder.type, the
error_handlingpolicies and a rule'serror_mode,
request.pagination.type,request.descriptorsandresponse.graphite's
valueandinvalid_linesin lower case and without blanks around them
(log, notLOG;type: http, notHTTP), andrequest.methodin upper
case or lower case (GETorget, notGet). A configuration that writes
one otherwise is refused, naming the words taken: write them in lower case.
The static target file's schema now takes amethodin lower case, as the
exporter does. - An entry of
accept_statusorretry.statuseswritten in quotes is taken
only as the schemas take it: a status's three digits ("503") or a class
("5xx"). Text with a sign, leading zeros or blanks, such as"+503",
"0503"or" 503 ", is refused when the configuration loads; write
503. An unquoted number is read as before. - The schemas refuse an entry of a
grpccollector's or target's
retry.codesandaccept_codesthat names no gRPC status code, orOK,
as the exporter does, so an editor now marks it. starttlson anldapcollector is refused as a keyldapdoes not take,
pointing tostart_tls: true;start_tlson atcportlscertcollector
points tostarttlsand its protocols.- The image declares a
HEALTHCHECK, so Docker shows the container
healthywhile the exporter is ready. A container started with another
--web.listen-addressneeds--health-cmdwith it, and the target
allocator run from the image needs--no-healthcheck. - The debug page calls the collector written on it the playground, and runs
only when Run is pressed: Run as you type is gone. Probe a target
probes through the configured collector chosen, or, with the playground,
through the one it was copied from with Edit a copy; the Fetch through
list is gone, and a playground copied from none cannot fetch. Scrape a
static target is a list of the static targets of that same collector,
each shown with its address, credentials withheld, in place of a name to
type, and follows reloads;/debug?static_target=<name>chooses the
target and its collector. The pasted body starts empty with a configured
collector, the example's answer only with the example. - The exporter's pages show the project's logo as their browser-tab icon.
- The status page shows a long error — and a long target, labels or probe
parameters — as its first 160 characters or three lines with Show all,
which opens the whole text in a box over the page; the page does not
refresh while the box is open. On the debug page Run stands level with
the timeout box beside it, and the status page's Refresh button and
auto-refresh selector are one height, centred on one line. - A
SIGTERMorSIGINTno longer waits for the static target scrapes in
flight: they are cut short at once, logging nothing abovedebug, so a
target that does not answer no longer holds Ctrl-C up for all of
--web.shutdown-timeout. The last OTLP export goes without what those
scrapes would have queued. Probes in progress are still waited for, and the
log now says how many, for how long at most, what is still awaited every 5
seconds, and what it gave up on when the timeout runs out. A second signal
logssecond signal: exiting now, …before the process ends by it, as
before. The line the shutdown begins with now reads
shutting down: waiting for 1 probe in progress, at most 15s; …, or
shutting down: no probes in progress; exiting. - The debug page no longer keeps the playground, its body or the collector
it was copied from in the browser between visits. A collector run on what
another collector fetches, throughrequest_fromor a static target,
must now be of that collector's request type (400otherwise), where it
had to be anhttpcollector before. - The debug page's Test the metrics endpoint, Test the logs endpoint and
Test the traces endpoint are in a panel of their own below Output,
OTLP endpoints, there before anything has run, rather than at the
bottom of the OTLP tab. - The OTLP export writes
aggregationTemporalityas the number2where it
wrote the nameAGGREGATION_TEMPORALITY_CUMULATIVE: the OTLP/JSON encoding
requires an enum's number, which every receiver accepts. A receiver or a
test that matched the request body's text sees the number now.
New
- jq and yq rules of
httpandgraphitecollectors read$timings, how
long the request's phases took in seconds —dns,connect,tls,
first_byteandtotal— measured on the request that was answered,
withnullfor a phase it did not have, such as the handshake over plain
HTTP or the connection a kept one spared; a Python script has the same as
response.timings, and a debug probe's report shows it under the status.
Every jq and yq program has the variable,nullfor other request types
(Timings, TLS and the final URL). - jq and yq rules of
httpandgraphitecollectors read$tls, the TLS
connection the answer came on —tls_version,cipher_suite,server_name,
verified, and the target certificate'snot_before,not_after,
subject_cnandissuer_cn— so an uptime check alerts on the
certificate's expiry without atlscertcollector beside it;nullover
plain HTTP. A Python script has it asresponse.tls
(Timings, TLS and the final URL). - Uptime probes puts an uptime check of
HTTP and HTTPS sites together, as blackbox_exporter'shttpprober makes
it: one collector, shipped asconfigs/config.uptime.example.yaml, the
Prometheus job, what each series means, and a table of blackbox_exporter's
series with what answers each here. The collector connects anew on every
probe (new_connection), so a site's new address or a certificate that
no longer verifies is seen at once, as blackbox_exporter sees it. request.new_connection: trueon anhttporgraphitecollector sends
every request — each retry and each followed redirect too — on a
connection of its own, closed after its answer, so each looks the name up,
connects and verifies the certificate the target serves now, and
$timingshas its lookup, connection and handshake; a probe parameter and
a static target set it too
(Connections).- jq and yq rules of
httpandgraphitecollectors read$url, where the
request went after its redirects, without its userinfo and with credential
query values<redacted>as a target in a log line, and$redirects, how
many redirects were followed; a Python script has them asresponse.url
andresponse.redirects
(Timings, TLS and the final URL). report_failures: trueon a collector answers every probe of it200
with an exposition, never502:http_exporter_probe_success1 or 0,
http_exporter_probe_elapsed_seconds, and on a failure
http_exporter_probe_failed_stage{stage}naming the stage,panicfor a
probe that panicked, with nothing of the error. Withmethod: HEAD,accept_status: [any]and
decoder.type: noneit is an uptime check that alerts on a value, as
blackbox_exporter'sprobe_success. Failures are logged and counted in
the self-metrics as before, and a probeerror_handlingcarried on past
a failed stag...
Chart 2.0.0
What changed for you
- Deploys exporter 2.0.0, a major release: read its
### What changed for youbefore upgrading, since configuration that
1.8.0 took may now be refused when it loads, such as an upper-case
request.typeor a quotedaccept_statusentry like"+503".
New
- The chart's
healthProbes.mode: execruns the liveness and readiness
probes as the exporter's--healthcheckin the container instead of HTTP
GETs from the kubelet. - The chart's
probesrenders a Prometheus OperatorProbefor each entry,
as blackbox_exporter's uptime checks are declared: its prober the
exporter's Service at/probe, the entry'scollectorsent as the
collectorparameter, and itstargets, a list of URLs, or the Ingresses
itsingressselects, as the targets. Empty by default, so nothing is
rendered and the Probe CRD is needed only with an entry. server.pythonMaxIdleWorkersandserver.pythonIdleTimeoutset the
exporter's--python.max-idle-workersand--python.idle-timeout,
server.debugDangerousits--web.debug.dangerous, and
server.statusRefreshits--web.status-refresh; each is left out when
empty or false, so the exporter's default applies.
Exporter v1.8.0
What's Changed
- Features 13 by @eenchev in #39
- Features 14 by @eenchev in #40
- Tidy 15 by @eenchev in #41
- Tidy 16 by @eenchev in #42
- Refactor types by @eenchev in #43
- Key order by @eenchev in #44
- Sshexec by @eenchev in #45
- exporter: the min_budget tests no longer count the requests the targe… by @eenchev in #46
- Probe answers by @eenchev in #47
- probe answers: the Kubernetes API server's words, a bind's DN and the… by @eenchev in #48
- Keys one check refuses named in the file's order; an S3 store's words… by @eenchev in #49
- Features 15 by @eenchev in #52
- Fixes 16 by @eenchev in #53
- Tcp starttls by @eenchev in #54
- Perf gzip by @eenchev in #55
- Features 17 by @eenchev in #56
- Review fixes 18 by @eenchev in #57
Full Changelog: chart/prometheus-universal-exporter-1.7.0...exporter/prometheus-universal-exporter-v1.8.0
Chart 1.8.0
What's Changed
Full Changelog: exporter/prometheus-universal-exporter-v1.8.0...chart/prometheus-universal-exporter-1.8.0
Exporter v1.7.0
What's Changed
- Add the sql and sshfile request types by @eenchev in #19
- deps: antchfx/htmlquery 1.3.7, xmlquery 1.5.2, xpath 1.3.9, golang.or… by @eenchev in #21
- Target allocator by @eenchev in #22
- Allocator fixes by @eenchev in #23
- More fixes by @eenchev in #24
- Features by @eenchev in #25
- Review fixes by @eenchev in #26
- Next by @eenchev in #27
- Retry after and pins by @eenchev in #28
- Audit fixes by @eenchev in #30
- Audit fixes 2 by @eenchev in #31
- Deps go modules by @eenchev in #32
- Sql race by @eenchev in #34
- Redis fixes by @eenchev in #35
- Features 10 by @eenchev in #36
- Fixes 11 by @eenchev in #37
Full Changelog: chart/prometheus-universal-exporter-1.6.0...exporter/prometheus-universal-exporter-v1.7.0
Chart 1.7.0
What's Changed
Full Changelog: exporter/prometheus-universal-exporter-v1.7.0...chart/prometheus-universal-exporter-1.7.0
Exporter v1.6.0
What's Changed
- deps: bump the go-modules group with 2 updates by @dependabot[bot] in #16
- deps: update the versions pinned in the Dockerfile by @github-actions[bot] in #17
New Contributors
- @github-actions[bot] made their first contribution in #17
Full Changelog: chart/prometheus-universal-exporter-1.5.0...exporter/prometheus-universal-exporter-v1.6.0