Skip to content

extend metrics list to prometheus #24

@allanian

Description

@allanian

Hello, good day, i have a question, how i can extend metrics list, what sended to prometheus?
e.g. opcache_last_restart_time.
what i get for now:
opcache_keyHits_misses{clusterName="project1", groupName="rv-site", hostName="rv-site-back04-company.com", instance="opcache-dashboard:42042", job="opcache-dashboard"} 399 opcache_keys_free{clusterName="project1", groupName="rv-site", hostName="rv-site-back04-company.com", instance="opcache-dashboard:42042", job="opcache-dashboard"} 64899 opcache_keys_usedKeys{clusterName="project1", groupName="rv-site", hostName="rv-site-back04-company.com", instance="opcache-dashboard:42042", job="opcache-dashboard"} 508 opcache_keys_usedScripts{clusterName="project1", groupName="rv-site", hostName="rv-site-back04-company.com", instance="opcache-dashboard:42042", job="opcache-dashboard"} 399 opcache_memory_free_bytes{clusterName="project1", groupName="rv-site", hostName="rv-site-back04-company.com", instance="opcache-dashboard:42042", job="opcache-dashboard"} 457799568 opcache_memory_used_bytes{clusterName="project1", groupName="rv-site", hostName="rv-site-back04-company.com", instance="opcache-dashboard:42042", job="opcache-dashboard"} 79071344 opcache_memory_wasted_bytes{clusterName="project1", groupName="rv-site", hostName="rv-site-back04-company.com", instance="opcache-dashboard:42042", job="opcache-dashboard"} 0 opcache_scripts_count{clusterName="project1", groupName="rv-site", hostName="rv-site-back04-company.com", instance="opcache-dashboard:42042", job="opcache-dashboard"} 399 scrape_duration_seconds{instance="opcache-dashboard:42042", job="opcache-dashboard"} 0.00063237 scrape_samples_post_metric_relabeling{instance="opcache-dashboard:42042", job="opcache-dashboard"} 8 scrape_samples_scraped{instance="opcache-dashboard:42042", job="opcache-dashboard"} 8 scrape_series_added{instance="opcache-dashboard:42042", job="opcache-dashboard"} 0 up{instance="opcache-dashboard:42042", job="opcache-dashboard"}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions