Comments (3)
https://prometheus.io/docs/instrumenting/writing_clientlibs/
According to the documentation I think these are MUST
s we have to do:
- add
inc
,dec
,incBy
,decBy
to the Gauge - rename
increase
toinc
on the Counter - add a default collector registry which holds the it's state on a PHP class.
- validate label names according to https://prometheus.io/docs/concepts/data_model/#metric-names-and-labels
The redis protocol does not support doubles natively.
The current field content or the specified increment are not parsable as a double precision floating point number.
http://redis.io/commands/hincrbyfloat
However AFAIK redis stores the values internally as double so this shouldn't be a problem.
Just take a look into the java world: https://github.com/xetorthio/jedis/blob/master/src/main/java/redis/clients/jedis/Jedis.java#L596
from prometheus_client_php.
I changed the naming to be more similar to the existing libraries, according to the style guide.
I updated the readme and added some usage examples.
from prometheus_client_php.
I consider this done with the changes from #12 and #13.
from prometheus_client_php.
Related Issues (20)
- Several instances HOT 2
- CROSSSLOT Keys in request don't hash to the same slot
- How to install or use it in my own project? HOT 1
- Is the project still alive and supported?
- Use HTTPPLUG
- Can anyone explain how to set a TTL for Counters, Gauges, etc?
- Incompatibility with promethus/pushgateway:0.10.0
- Allow setting value of counter metrics HOT 1
- REDIS EXPIRE key HOT 1
- stream_set_timeout() expects parameter 1 to be resource, boolean given
- Labels are creating duplicated metrics HOT 1
- Support for timestamp in text format
- Tag new release with new APCu support HOT 2
- InMemory Functionality not working HOT 3
- Php tests failing right after cloning fresh HOT 2
- Create separate APC/APCu adapters. HOT 1
- No documentation? HOT 2
- What a useful SDK, but I don't really find how to delete a metric. HOT 1
- Redis::collectHistograms() throws PHP warning: sort() expects parameter 1 to be array, boolean given HOT 2
- Project status? HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from prometheus_client_php.