mirror of
https://github.com/prometheus/prometheus.git
synced 2025-08-07 06:37:17 +02:00
Fix linting
Signed-off-by: Carrie Edwards <edwrdscarrie@gmail.com>
This commit is contained in:
parent
455ab8806f
commit
9f78ddded2
@ -623,7 +623,7 @@ func createPromFloatSeries(name string, ts time.Time) prompb.TimeSeries {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
func createPromFloatSeriesWithTemporality(name string, temporality string, ts time.Time) prompb.TimeSeries {
|
func createPromFloatSeriesWithTemporality(name, temporality string, ts time.Time) prompb.TimeSeries {
|
||||||
return prompb.TimeSeries{
|
return prompb.TimeSeries{
|
||||||
Labels: []prompb.Label{
|
Labels: []prompb.Label{
|
||||||
{Name: "__name__", Value: name},
|
{Name: "__name__", Value: name},
|
||||||
@ -683,7 +683,7 @@ func createPromNativeHistogramSeries(name string, hint prompb.Histogram_ResetHin
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
func createPromNativeHistogramSeriesWithTemporality(name string, temporality string, hint prompb.Histogram_ResetHint, ts time.Time) prompb.TimeSeries {
|
func createPromNativeHistogramSeriesWithTemporality(name, temporality string, hint prompb.Histogram_ResetHint, ts time.Time) prompb.TimeSeries {
|
||||||
return prompb.TimeSeries{
|
return prompb.TimeSeries{
|
||||||
Labels: []prompb.Label{
|
Labels: []prompb.Label{
|
||||||
{Name: "__name__", Value: name},
|
{Name: "__name__", Value: name},
|
||||||
@ -747,7 +747,7 @@ func createPromNHCBSeries(name string, hint prompb.Histogram_ResetHint, ts time.
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
func createPromNHCBSeriesWithTemporality(name string, temporality string, hint prompb.Histogram_ResetHint, ts time.Time) prompb.TimeSeries {
|
func createPromNHCBSeriesWithTemporality(name, temporality string, hint prompb.Histogram_ResetHint, ts time.Time) prompb.TimeSeries {
|
||||||
return prompb.TimeSeries{
|
return prompb.TimeSeries{
|
||||||
Labels: []prompb.Label{
|
Labels: []prompb.Label{
|
||||||
{Name: "__name__", Value: name},
|
{Name: "__name__", Value: name},
|
||||||
@ -818,7 +818,7 @@ func createPromClassicHistogramSeries(name string, ts time.Time) []prompb.TimeSe
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
func createPromClassicHistogramSeriesWithTemporality(name string, temporality string, ts time.Time) []prompb.TimeSeries {
|
func createPromClassicHistogramSeriesWithTemporality(name, temporality string, ts time.Time) []prompb.TimeSeries {
|
||||||
return []prompb.TimeSeries{
|
return []prompb.TimeSeries{
|
||||||
{
|
{
|
||||||
Labels: []prompb.Label{
|
Labels: []prompb.Label{
|
||||||
|
@ -711,7 +711,7 @@ func requireContainsSample(t *testing.T, actual []mockSample, expected mockSampl
|
|||||||
"actual : %v", expected, actual))
|
"actual : %v", expected, actual))
|
||||||
}
|
}
|
||||||
|
|
||||||
func handleOTLP(t *testing.T, exportRequest pmetricotlp.ExportRequest, otlpCfg config.OTLPConfig, typeAndUnitLabels bool, nativeDelta bool) *mockAppendable {
|
func handleOTLP(t *testing.T, exportRequest pmetricotlp.ExportRequest, otlpCfg config.OTLPConfig, typeAndUnitLabels, nativeDelta bool) *mockAppendable {
|
||||||
buf, err := exportRequest.MarshalProto()
|
buf, err := exportRequest.MarshalProto()
|
||||||
require.NoError(t, err)
|
require.NoError(t, err)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user