Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

✨ Expose Hub metrics (#240) #241

Merged
merged 1 commit into from
Jun 5, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions roles/tackle/defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,8 @@ hub_port: "{{ '8443' if hub_tls_enabled | bool else '8080' }}"
hub_proto: "{{ 'https' if hub_tls_enabled | bool else 'http' }}"
hub_url: "{{ hub_proto }}://{{ hub_service_name }}.{{ app_namespace }}.svc:{{ hub_port }}"
hub_log_level: 3
hub_metrics_enabled: true
hub_metrics_port: "2112"

pathfinder_database_image_fqin: "{{ lookup('env', 'RELATED_IMAGE_PATHFINDER_DATABASE') }}"
pathfinder_database_name: "pathfinder"
Expand Down
4 changes: 4 additions & 0 deletions roles/tackle/templates/deployment-hub.yml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,10 @@ spec:
secretKeyRef:
name: "{{ hub_secret_name }}"
key: addon_token
- name: METRICS_ENABLED
value: "{{ hub_metrics_enabled }}"
- name: METRICS_PORT
value: "{{ hub_metrics_port }}"
{% if feature_auth_required|bool and feature_auth_type == "keycloak" %}
- name: AUTH_REQUIRED
value: "true"
Expand Down
4 changes: 4 additions & 0 deletions roles/tackle/templates/service-hub.yml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,10 @@ spec:
port: {{ hub_port }}
targetPort: {{ hub_port }}
protocol: TCP
- name: metrics
port: {{ hub_metrics_port }}
targetPort: {{ hub_metrics_port }}
protocol: TCP
selector:
app.kubernetes.io/name: {{ hub_service_name }}
app.kubernetes.io/component: {{ hub_component_name }}
Expand Down