-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Enable collecting RHDH nodejs prometheus metrics. The environement variable RHDH_METRIC is set to true to enable collecting the metrics.
- Loading branch information
1 parent
cdf411d
commit 9f994f5
Showing
7 changed files
with
196 additions
and
2 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
18 changes: 18 additions & 0 deletions
18
ci-scripts/rhdh-setup/template/backstage/rhdh-metrics-service.yaml
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,18 @@ | ||
kind: Service | ||
apiVersion: v1 | ||
metadata: | ||
name: rhdh-metrics | ||
labels: | ||
app.kubernetes.io/component: backstage | ||
app.kubernetes.io/instance: rhdh | ||
app.kubernetes.io/name: developer-hub | ||
spec: | ||
ports: | ||
- name: backend | ||
protocol: TCP | ||
port: 7007 | ||
targetPort: backend | ||
selector: | ||
app.kubernetes.io/component: backstage | ||
app.kubernetes.io/instance: rhdh | ||
app.kubernetes.io/name: developer-hub |
18 changes: 18 additions & 0 deletions
18
ci-scripts/rhdh-setup/template/backstage/rhdh-servicemonitor.yaml
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,18 @@ | ||
apiVersion: monitoring.coreos.com/v1 | ||
kind: ServiceMonitor | ||
metadata: | ||
name: rhdh | ||
namespace: ${RHDH_NAMESPACE} | ||
labels: | ||
app.kubernetes.io/instance: rhdh | ||
app.kubernetes.io/name: developer-hub | ||
spec: | ||
namespaceSelector: | ||
matchNames: | ||
- ${RHDH_NAMESPACE} | ||
selector: | ||
matchLabels: | ||
app.kubernetes.io/name: developer-hub | ||
endpoints: | ||
- port: backend | ||
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