Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
K
k3s
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jacklull
k3s
Commits
688e1d10
Commit
688e1d10
authored
Dec 28, 2018
by
Alfredo Espejel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed resource consumer to expose /metrics instead of /Metrics
parent
a9c7dfba
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
5 additions
and
5 deletions
+5
-5
prometheus.go
test/e2e/instrumentation/monitoring/prometheus.go
+2
-2
VERSION
test/images/resource-consumer/VERSION
+1
-1
common.go
test/images/resource-consumer/common/common.go
+1
-1
manifest.go
test/utils/image/manifest.go
+1
-1
No files found.
test/e2e/instrumentation/monitoring/prometheus.go
View file @
688e1d10
...
...
@@ -111,7 +111,7 @@ func consumeCPUResources(f *framework.Framework, consumerName string, cpuUsage i
func
exportCustomMetricFromPod
(
f
*
framework
.
Framework
,
consumerName
string
,
metricValue
int
)
*
common
.
ResourceConsumer
{
podAnnotations
:=
map
[
string
]
string
{
"prometheus.io/scrape"
:
"true"
,
"prometheus.io/path"
:
"/
M
etrics"
,
"prometheus.io/path"
:
"/
m
etrics"
,
"prometheus.io/port"
:
"8080"
,
}
return
common
.
NewMetricExporter
(
consumerName
,
f
.
Namespace
.
Name
,
podAnnotations
,
nil
,
metricValue
,
f
.
ClientSet
,
f
.
InternalClientset
,
f
.
ScalesGetter
)
...
...
@@ -120,7 +120,7 @@ func exportCustomMetricFromPod(f *framework.Framework, consumerName string, metr
func
exportCustomMetricFromService
(
f
*
framework
.
Framework
,
consumerName
string
,
metricValue
int
)
*
common
.
ResourceConsumer
{
serviceAnnotations
:=
map
[
string
]
string
{
"prometheus.io/scrape"
:
"true"
,
"prometheus.io/path"
:
"/
M
etrics"
,
"prometheus.io/path"
:
"/
m
etrics"
,
"prometheus.io/port"
:
"8080"
,
}
return
common
.
NewMetricExporter
(
consumerName
,
f
.
Namespace
.
Name
,
nil
,
serviceAnnotations
,
metricValue
,
f
.
ClientSet
,
f
.
InternalClientset
,
f
.
ScalesGetter
)
...
...
test/images/resource-consumer/VERSION
View file @
688e1d10
1.
4
1.
5
test/images/resource-consumer/common/common.go
View file @
688e1d10
...
...
@@ -22,7 +22,7 @@ const (
ConsumeMemAddress
=
"/ConsumeMem"
BumpMetricAddress
=
"/BumpMetric"
GetCurrentStatusAddress
=
"/GetCurrentStatus"
MetricsAddress
=
"/
M
etrics"
MetricsAddress
=
"/
m
etrics"
MillicoresQuery
=
"millicores"
MegabytesQuery
=
"megabytes"
...
...
test/utils/image/manifest.go
View file @
688e1d10
...
...
@@ -128,7 +128,7 @@ var (
Porter
=
Config
{
e2eRegistry
,
"porter"
,
"1.0"
}
PortForwardTester
=
Config
{
e2eRegistry
,
"port-forward-tester"
,
"1.0"
}
Redis
=
Config
{
e2eRegistry
,
"redis"
,
"1.0"
}
ResourceConsumer
=
Config
{
e2eRegistry
,
"resource-consumer"
,
"1.
4
"
}
ResourceConsumer
=
Config
{
e2eRegistry
,
"resource-consumer"
,
"1.
5
"
}
ResourceController
=
Config
{
e2eRegistry
,
"resource-consumer/controller"
,
"1.0"
}
ServeHostname
=
Config
{
e2eRegistry
,
"serve-hostname"
,
"1.1"
}
TestWebserver
=
Config
{
e2eRegistry
,
"test-webserver"
,
"1.0"
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment