-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added metrics server for daemon (#210)
* feat: added metrics server for daemon * docs: updated config examples * test: updated deamon manifest * feat: updated daemon bootstrap and added pod monitor * chore: updated daemon bootstrap
- Loading branch information
1 parent
313ebb5
commit 481704f
Showing
8 changed files
with
86 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
locals { | ||
configmap_name = "fabric-daemon-config" | ||
port = 5000 | ||
metrics_port = 9946 | ||
} | ||
|
||
variable "namespace" { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
resource "kubernetes_manifest" "daemon_monitor" { | ||
manifest = { | ||
apiVersion = "monitoring.coreos.com/v1" | ||
kind = "PodMonitor" | ||
metadata = { | ||
labels = { | ||
"app.kubernetes.io/component" = "o11y" | ||
"app.kubernetes.io/part-of" = "demeter" | ||
} | ||
name = "fabric-daemon" | ||
namespace = var.namespace | ||
} | ||
spec = { | ||
selector = { | ||
matchLabels = { | ||
role = "fabric-daemon" | ||
} | ||
} | ||
podMetricsEndpoints = [ | ||
{ | ||
port = "metrics", | ||
path = "/metrics" | ||
} | ||
] | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters