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

[Artifactory] OpenMetrics System Yaml Error #1962

Open
vronnG-dw opened this issue Feb 7, 2025 · 2 comments
Open

[Artifactory] OpenMetrics System Yaml Error #1962

vronnG-dw opened this issue Feb 7, 2025 · 2 comments

Comments

@vronnG-dw
Copy link

Helm Chart 107.104.6
Artifactory version 7.104.6

According to Jfrog Artifactory doc, To enable metrics in Artifactory, add the following values to the Artifactory System YAML file and restart Artifactory for it to take effect:
ref: https://jfrog.com/help/r/jfrog-platform-administration-documentation/open-metrics

shared:
    metrics:
        enabled: true
artifactory:
    metrics:
        enabled: true

but looks like in helm chart doesn't support metrics for artifactory but only for shared.
https://github.com/jfrog/charts/blob/master/stable/artifactory/files/system.yaml#L13C1-L13C46

Verified by installing the helm chart too:
Values:

artifactory:
  metrics:
    enabled: true
    filebeat:
      enabled: true
      elasticsearch:
        url: "http://localhost:8082/elasticsearch"
        username: xxxx
        password: xxxx

System.yaml (removed the unnecessary options, irrelevant of the issue

artifactory:
    database:
        maxOpenConnections: 100
    tomcat:
        connector:
            extraConfig: acceptCount="400"
            maxThreads: 200
            sendReasonPhrase: false
        maintenanceConnector:
            port: 8091
shared:
    metrics:
        enabled: true
        filebeat:
            elasticsearch:
                password: xxx
                url: http://localhost:8082/elasticsearch
                username: xxx
            enabled: true
            log:
                enabled: false
                level: info
@RobinDuhan
Copy link

Hi, I tried enabling metrics in the chart using artifactory.metrics.enabled=true, and it worked as expected. You would find the metrics files at the $JFROG_HOME/var/log directory.

Image

Since the chart takes care of generating the system.yaml, enabling it using artifactory.metrics is the way to go. But in VM based installs, the doc holds true, you need to update enable metrics under shared.metrics.enabled

@vronnG-dw
Copy link
Author

Yes, I do see this in the logs directory, but I don't see all the metrics mentioned here in this doc, specially the Federated Repository Metrics:
https://jfrog.com/help/r/jfrog-platform-administration-documentation/artifactory-metrics?section=UUID-0cd04332-07cd-5fb0-e1fa-fc73ad0d92cf_N1735741390296

To correct aren't these the router requested default Artifactory logs: Ref: https://jfrog.com/help/r/jfrog-platform-administration-documentation/router-request-log

I only see these but all the metrics

db_cluster
db_query_by_trigger_seconds_count
db_query_by_trigger_seconds_max
db_query_by_trigger_seconds_sum
db_query_duration_seconds_count
db_query_duration_seconds_max
db_query_duration_seconds_sum
docker_uploads_cleanup_items_handled_total
docker_uploads_cleanup_triggered_skipped_total
http_time_remote_seconds_count
http_time_remote_seconds_max
http_time_remote_seconds_sum
http_time_resolve_seconds_count
http_time_resolve_seconds_max
http_time_resolve_seconds_sum
http_time_to_start_seconds_count
http_time_to_start_seconds_max
http_time_to_start_seconds_sum
http_time_total_seconds_count
http_time_total_seconds_max
http_time_total_seconds_sum
http_time_write_seconds_count
http_time_write_seconds_max
http_time_write_seconds_sum
jfbh_rbv2_artifact_copied_seconds
jfbh_rbv2_artifacts_total
jfbh_rbv2_blocked_expired_keys_total
jfbh_rbv2_bundle_operations_total
jfbh_rbv2_creation_agents_total
jfbh_rbv2_creation_methods_total
jfbh_rbv2_deletion_agents_total
jfbh_rbv2_promotion_created_seconds
jfbh_rbv2_promotion_creation_agents_total
jfbh_rbv2_promotion_deleted_seconds
jfbh_rbv2_promotion_deletion_agents_total
jfbh_rbv2_promotion_operations_total
jfbh_rbv2_promotion_xray_status_total
jfbh_rbv2_promotions_completed_total 0 1739215002056
jfbh_rbv2_promotions_failed_total 0 1739215002056
jfbh_rbv2_promotions_total 0 1739215002056
jfbh_rbv2_properties_total
jfbh_rbv2_release_bundles_completed_total 0 1739215002056
jfbh_rbv2_release_bundles_failed_total 0 1739215002056
jfbh_rbv2_release_bundles_total 0 1739215002056
jfbh_rbv2_targets_promotion_created_seconds
jfbh_rbv2_version_created_seconds
jfbh_rbv2_version_deleted_seconds
jfrt_db_connections_active_total 0 1739215002056
jfrt_db_connections_idle_total 2 1739215002056
jfrt_db_connections_max_active_total 100 1739215002056
jfrt_db_connections_min_idle_total 1 1739215002056
jfrt_events_gc_binaries_deleted_total
jfrt_events_gc_deduped_events_total
jfrt_events_gc_events_total
jfrt_events_gc_failures_total
jfrt_events_gc_retry_exhausted_total
jfrt_events_gc_size_cleaned_bytes
jfrt_events_gc_squashed_events_total
jfrt_events_gc_waiting_total
jfrt_http_connections_available_total
jfrt_http_connections_leased_total
jfrt_http_connections_max_total
jfrt_http_connections_pending_total
jfrt_projects_active_total 0 1739215002056
jfrt_repo_avg_members_total
jfrt_repo_by_type_total
jfrt_repo_max_members_total
jfrt_runtime_heap_freememory_bytes 3110008432 1739215002056
jfrt_runtime_heap_maxmemory_bytes 17179869184 1739215002056
jfrt_runtime_heap_processors_total 30 1739215002056
jfrt_runtime_heap_totalmemory_bytes 6442450944 1739215002056
jfrt_stg_summary_checkpoint_binaries_size_bytes 11674646874183 1739215002056
jfrt_stg_summary_checkpoint_binaries_total 902530 1739215002056
jfrt_stg_summary_checkpoint_time_total 1739196120945 1739215002056
jfrt_stg_summary_files_total 1542499 1739215002056
jfrt_stg_summary_folders_total 138224 1739215002056
jfrt_stg_summary_project_count_total 1 1739215002056
jfrt_stg_summary_project_files_total 1542499 1739215002056
jfrt_stg_summary_project_max_files_total 1542499.0 1739215002056
jfrt_stg_summary_project_max_size_bytes 27418156289826 1739215002056
jfrt_stg_summary_project_size_bytes 27418156289826 1739215002056
jfrt_stg_summary_repo_count_total
jfrt_stg_summary_repo_files_total
jfrt_stg_summary_repo_folders_total
jfrt_stg_summary_repo_max_files_total
jfrt_stg_summary_repo_max_folders_total
jfrt_stg_summary_repo_max_size_bytes
jfrt_stg_summary_repo_size_bytes
jfrt_stg_summary_size_bytes 27418156289826 1739215002056
jfsh_binaries_bytes_download_total
jfsh_binaries_bytes_upload_total
jfsh_binaries_count_total
jfsh_binaries_download_failures_total 0 1739215002056
jfsh_binaries_download_speed
jfsh_binaries_download_speed_count
jfsh_binaries_download_speed_created
jfsh_binaries_download_speed_sum
jfsh_binaries_download_successes_total 49209 1739215002056
jfsh_binaries_download_total
jfsh_binaries_not_found_total
jfsh_binaries_upload_failures_total 0 1739215002056
jfsh_binaries_upload_internal_zero_content_length_header_total 0 1739215002056
jfsh_binaries_upload_speed
jfsh_binaries_upload_speed_count
jfsh_binaries_upload_speed_created
jfsh_binaries_upload_speed_sum
jfsh_binaries_upload_successes_total 13592 1739215002056
jfsh_binaries_upload_total
jfsh_cache_evicted_bytes
jfsh_http_connection_available_total
jfsh_http_connection_leased_total
jfsh_http_connection_max_total
jfsh_http_connection_pending_total
jfsh_internal_failure_retries_total
jfsh_internal_successful_retries_total
jfsh_multi_read_total
jfsh_multipart_upload_bytes_total 0 1739215002056
jfsh_multipart_upload_status_total 0 1739215002056
jfsh_sharding_optimization_required_total
jfsh_signed_url_redirect_total
jfsh_storage_size_bytes
jfsh_thread_pool_active_count_total
jfsh_thread_pool_pending_tasks_total
jfsh_zero_length_binaries_upload_internal_total 0 1739215002056
jobs_active
jobs_exec_seconds_count
jobs_exec_seconds_max
jobs_exec_seconds_sum
jvm_buffer_count_buffers
jvm_buffer_memory_used_bytes
jvm_buffer_total_capacity_bytes
jvm_classes_loaded_classes
jvm_classes_unloaded_classes_total
jvm_compilation_time_ms_total
jvm_gc_concurrent_phase_time_seconds_count
jvm_gc_concurrent_phase_time_seconds_max
jvm_gc_concurrent_phase_time_seconds_sum
jvm_gc_live_data_size_bytes
jvm_gc_max_data_size_bytes
jvm_gc_memory_allocated_bytes_total
jvm_gc_memory_promoted_bytes_total
jvm_gc_overhead_percent
jvm_gc_pause_seconds_count
jvm_gc_pause_seconds_max
jvm_gc_pause_seconds_sum
jvm_info
jvm_memory_committed_bytes
jvm_memory_max_bytes
jvm_memory_usage_after_gc_percent
jvm_memory_used_bytes
jvm_threads_daemon_threads
jvm_threads_live_threads
jvm_threads_peak_threads
jvm_threads_started_threads_total
jvm_threads_states_threads
logback_events_total
pq_events_bulk_consume_duration_seconds_count
pq_events_bulk_consume_duration_seconds_max
pq_events_bulk_consume_duration_seconds_sum
pq_events_bulk_process_duration_seconds_count
pq_events_bulk_process_duration_seconds_max
pq_events_bulk_process_duration_seconds_sum
pq_events_consumed_total
pq_events_filtered_total
pq_events_pending_duration_seconds_count
pq_events_pending_duration_seconds_max
pq_events_pending_duration_seconds_sum
pq_events_processed_total
pq_events_queued_total
pq_queue_events_failed_on_send_total
pq_queue_events_left
pq_queue_events_to_send_total
pq_queue_lag
pq_queue_sent_successfully_total
pq_queue_single_event_handle_avg_time_seconds_count
pq_queue_single_event_handle_avg_time_seconds_max
pq_queue_single_event_handle_avg_time_seconds_sum
pq_queue_total_events_handling_duration_timer_seconds_count
pq_queue_total_events_handling_duration_timer_seconds_max
pq_queue_total_events_handling_duration_timer_seconds_sum
pq_shift_events_duration_seconds_count
pq_shift_events_duration_seconds_max
pq_shift_events_duration_seconds_sum
pq_shift_events_total
process_cpu_usage
process_files_max_files
process_files_open_files
process_start_time_seconds
process_uptime_seconds
search_aql_result_set_size_count
search_aql_result_set_size_max
search_aql_result_set_size_sum
system_cpu_count
system_cpu_usage
system_load_average_1m
tomcat_cache_access_total
tomcat_cache_hit_total
tomcat_connections_config_max_connections
tomcat_connections_current_connections
tomcat_connections_keepalive_current_connections
tomcat_failed_metrics
tomcat_global_error_total
tomcat_global_received_bytes_total
tomcat_global_request_max_seconds
tomcat_global_request_seconds_count
tomcat_global_request_seconds_sum
tomcat_global_sent_bytes_total
tomcat_servlet_error_total
tomcat_servlet_request_max_seconds
tomcat_servlet_request_seconds_count
tomcat_servlet_request_seconds_sum
tomcat_sessions_active_current_sessions
tomcat_sessions_active_max_sessions
tomcat_sessions_alive_max_seconds
tomcat_sessions_created_sessions_total
tomcat_sessions_expired_sessions_total
tomcat_sessions_rejected_sessions_total
tomcat_threads_busy_threads
tomcat_threads_config_max_threads
tomcat_threads_current_threads
workqueue_active_workers
workqueue_execution_duration_seconds_count
workqueue_execution_duration_seconds_max
workqueue_execution_duration_seconds_sum
workqueue_max_workers
workqueue_pending_duration_seconds_count
workqueue_pending_duration_seconds_max
workqueue_pending_duration_seconds_sum
workqueue_pending_size
workqueue_tasks_consumed_total
workqueue_tasks_ignored_total
workqueue_tasks_published_total

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants