[ZBX-19151] GitLab by HTTP not able to handle all data from /metrics Created: 2021 Mar 22  Updated: 2024 Apr 10  Resolved: 2021 Apr 06

Status: Closed
Project: ZABBIX BUGS AND ISSUES
Component/s: Server (S), Templates (T)
Affects Version/s: 5.2.5
Fix Version/s: None

Type: Patch request Priority: Trivial
Reporter: Andy Magnoux Assignee: Yulia Chukina (Inactive)
Resolution: Duplicate Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Ubuntu 20.04, Zabbix 5.2.5 et GitLab 13.9.3


Attachments: PNG File app_server_status_OK.PNG     PNG File gitlab_metrics_OK.PNG     PNG File instance_metrics_NOK_00.PNG     PNG File instance_metrics_NOK_01.PNG     PNG File instance_readiness_check_OK.PNG     File template_app_gitlab_http.yml    
Issue Links:
Duplicate
duplicates ZBX-18975 Item test form truncates value Closed
Team: Team INT
Sprint: Sprint 74 (Mar 2021), Sprint 75 (Apr 2021)

 Description   

Steps to reproduce:

  1. Install zabbix mysql server on ubuntu 20.04
  2. Import Template "customized" to add token authentication and real URL link
    1. Made from : https://git.zabbix.com/projects/ZBX/repos/zabbix/browse/templates/app/gitlab_http?at=refs%2Fheads%2Frelease%2F5.2
    2. default token anonymised
    3. added to request
  3. Associate to the gitlab vip or host
    1. fille the URL, TOKEN and PORT macros as wanted
  4. Try to test the the 3 metrics polled by Gitlab :
    1. it works for "GitLab: Application server status" and "GitLab: Instance readiness check"
    2. it doesn't work after 66108 caracters (bite vs byte we can imagine 65535) for "GitLab: Get instance metrics"

Result:
Json not parsed after 66108 caracters, See screenshot
Expected:
Check for not supported value or/and Prometheus to JSON preprocessing steps to accepte more than 66108 caracters from /metrics



 Comments   
Comment by Aleksandrs Larionovs (Inactive) [ 2021 Apr 06 ]

Duplicate of ZBX-18975

Generated at Fri Jan 24 00:41:32 EET 2025 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.