Skip to content

Simple server that scrapes OPcache status and exports it via HTTP for Prometheus consumption

License

Notifications You must be signed in to change notification settings

floodcode/opcache-exporter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

OPcache Exporter for Prometheus

GitHub go.mod Go version

This is a simple server that scrapes OPcache status and exports it via HTTP for Prometheus consumption.

Development

Building

make build

Running

$ opcache_exporter [<flags>]

Flags:
  -h, --help                    Show context-sensitive help (also try --help-long and --help-man).
      --web.listen-address=":9101"
                                Address to listen on for web interface and telemetry.
      --web.telemetry-path="/metrics"
                                Path under which to expose metrics.
      --opcache.fcgi-uri="tcp://127.0.0.1:9000"
                                Connection string to FastCGI server.
      --opcache.script-path=""  Path to PHP script which echoes json-encoded OPcache status
      --opcache.script-dir=""   Path to directory where temporary PHP file will be created

Set --opcache.fcgi-uri to a uri such as tcp://127.0.0.1:9000 if php-fpm is listening on a tcp socket or unix:///path/to/php.sock for a unix socket.

License

Copyright © 2020 Crowdin

The Crowdin OPcache exporter is licensed under the MIT License.
See the LICENSE file distributed with this work for additional
information regarding copyright ownership.

Except as contained in the LICENSE file, the name(s) of the above copyright
holders shall not be used in advertising or otherwise to promote the sale,
use or other dealings in this Software without prior written authorization.

About

Simple server that scrapes OPcache status and exports it via HTTP for Prometheus consumption

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •