Skip to content

Commit 533a84e

Browse files
Added prometheus annotations and changed port to 5000
1 parent 4f7095d commit 533a84e

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

AKSKubeAuditReceiverSolution/AKSKubeAuditReceiver/ForwarderStatistics.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ public static void InitServer()
2424
{
2525
var diagnosticSourceRegistration = DiagnosticSourceAdapter.StartListening();
2626

27-
Server = new MetricServer(port: 1234);
27+
Server = new MetricServer(port: 5000);
2828
Server.Start();
2929
}
3030

deployment.yaml.in

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,10 @@ spec:
1515
metadata:
1616
labels:
1717
app: aks-audit-log-forwarder
18+
annotations:
19+
prometheus.io/path: /metrics
20+
prometheus.io/port: "5000"
21+
prometheus.io/scrape: "true"
1822
spec:
1923
containers:
2024
- image: sysdiglabs/aks-audit-log-forwarder:$ImageVersion

0 commit comments

Comments
 (0)