Skip to content

Commit

Permalink
✨ Expose Hub metrics
Browse files Browse the repository at this point in the history
  • Loading branch information
mansam committed May 31, 2023
1 parent fabe24a commit 3267a7b
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 0 deletions.
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

0 comments on commit 3267a7b

Please sign in to comment.