-
Notifications
You must be signed in to change notification settings - Fork 8.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Annotations for the InfluxDB module #2505
Conversation
@fntlnz thank you for your contribution. Please split this PR in two. The first one updating build.sh and Makefile from the nginx directory and another adding the feature and updating the Makefile to use the new nginx image. Also please add e2e tests to verify the new feature |
1d8ac78
to
c419206
Compare
Codecov Report
@@ Coverage Diff @@
## master #2505 +/- ##
==========================================
- Coverage 40.7% 40.62% -0.08%
==========================================
Files 73 74 +1
Lines 5034 5093 +59
==========================================
+ Hits 2049 2069 +20
- Misses 2711 2743 +32
- Partials 274 281 +7
Continue to review full report at Codecov.
|
@fntlnz ingress-nginx already has |
@ElvinEfendi that's a very different use case, the Worth noticing that you can also use telegraf instead of influxdb deployed as sidecar or at any other boundary if you don't want to send data to influxdb directly or you want to send the requests in batch of 10s 100s 1000s out of the node/network segment. So the main differences are:
In the usecase we built it for it does not replace the |
Signed-off-by: Lorenzo Fontana <lo@linux.com>
Signed-off-by: Lorenzo Fontana <lo@linux.com>
1dc1c58
to
7e62135
Compare
@aledbf pushed the e2e tests, this is now ready for review. |
Signed-off-by: Lorenzo Fontana <lo@linux.com>
/approve |
@fntlnz thanks! |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: aledbf, fntlnz The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
@fntlnz thanks for the detailed use-case explanation - that makes sense! |
Should the annotation be called something other then influxdb if that is the main use case? I could have easily overlooked it as I don't use influxdb. |
@kfox1111 I don't understand what do you mean, can you give some examples? |
@fntlnz the annotations are: But if you were not interested in using influxdb, but interested in "using udp to gather request statistics", its not obvious that you should be using the influx settings for that. |
@kfox1111 those settings ARE for influxdb. There is no "generic" nginx module for |
But in an earlier comment, you said you could send it to telegraph instead of influxdb. so its not really an influxdb thing specifically? |
Yes, you can do that through an influxdb output plugin but this is done in influxdb, not nginx itself |
Signed-off-by: Lorenzo Fontana lo@linux.com
What this PR does / why we need it:
This PR adds support for NGINX InfluxDB Module to the Nginx Ingress controller.The PR to update the image is #2533This PR allows to configure the InfluxDB module using annotations.
This is useful for those who want to monitor every request passing through the ingress controller by sending them to InfluxDB or to one of the supported output of Telegraf (e.g Kafka, graylog, mqtt, opentsdb and all the others)
Special notes for your reviewer: