mirror of
https://github.com/prometheus/prometheus.git
synced 2025-03-05 20:59:13 -08:00
Fix typos (#16076)
Signed-off-by: co63oc <co63oc@users.noreply.github.com>
This commit is contained in:
parent
77a505a0dc
commit
0e4e5a71bd
|
@ -136,8 +136,8 @@ func TestCheckSDFile(t *testing.T) {
|
|||
},
|
||||
{
|
||||
name: "bad file extension",
|
||||
file: "./testdata/bad-sd-file-extension.nonexistant",
|
||||
err: "invalid file extension: \".nonexistant\"",
|
||||
file: "./testdata/bad-sd-file-extension.nonexistent",
|
||||
err: "invalid file extension: \".nonexistent\"",
|
||||
},
|
||||
{
|
||||
name: "bad format",
|
||||
|
|
|
@ -217,7 +217,7 @@ func TestEC2DiscoveryRefresh(t *testing.T) {
|
|||
State: &ec2.InstanceState{Name: strptr("running")},
|
||||
SubnetId: strptr("azid-3"),
|
||||
VpcId: strptr("vpc-ipv4"),
|
||||
// network intefaces
|
||||
// network interfaces
|
||||
NetworkInterfaces: []*ec2.InstanceNetworkInterface{
|
||||
// interface without subnet -> should be ignored
|
||||
{
|
||||
|
@ -285,7 +285,7 @@ func TestEC2DiscoveryRefresh(t *testing.T) {
|
|||
State: &ec2.InstanceState{Name: strptr("running")},
|
||||
SubnetId: strptr("azid-2"),
|
||||
VpcId: strptr("vpc-ipv6"),
|
||||
// network intefaces
|
||||
// network interfaces
|
||||
NetworkInterfaces: []*ec2.InstanceNetworkInterface{
|
||||
// interface without primary IPv6, index 2
|
||||
{
|
||||
|
|
|
@ -46,7 +46,7 @@ this alert firing for the specified duration after the firing condition was last
|
|||
This can be used to prevent situations such as flapping alerts, false resolutions
|
||||
due to lack of data loss, etc. Alerting rules without the `keep_firing_for` clause
|
||||
will deactivate on the first evaluation where the condition is not met (assuming
|
||||
any optional `for` duration desribed above has been satisfied).
|
||||
any optional `for` duration described above has been satisfied).
|
||||
|
||||
The `labels` clause allows specifying a set of additional labels to be attached
|
||||
to the alert. Any existing conflicting labels will be overwritten. The label
|
||||
|
|
|
@ -26,7 +26,7 @@ This document offers guidance on migrating from Prometheus 2.x to Prometheus 3.0
|
|||
- Prometheus v3 will no longer add ports to scrape targets according to the
|
||||
specified scheme. Target will now appear in labels as configured.
|
||||
- If you rely on scrape targets like
|
||||
`https://example.com/metrics` or `http://exmaple.com/metrics` to be
|
||||
`https://example.com/metrics` or `http://example.com/metrics` to be
|
||||
represented as `https://example.com/metrics:443` and
|
||||
`http://example.com/metrics:80` respectively, add them to your target URLs
|
||||
- `agent`
|
||||
|
@ -139,7 +139,7 @@ may now fail if this fallback protocol is not specified.
|
|||
The TSDB format has been changed slightly in Prometheus v2.55 in preparation for changes
|
||||
to the index format. Consequently, a Prometheus v3 TSDB can only be read by a
|
||||
Prometheus v2.55 or newer. Keep that in mind when upgrading to v3 -- you will be only
|
||||
able to downgrade to v2.55, not lower, without losing your TSDB persitent data.
|
||||
able to downgrade to v2.55, not lower, without losing your TSDB persistent data.
|
||||
|
||||
As an extra safety measure, you could optionally consider upgrading to v2.55 first and
|
||||
confirm Prometheus works as expected, before upgrading to v3.
|
||||
|
|
|
@ -45,7 +45,7 @@ The JSON response envelope format is as follows:
|
|||
// Only set if there were warnings while executing the request.
|
||||
// There will still be data in the data field.
|
||||
"warnings": ["<string>"],
|
||||
// Only set if there were info-level annnotations while executing the request.
|
||||
// Only set if there were info-level annotations while executing the request.
|
||||
"infos": ["<string>"]
|
||||
}
|
||||
```
|
||||
|
|
10
promql/promqltest/testdata/functions.test
vendored
10
promql/promqltest/testdata/functions.test
vendored
|
@ -1390,10 +1390,10 @@ clear
|
|||
eval instant at 50m absent(sum(nonexistent{job="testjob", instance="testinstance"}))
|
||||
{} 1
|
||||
|
||||
eval instant at 50m absent(max(nonexistant))
|
||||
eval instant at 50m absent(max(nonexistent))
|
||||
{} 1
|
||||
|
||||
eval instant at 50m absent(nonexistant > 1)
|
||||
eval instant at 50m absent(nonexistent > 1)
|
||||
{} 1
|
||||
|
||||
eval instant at 50m absent(a + b)
|
||||
|
@ -1402,7 +1402,7 @@ eval instant at 50m absent(a + b)
|
|||
eval instant at 50m absent(a and b)
|
||||
{} 1
|
||||
|
||||
eval instant at 50m absent(rate(nonexistant[5m]))
|
||||
eval instant at 50m absent(rate(nonexistent[5m]))
|
||||
{} 1
|
||||
|
||||
clear
|
||||
|
@ -1420,7 +1420,7 @@ eval instant at 1m absent_over_time(http_requests_total{handler!="/foo"}[5m])
|
|||
eval instant at 1m absent_over_time(http_requests_total{handler="/foo", handler="/bar", handler="/foobar"}[5m])
|
||||
{} 1
|
||||
|
||||
eval instant at 1m absent_over_time(rate(nonexistant[5m])[5m:])
|
||||
eval instant at 1m absent_over_time(rate(nonexistent[5m])[5m:])
|
||||
{} 1
|
||||
|
||||
eval instant at 1m absent_over_time(http_requests_total{handler="/foo", handler="/bar", instance="127.0.0.1"}[5m])
|
||||
|
@ -1497,7 +1497,7 @@ eval instant at 1m present_over_time(http_requests_total{handler!="/foo"}[5m])
|
|||
|
||||
eval instant at 1m present_over_time(http_requests_total{handler="/foo", handler="/bar", handler="/foobar"}[5m])
|
||||
|
||||
eval instant at 1m present_over_time(rate(nonexistant[5m])[5m:])
|
||||
eval instant at 1m present_over_time(rate(nonexistent[5m])[5m:])
|
||||
|
||||
eval instant at 1m present_over_time(http_requests_total{handler="/foo", handler="/bar", instance="127.0.0.1"}[5m])
|
||||
|
||||
|
|
|
@ -513,7 +513,7 @@ func (h *writeHandler) appendV2(app storage.Appender, req *writev2.Request, rs *
|
|||
}
|
||||
|
||||
// handleHistogramZeroSample appends CT as a zero-value sample with CT value as the sample timestamp.
|
||||
// It doens't return errors in case of out of order CT.
|
||||
// It doesn't return errors in case of out of order CT.
|
||||
func (h *writeHandler) handleHistogramZeroSample(app storage.Appender, ref storage.SeriesRef, l labels.Labels, hist writev2.Histogram, ct int64) (storage.SeriesRef, error) {
|
||||
var err error
|
||||
if hist.IsFloatHistogram() {
|
||||
|
|
Loading…
Reference in a new issue