Comments (1)
Hello.
The module aggregates the data of all requests all workers in the shared memory. Shared memory is allocated at the start of nginx. So we need in this moment know how much memory is required.
And that's why necessary to set graphite_data and graphite_param and this it do not get to use nginx variables.
But you can always use the if directive.
location /a {
if ($scheme = http) {
graphite_data a.http;
}
if ($scheme = https) {
graphite_data a.https;
}
...
}
Also graphite_param can be determined only once.
location /b {
graphite_param name=bc.lua aggregate=sum interval=1m;
content_by_lua '
ngx.graphite("bc.lua", 1)
';
}
location /c {
content_by_lua '
ngx.graphite("bc.lua", 1)
';
}
May be we will support for dynamically defined graphics (graphite_data with nginx variables and graphics from lua without graphite_param), but it will require a significant change in module.
from graphite-nginx-module.
Related Issues (20)
- all metrics stay 0.000 HOT 3
- Slow reload/shutdown HOT 2
- Metrics do not send over TCP to remote graphite host HOT 4
- Nginx 1.12 support HOT 2
- Segmentation fault when graphite_config is not set HOT 1
- Couldn't build with nginx 1.13.12 HOT 5
- What is supposed to happen in when graphite_default_data's $location is used with the root location? HOT 1
- Example of graphite_param in documentation only sends 0 for me HOT 5
- Is there a way to get the current aggregate value set by ngx.graphite()? HOT 5
- Fails to compile with ubuntu 12.04 HOT 6
- No stats are seen with Openresty-1.19.3.1
- Build failure with version >= 1.21.5 HOT 4
- Can I receive data with some other tool than graphite ? HOT 2
- Can't send custom metrics names from location
- ngx_http_graphite_ssl_session_reused breaks nginx tests
- Setting hostname via graphite_config HOT 2
- empty prefix HOT 4
- Error compiling with nginx 1.9.11+ HOT 7
- Can't use ngx.graphite() function to send metric data HOT 7
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 graphite-nginx-module.