Closed micemuni closed 2 years ago
Hey @micemuni , Can you get the logs from the exporter ? set the debug flag so it shows more info
artifactory_up 0
means artifactory is down .. makes sense since it probably cannot reach to Artifactory for some reason.
artifactory_exporter_total_api_errors 1
so looks like there is an error there. so check the logs to see where the issue is.
if you have the option to deploy using the helm chart, I encourage you do it that way.
@peimanja I don't see error on logs
# kubectl logs pod/artifactory-5f756fdcb-fcxbk -cartifactory-exporter -n prjm-cloud-env-dev-artifactory
level=info ts=2021-11-23T06:35:47.114Z caller=artifactory_exporter.go:30 msg="Starting artifactory_exporter" version="(version=v1.9.2, branch=refs/heads/master, revision=8953899379572cdac1ca725694857854291087ea)"
level=info ts=2021-11-23T06:35:47.114Z caller=artifactory_exporter.go:31 msg="Build context" context="(go=go1.17.2, user=, date=2021-10-20T05:50:49Z)"
level=info ts=2021-11-23T06:35:47.114Z caller=artifactory_exporter.go:32 msg="Listening on address" address=:9531
Here is pod describe
# kubectl describe pod/artifactory-5f756fdcb-fcxbk -n cloud-env-dev-artifactory
Name: artifactory-5f756fdcb-fcxbk
Namespace: cloud-env-dev-artifactory
Priority: 0
PriorityClassName: <none>
Node: ip-24-12-9-165.ec2.internal/24.12.9.165
Start Time: Tue, 23 Nov 2021 06:35:44 +0000
Labels: app=artifactory
pod-template-hash=5f756fdcb
Annotations: kubernetes.io/psp: eks.privileged
Status: Running
IP: 24.12.9.212
Controlled By: ReplicaSet/artifactory-5f756fdcb
Init Containers:
grant-permissions:
Container ID: docker://543a854154b06979b5e5f4efb4ad2f8a420b5295b196863f2325f5741e54bc6f
Image: busybox:1.26.2
Image ID: docker-pullable://busybox@sha256:be3c11fdba7cfe299214e46edc642e09514dbb9bbefcd0d3836c05a1e0cd0642
Port: <none>
Host Port: <none>
Command:
sh
Args:
-c
chown -R 1030 /var/opt/jfrog/artifactory
State: Terminated
Reason: Completed
Exit Code: 0
Started: Tue, 23 Nov 2021 06:35:45 +0000
Finished: Tue, 23 Nov 2021 06:35:45 +0000
Ready: True
Restart Count: 0
Environment: <none>
Mounts:
/var/opt/jfrog/artifactory from artifactory-home (rw)
/var/run/secrets/kubernetes.io/serviceaccount from default-token-kl69h (ro)
Containers:
artifactory:
Container ID: docker://08a445f4a79fa241e27b26e5ed7d321694bde2754d7335b0a8edc90486f3435e
Image: xxxxxxxxxxx.dkr.ecr.us-east-1.amazonaws.com/prjm/jfrog-artifactory:7.10.6
Image ID: docker-pullable://xxxxxxxxxxx.dkr.ecr.us-east-1.amazonaws.com/prjm/jfrog-artifactory@sha256:6ff8ed78b0c1a66fd9d93bb6d000d4ee3feb2a21c9adda5bd116d36e0845221c
Ports: 8082/TCP, 8081/TCP
Host Ports: 0/TCP, 0/TCP
State: Running
Started: Tue, 23 Nov 2021 06:35:46 +0000
Ready: True
Restart Count: 0
Environment:
artifactory_pod_ip: (v1:status.podIP)
Mounts:
/var/opt/jfrog/artifactory from artifactory-home (rw)
/var/run/secrets/kubernetes.io/serviceaccount from default-token-kl69h (ro)
artifactory-exporter:
Container ID: docker://2a0f6a5f0cefb0e7faab294524ecc16712856062d7cf8885206784de934b6977
Image: peimanja/artifactory_exporter:v1.9.2
Image ID: docker-pullable://peimanja/artifactory_exporter@sha256:aeeb229ea7cd180f8118f0b113b18108ff5e2c6ab9733980662e81be3e9e43b6
Port: 9531/TCP
Host Port: 0/TCP
Args:
--log.level=info
--log.format=logfmt
State: Running
Started: Tue, 23 Nov 2021 06:35:47 +0000
Ready: True
Restart Count: 0
Environment Variables from:
artifactory-exporter Secret Optional: false
Environment:
ARTI_SCRAPE_URI: http://$ARTIFACTORY_POD_IP:8081/artifactory
ARTI_USERNAME: admin
ARTI_PASSWORD: test123
ARTIFACTORY_POD_IP: (v1:status.podIP)
Mounts:
/var/run/secrets/kubernetes.io/serviceaccount from default-token-kl69h (ro)
Conditions:
Type Status
Initialized True
Ready True
ContainersReady True
PodScheduled True
Volumes:
artifactory-home:
Type: PersistentVolumeClaim (a reference to a PersistentVolumeClaim in the same namespace)
ClaimName: artifactory-pv-claim
ReadOnly: false
default-token-kl69h:
Type: Secret (a volume populated by a Secret)
SecretName: default-token-kl69h
Optional: false
QoS Class: BestEffort
Node-Selectors: <none>
Tolerations: node.kubernetes.io/not-ready:NoExecute for 300s
node.kubernetes.io/unreachable:NoExecute for 300s
Events:
Type Reason Age From Message
---- ------ ---- ---- -------
Normal Scheduled 8m12s default-scheduler Successfully assigned cloud-env-dev-artifactory/artifactory-5f756fdcb-fcxbk to ip-24-12-9-165.ec2.internal
Normal Pulling 8m11s kubelet, ip-24-12-9-165.ec2.internal Pulling image "busybox:1.26.2"
Normal Pulled 8m11s kubelet, ip-24-12-9-165.ec2.internal Successfully pulled image "busybox:1.26.2" in 101.972944ms
Normal Created 8m11s kubelet, ip-24-12-9-165.ec2.internal Created container grant-permissions
Normal Started 8m11s kubelet, ip-24-12-9-165.ec2.internal Started container grant-permissions
Normal Pulled 8m10s kubelet, ip-24-12-9-165.ec2.internal Successfully pulled image "xxxxxxxxx.dkr.ecr.us-east-1.amazonaws.com/prjm/jfrog-artifactory:7.10.6" in 179.427731ms
Normal Pulling 8m10s kubelet, ip-24-12-9-165.ec2.internal Pulling image "xxxxxxxx.dkr.ecr.us-east-1.amazonaws.com/prjm/jfrog-artifactory:7.10.6"
Normal Created 8m10s kubelet, ip-24-12-9-165.ec2.internal Created container artifactory
Normal Started 8m10s kubelet, ip-24-12-9-165.ec2.internal Started container artifactory
Normal Pulling 8m10s kubelet, ip-24-12-9-165.ec2.internal Pulling image "peimanja/artifactory_exporter:v1.9.2"
Normal Pulled 8m9s kubelet, ip-24-12-9-165.ec2.internal Successfully pulled image "peimanja/artifactory_exporter:v1.9.2" in 114.175623ms
Normal Created 8m9s kubelet, ip-24-12-9-165.ec2.internal Created container artifactory-exporter
Normal Started 8m9s kubelet, ip-24-12-9-165.ec2.internal Started container artifactory-exporter
Here is the metrics currently getting:
# HELP artifactory_exporter_build_info A metric with a constant '1' value labeled by version, revision, branch, and goversion from which artifactory_exporter was built.
# TYPE artifactory_exporter_build_info gauge
artifactory_exporter_build_info{branch="refs/heads/master",goversion="go1.17.2",revision="8953899379572cdac1ca725694857854291087ea",version="v1.9.2"} 1
# HELP artifactory_exporter_json_parse_failures Number of errors while parsing Json.
# TYPE artifactory_exporter_json_parse_failures counter
artifactory_exporter_json_parse_failures 0
# HELP artifactory_exporter_total_api_errors Current total API errors.
# TYPE artifactory_exporter_total_api_errors counter
artifactory_exporter_total_api_errors 6
# HELP artifactory_exporter_total_scrapes Current total artifactory scrapes.
# TYPE artifactory_exporter_total_scrapes counter
artifactory_exporter_total_scrapes 6
# HELP artifactory_up Was the last scrape of artifactory successful.
# TYPE artifactory_up gauge
artifactory_up 0
# HELP go_gc_duration_seconds A summary of the GC invocation durations.
# TYPE go_gc_duration_seconds summary
go_gc_duration_seconds{quantile="0"} 0
go_gc_duration_seconds{quantile="0.25"} 0
go_gc_duration_seconds{quantile="0.5"} 0
go_gc_duration_seconds{quantile="0.75"} 0
go_gc_duration_seconds{quantile="1"} 0
go_gc_duration_seconds_sum 0
go_gc_duration_seconds_count 0
# HELP go_goroutines Number of goroutines that currently exist.
# TYPE go_goroutines gauge
go_goroutines 9
# HELP go_info Information about the Go environment.
# TYPE go_info gauge
go_info{version="go1.17.2"} 1
# HELP go_memstats_alloc_bytes Number of bytes allocated and still in use.
# TYPE go_memstats_alloc_bytes gauge
go_memstats_alloc_bytes 3.101248e+06
# HELP go_memstats_alloc_bytes_total Total number of bytes allocated, even if freed.
# TYPE go_memstats_alloc_bytes_total counter
go_memstats_alloc_bytes_total 3.101248e+06
# HELP go_memstats_buck_hash_sys_bytes Number of bytes used by the profiling bucket hash table.
# TYPE go_memstats_buck_hash_sys_bytes gauge
go_memstats_buck_hash_sys_bytes 4062
# HELP go_memstats_frees_total Total number of frees.
# TYPE go_memstats_frees_total counter
go_memstats_frees_total 624
# HELP go_memstats_gc_cpu_fraction The fraction of this program's available CPU time used by the GC since the program started.
# TYPE go_memstats_gc_cpu_fraction gauge
go_memstats_gc_cpu_fraction 0
# HELP go_memstats_gc_sys_bytes Number of bytes used for garbage collection system metadata.
# TYPE go_memstats_gc_sys_bytes gauge
go_memstats_gc_sys_bytes 4.011488e+06
# HELP go_memstats_heap_alloc_bytes Number of heap bytes allocated and still in use.
# TYPE go_memstats_heap_alloc_bytes gauge
go_memstats_heap_alloc_bytes 3.101248e+06
# HELP go_memstats_heap_idle_bytes Number of heap bytes waiting to be used.
# TYPE go_memstats_heap_idle_bytes gauge
go_memstats_heap_idle_bytes 3.751936e+06
# HELP go_memstats_heap_inuse_bytes Number of heap bytes that are in use.
# TYPE go_memstats_heap_inuse_bytes gauge
go_memstats_heap_inuse_bytes 4.145152e+06
# HELP go_memstats_heap_objects Number of allocated objects.
# TYPE go_memstats_heap_objects gauge
go_memstats_heap_objects 7068
# HELP go_memstats_heap_released_bytes Number of heap bytes released to OS.
# TYPE go_memstats_heap_released_bytes gauge
go_memstats_heap_released_bytes 3.64544e+06
# HELP go_memstats_heap_sys_bytes Number of heap bytes obtained from system.
# TYPE go_memstats_heap_sys_bytes gauge
go_memstats_heap_sys_bytes 7.897088e+06
# HELP go_memstats_last_gc_time_seconds Number of seconds since 1970 of last garbage collection.
# TYPE go_memstats_last_gc_time_seconds gauge
go_memstats_last_gc_time_seconds 0
# HELP go_memstats_lookups_total Total number of pointer lookups.
# TYPE go_memstats_lookups_total counter
go_memstats_lookups_total 0
# HELP go_memstats_mallocs_total Total number of mallocs.
# TYPE go_memstats_mallocs_total counter
go_memstats_mallocs_total 7692
# HELP go_memstats_mcache_inuse_bytes Number of bytes in use by mcache structures.
# TYPE go_memstats_mcache_inuse_bytes gauge
go_memstats_mcache_inuse_bytes 4800
# HELP go_memstats_mcache_sys_bytes Number of bytes used for mcache structures obtained from system.
# TYPE go_memstats_mcache_sys_bytes gauge
go_memstats_mcache_sys_bytes 16384
# HELP go_memstats_mspan_inuse_bytes Number of bytes in use by mspan structures.
# TYPE go_memstats_mspan_inuse_bytes gauge
go_memstats_mspan_inuse_bytes 54400
# HELP go_memstats_mspan_sys_bytes Number of bytes used for mspan structures obtained from system.
# TYPE go_memstats_mspan_sys_bytes gauge
go_memstats_mspan_sys_bytes 65536
# HELP go_memstats_next_gc_bytes Number of heap bytes when next garbage collection will take place.
# TYPE go_memstats_next_gc_bytes gauge
go_memstats_next_gc_bytes 4.473924e+06
# HELP go_memstats_other_sys_bytes Number of bytes used for other system allocations.
# TYPE go_memstats_other_sys_bytes gauge
go_memstats_other_sys_bytes 968274
# HELP go_memstats_stack_inuse_bytes Number of bytes in use by the stack allocator.
# TYPE go_memstats_stack_inuse_bytes gauge
go_memstats_stack_inuse_bytes 491520
# HELP go_memstats_stack_sys_bytes Number of bytes obtained from system for stack allocator.
# TYPE go_memstats_stack_sys_bytes gauge
go_memstats_stack_sys_bytes 491520
# HELP go_memstats_sys_bytes Number of bytes obtained from system.
# TYPE go_memstats_sys_bytes gauge
go_memstats_sys_bytes 1.3454352e+07
# HELP go_threads Number of OS threads created.
# TYPE go_threads gauge
go_threads 8
# HELP process_cpu_seconds_total Total user and system CPU time spent in seconds.
# TYPE process_cpu_seconds_total counter
process_cpu_seconds_total 0.02
# HELP process_max_fds Maximum number of open file descriptors.
# TYPE process_max_fds gauge
process_max_fds 1.048576e+06
# HELP process_open_fds Number of open file descriptors.
# TYPE process_open_fds gauge
process_open_fds 11
# HELP process_resident_memory_bytes Resident memory size in bytes.
# TYPE process_resident_memory_bytes gauge
process_resident_memory_bytes 1.263616e+07
# HELP process_start_time_seconds Start time of the process since unix epoch in seconds.
# TYPE process_start_time_seconds gauge
process_start_time_seconds 1.63764934699e+09
# HELP process_virtual_memory_bytes Virtual memory size in bytes.
# TYPE process_virtual_memory_bytes gauge
process_virtual_memory_bytes 1.195573248e+09
# HELP process_virtual_memory_max_bytes Maximum amount of virtual memory available in bytes.
# TYPE process_virtual_memory_max_bytes gauge
process_virtual_memory_max_bytes -1
# HELP promhttp_metric_handler_requests_in_flight Current number of scrapes being served.
# TYPE promhttp_metric_handler_requests_in_flight gauge
promhttp_metric_handler_requests_in_flight 1
# HELP promhttp_metric_handler_requests_total Total number of scrapes by HTTP status code.
# TYPE promhttp_metric_handler_requests_total counter
promhttp_metric_handler_requests_total{code="200"} 5
promhttp_metric_handler_requests_total{code="500"} 0
promhttp_metric_handler_requests_total{code="503"} 0
Here is the secret:
# kubectl describe secret artifactory-exporter -n cloud-env-dev-artifactory
Name: artifactory-exporter
Namespace: cloud-env-dev-artifactory
Labels: app=artifactory
Annotations: <none>
Type: Opaque
Data
====
ARTI_PASSWORD: 9 bytes
ARTI_USERNAME: 5 bytes
Do we need to pass --env-file=env_filename as like same.?? Kubernetes is not accepting the underscore in name ( like env_file_name ). Even though i mount file env_file_name & the set ENV variable "below", still no luck
env {
name = "--env-file"
value = "/usr/local/env_file_name"
}
Here we are not using helm chart, so deployed it as normal kubernetes deployment, please help me to fix the artifactory_up 0 issue
Thanks for providing the info but not really helpful since that's just beginning of the logs. so you can follow these steps:
--log.level debug
You can also shell into the exporter and try reaching to artifactory and see if it can reach it and also confirm your creds
@peimanja Thank you for reply,
I am not able to get shell into exporter, even i run like docker run cmd also https://github.com/peimanja/artifactory_exporter#docker but i can't shell into exporter.
Please guide me if i did any wrong because of shell is not working..?
Error:- tried with sh, bash, /bin/bash, /bin/sh, /bin/shell but no luck, same error "executable file not found in $PATH: unknown"
# kubectl exec artifactory-5b46d7878b-dl2sp -n cloud-env-dev-artifactory -it -c artifactory-exporter -- sh
OCI runtime exec failed: exec failed: container_linux.go:380: starting container process caused: exec: "sh": executable file not found in $PATH: unknown
command terminated with exit code 126
I have added debug flag and the above mentioned logs only seeing,
artifactory-exporter:
Container ID: docker://7f4942cb575178f46281cd0b5d4c42ac73525716425eedac4749cd96763d0688
Image: peimanja/artifactory_exporter:v1.9.2
Image ID: docker-pullable://peimanja/artifactory_exporter@sha256:aeeb229ea7cd180f8118f0b113b18108ff5e2c6ab9733980662e81be3e9e43b6
Port: 9531/TCP
Host Port: 0/TCP
Args:
--log.level=debug
--log.format=logfmt
--artifactory.scrape-uri=http://$ARTIFACTORY_POD_IP:8081/artifactory
State: Running
Started: Wed, 24 Nov 2021 05:10:01 +0000
Ready: True
Restart Count: 0
Environment:
ARTI_USERNAME: admin
ARTI_PASSWORD: test123
ARTIFACTORY_POD_IP: (v1:status.podIP)
Mounts:
/var/run/secrets/kubernetes.io/serviceaccount from default-token-kl69h (ro)
Conditions:
Type Status
Initialized True
After enabled debug mode
# kubectl logs pod/artifactory-7786bc4d4c-5l29m -n prjm-cloud-env-dev-artifactory -c artifactory-exporter
level=info ts=2021-11-24T05:10:01.924Z caller=artifactory_exporter.go:30 msg="Starting artifactory_exporter" version="(version=v1.9.2, branch=refs/heads/master, revision=8953899379572cdac1ca725694857854291087ea)"
level=info ts=2021-11-24T05:10:01.924Z caller=artifactory_exporter.go:31 msg="Build context" context="(go=go1.17.2, user=, date=2021-10-20T05:50:49Z)"
level=info ts=2021-11-24T05:10:01.924Z caller=artifactory_exporter.go:32 msg="Listening on address" address=:9531
@peimanja FYI I have tried this also as part of fix but no luck, same status
artifactory-exporter:
Container ID: docker://91708ba4f27eb9c593337cd633c02566779fbb1165f5a4f6180797f60e477e25
Image: peimanja/artifactory_exporter:v1.9.2
Image ID: docker-pullable://peimanja/artifactory_exporter@sha256:aeeb229ea7cd180f8118f0b113b18108ff5e2c6ab9733980662e81be3e9e43b6
Port: 9531/TCP
Host Port: 0/TCP
Args:
--log.level=debug
State: Running
Started: Wed, 24 Nov 2021 08:01:06 +0000
Ready: True
Restart Count: 0
Environment:
ARTI_ACCESS_TOKEN: xxxxxxxxxxxxxxx
Mounts:
/var/run/secrets/kubernetes.io/serviceaccount from default-token-kl69h (ro)
Conditions:
Type Status
Initialized True
Ready True
I am not able to get shell into exporter, even i run like docker run cmd also peimanja/artifactory_exporter#docker but i can't shell into exporter.
right I forgot that you cannot shell into this one.
After enabled debug mode
again you are not capturing logs after it's being scraped. It shows the details on every call to artifactory and capture issues if there is any.
if artifactory is reachable from you local machine I encourage you to download the latest binary from here and try this locally without going through the complications of kubernetes.
Finally found the exact issue and deployed artifactory & exporter on EKS cluster, then fixed API errors, now able to get artifactory metrics data via exporter.
Issue: It's fresh artifactory installation and there is no license uploaded, so that artifactory exporter API throwing errors, i have uploaded license and then it's working.
Thank you @peimanja
**Code :**
artifactory-exporter:
Container ID: docker://9be64f70117d1bc06bc47743e44e8a1c008255043b08a2583950a45a578dd117
Image: peimanja/artifactory_exporter:v1.9.2
Image ID: docker-pullable://peimanja/artifactory_exporter@sha256:aeeb229ea7cd180f8118f0b113b18108ff5e2c6ab9733980662e81be3e9e43b6
Port: 9531/TCP
Host Port: 0/TCP
Args:
--log.level=debug
--artifactory.scrape-uri=http://localhost:8081/artifactory
State: Running
Started: Thu, 25 Nov 2021 08:28:02 +0000
Ready: True
Restart Count: 0
Environment:
ARTI_USERNAME: admin
ARTI_PASSWORD: test123
Mounts:
/var/run/secrets/kubernetes.io/serviceaccount from default-token-kl69h (ro)
Conditions:
Type Status
Initialized True
**Scrape Metrics:**
# HELP artifactory_artifacts_created_15m Number of artifacts created in the repository in the last 15 minutes.
# TYPE artifactory_artifacts_created_15m gauge
artifactory_artifacts_created_15m{name="artifactory-build-info",package_type="buildinfo",type="local"} 0
artifactory_artifacts_created_15m{name="auto-trashcan",package_type="na",type="na"} 0
artifactory_artifacts_created_15m{name="example-repo-local",package_type="generic",type="local"} 0
artifactory_artifacts_created_15m{name="jfrog-support-bundle",package_type="na",type="na"} 0
artifactory_artifacts_created_15m{name="munitest",package_type="npm",type="local"} 0
artifactory_artifacts_created_15m{name="test-muni",package_type="docker",type="local"} 0
# HELP artifactory_artifacts_created_1m Number of artifacts created in the repository in the last 1 minute.
# TYPE artifactory_artifacts_created_1m gauge
artifactory_artifacts_created_1m{name="artifactory-build-info",package_type="buildinfo",type="local"} 0
artifactory_artifacts_created_1m{name="auto-trashcan",package_type="na",type="na"} 0
artifactory_artifacts_created_1m{name="example-repo-local",package_type="generic",type="local"} 0
artifactory_artifacts_created_1m{name="jfrog-support-bundle",package_type="na",type="na"} 0
artifactory_artifacts_created_1m{name="munitest",package_type="npm",type="local"} 0
artifactory_artifacts_created_1m{name="test-muni",package_type="docker",type="local"} 0
# HELP artifactory_artifacts_created_5m Number of artifacts created in the repository in the last 5 minutes.
# TYPE artifactory_artifacts_created_5m gauge
artifactory_artifacts_created_5m{name="artifactory-build-info",package_type="buildinfo",type="local"} 0
artifactory_artifacts_created_5m{name="auto-trashcan",package_type="na",type="na"} 0
artifactory_artifacts_created_5m{name="example-repo-local",package_type="generic",type="local"} 0
artifactory_artifacts_created_5m{name="jfrog-support-bundle",package_type="na",type="na"} 0
artifactory_artifacts_created_5m{name="munitest",package_type="npm",type="local"} 0
artifactory_artifacts_created_5m{name="test-muni",package_type="docker",type="local"} 0
# HELP artifactory_artifacts_downloaded_15m Number of artifacts downloaded from the repository in the last 15 minutes.
# TYPE artifactory_artifacts_downloaded_15m gauge
artifactory_artifacts_downloaded_15m{name="artifactory-build-info",package_type="buildinfo",type="local"} 0
artifactory_artifacts_downloaded_15m{name="auto-trashcan",package_type="na",type="na"} 0
artifactory_artifacts_downloaded_15m{name="example-repo-local",package_type="generic",type="local"} 0
artifactory_artifacts_downloaded_15m{name="jfrog-support-bundle",package_type="na",type="na"} 0
artifactory_artifacts_downloaded_15m{name="munitest",package_type="npm",type="local"} 0
artifactory_artifacts_downloaded_15m{name="test-muni",package_type="docker",type="local"} 0
# HELP artifactory_artifacts_downloaded_1m Number of artifacts downloaded from the repository in the last 1 minute.
# TYPE artifactory_artifacts_downloaded_1m gauge
artifactory_artifacts_downloaded_1m{name="artifactory-build-info",package_type="buildinfo",type="local"} 0
artifactory_artifacts_downloaded_1m{name="auto-trashcan",package_type="na",type="na"} 0
artifactory_artifacts_downloaded_1m{name="example-repo-local",package_type="generic",type="local"} 0
artifactory_artifacts_downloaded_1m{name="jfrog-support-bundle",package_type="na",type="na"} 0
artifactory_artifacts_downloaded_1m{name="munitest",package_type="npm",type="local"} 0
artifactory_artifacts_downloaded_1m{name="test-muni",package_type="docker",type="local"} 0
# HELP artifactory_artifacts_downloaded_5m Number of artifacts downloaded from the repository in the last 5 minutes.
# TYPE artifactory_artifacts_downloaded_5m gauge
artifactory_artifacts_downloaded_5m{name="artifactory-build-info",package_type="buildinfo",type="local"} 0
artifactory_artifacts_downloaded_5m{name="auto-trashcan",package_type="na",type="na"} 0
artifactory_artifacts_downloaded_5m{name="example-repo-local",package_type="generic",type="local"} 0
artifactory_artifacts_downloaded_5m{name="jfrog-support-bundle",package_type="na",type="na"} 0
artifactory_artifacts_downloaded_5m{name="munitest",package_type="npm",type="local"} 0
artifactory_artifacts_downloaded_5m{name="test-muni",package_type="docker",type="local"} 0
# HELP artifactory_exporter_build_info A metric with a constant '1' value labeled by version, revision, branch, and goversion from which artifactory_exporter was built.
# TYPE artifactory_exporter_build_info gauge
artifactory_exporter_build_info{branch="refs/heads/master",goversion="go1.17.2",revision="8953899379572cdac1ca725694857854291087ea",version="v1.9.2"} 1
# HELP artifactory_exporter_json_parse_failures Number of errors while parsing Json.
# TYPE artifactory_exporter_json_parse_failures counter
artifactory_exporter_json_parse_failures 0
# HELP artifactory_exporter_total_api_errors Current total API errors.
# TYPE artifactory_exporter_total_api_errors counter
artifactory_exporter_total_api_errors 3
# HELP artifactory_exporter_total_scrapes Current total artifactory scrapes.
# TYPE artifactory_exporter_total_scrapes counter
artifactory_exporter_total_scrapes 317
# HELP artifactory_security_groups Number of Artifactory groups
# TYPE artifactory_security_groups gauge
artifactory_security_groups 1
# HELP artifactory_security_users Number of Artifactory users for each realm.
# TYPE artifactory_security_users gauge
artifactory_security_users{realm="internal"} 3
# HELP artifactory_storage_artifacts Total artifacts count stored in Artifactory.
# TYPE artifactory_storage_artifacts gauge
artifactory_storage_artifacts 0
# HELP artifactory_storage_artifacts_size_bytes Total artifacts Size stored in Artifactory in bytes.
# TYPE artifactory_storage_artifacts_size_bytes gauge
artifactory_storage_artifacts_size_bytes 0
# HELP artifactory_storage_binaries Total binaries count stored in Artifactory.
# TYPE artifactory_storage_binaries gauge
artifactory_storage_binaries 0
# HELP artifactory_storage_binaries_size_bytes Total binaries Size stored in Artifactory in bytes.
# TYPE artifactory_storage_binaries_size_bytes gauge
artifactory_storage_binaries_size_bytes 0
# HELP artifactory_storage_filestore_bytes Total available space in the file store in bytes.
# TYPE artifactory_storage_filestore_bytes gauge
artifactory_storage_filestore_bytes{storage_dir="/opt/jfrog/artifactory/var/data/artifactory/filestore",storage_type="file-system"} 1.0555955871744e+11
# HELP artifactory_storage_filestore_free_bytes Free space in the file store in bytes.
# TYPE artifactory_storage_filestore_free_bytes gauge
artifactory_storage_filestore_free_bytes{storage_dir="/opt/jfrog/artifactory/var/data/artifactory/filestore",storage_type="file-system"} 1.0524817358848e+11
# HELP artifactory_storage_filestore_used_bytes Used space in the file store in bytes.
# TYPE artifactory_storage_filestore_used_bytes gauge
artifactory_storage_filestore_used_bytes{storage_dir="/opt/jfrog/artifactory/var/data/artifactory/filestore",storage_type="file-system"} 3.044540416e+08
# HELP artifactory_storage_repo_files Number files in an Artifactory repository.
# TYPE artifactory_storage_repo_files gauge
artifactory_storage_repo_files{name="artifactory-build-info",package_type="buildinfo",type="local"} 0
artifactory_storage_repo_files{name="auto-trashcan",package_type="na",type="na"} 0
artifactory_storage_repo_files{name="example-repo-local",package_type="generic",type="local"} 0
artifactory_storage_repo_files{name="jfrog-support-bundle",package_type="na",type="na"} 0
artifactory_storage_repo_files{name="munitest",package_type="npm",type="local"} 0
artifactory_storage_repo_files{name="test-muni",package_type="docker",type="local"} 0
# HELP artifactory_storage_repo_folders Number of folders in an Artifactory repository.
# TYPE artifactory_storage_repo_folders gauge
artifactory_storage_repo_folders{name="artifactory-build-info",package_type="buildinfo",type="local"} 0
artifactory_storage_repo_folders{name="auto-trashcan",package_type="na",type="na"} 0
artifactory_storage_repo_folders{name="example-repo-local",package_type="generic",type="local"} 0
artifactory_storage_repo_folders{name="jfrog-support-bundle",package_type="na",type="na"} 0
artifactory_storage_repo_folders{name="munitest",package_type="npm",type="local"} 0
artifactory_storage_repo_folders{name="test-muni",package_type="docker",type="local"} 0
# HELP artifactory_storage_repo_items Number Items in an Artifactory repository.
# TYPE artifactory_storage_repo_items gauge
artifactory_storage_repo_items{name="artifactory-build-info",package_type="buildinfo",type="local"} 0
artifactory_storage_repo_items{name="auto-trashcan",package_type="na",type="na"} 0
artifactory_storage_repo_items{name="example-repo-local",package_type="generic",type="local"} 0
artifactory_storage_repo_items{name="jfrog-support-bundle",package_type="na",type="na"} 0
artifactory_storage_repo_items{name="munitest",package_type="npm",type="local"} 0
artifactory_storage_repo_items{name="test-muni",package_type="docker",type="local"} 0
# HELP artifactory_storage_repo_percentage Percentage of space used by an Artifactory repository.
# TYPE artifactory_storage_repo_percentage gauge
artifactory_storage_repo_percentage{name="artifactory-build-info",package_type="buildinfo",type="local"} 0
artifactory_storage_repo_percentage{name="auto-trashcan",package_type="na",type="na"} 0
artifactory_storage_repo_percentage{name="example-repo-local",package_type="generic",type="local"} 0
artifactory_storage_repo_percentage{name="jfrog-support-bundle",package_type="na",type="na"} 0
artifactory_storage_repo_percentage{name="munitest",package_type="npm",type="local"} 0
artifactory_storage_repo_percentage{name="test-muni",package_type="docker",type="local"} 0
# HELP artifactory_storage_repo_used_bytes Used space by an Artifactory repository in bytes.
# TYPE artifactory_storage_repo_used_bytes gauge
artifactory_storage_repo_used_bytes{name="artifactory-build-info",package_type="buildinfo",type="local"} 0
artifactory_storage_repo_used_bytes{name="auto-trashcan",package_type="na",type="na"} 0
artifactory_storage_repo_used_bytes{name="example-repo-local",package_type="generic",type="local"} 0
artifactory_storage_repo_used_bytes{name="jfrog-support-bundle",package_type="na",type="na"} 0
artifactory_storage_repo_used_bytes{name="munitest",package_type="npm",type="local"} 0
artifactory_storage_repo_used_bytes{name="test-muni",package_type="docker",type="local"} 0
# HELP artifactory_system_healthy Is Artifactory working properly (1 = healthy).
# TYPE artifactory_system_healthy gauge
artifactory_system_healthy 1
# HELP artifactory_system_license License type and expiry as labels, seconds to expiration as value
# TYPE artifactory_system_license gauge
artifactory_system_license{expires="Dec 15, 2021",licensed_to="Test license",type="commercial"} +06
# HELP artifactory_system_version Version and revision of Artifactory as labels.
# TYPE artifactory_system_version gauge
artifactory_system_version{revision="71006900",version="7.10.6"} 1
# HELP artifactory_up Was the last scrape of artifactory successful.
# TYPE artifactory_up gauge
artifactory_up 1
# HELP go_gc_duration_seconds A summary of the GC invocation durations.
# TYPE go_gc_duration_seconds summary
Overview of the Issue
Based on this https://github.com/peimanja/artifactory_exporter#flags tried many time & different way to fix this issue but still having same issue
Exact issue: When i checked with metrics of exporter URL, i am getting artifactory_up is 0. Why this artifactory_exporter is not able to reach OR get all metrics..?
But i don't know why artifactory_up 0
localhost:9531/metrics
Reproduction Steps
Code:
Logs