idealista / prometheus_server_role Goto Github PK
View Code? Open in Web Editor NEWAnsible role to install a Prometheus server
License: Apache License 2.0
Ansible role to install a Prometheus server
License: Apache License 2.0
Every week the Travis build fails because of a Pipenv error: https://app.travis-ci.com/github/idealista/prometheus_server_role. We should fix this.
N/A
Reported in travis
N/A
Add option to configure remote_url and remote_write code blocks in prometheus.yml
Include CI and contribution files
Right now the rules are being copied to the host using the 'copy' module instead of prev used 'template'.
So it's not neccessary to still use the templates folder
Expected behavior: Use files folder (at least change to prometheus_rules_files_path) in the copy/rsync rules task
Actual behavior: Copy/rsync task is using prometheus_rules_templates_path
Reproduces how often: Always
1.3.1
If both handlers are triggered, Prometheus will first restart and then reload. If Prometheus doesn't restart quick enough, the second handler will fail and that can cause an innecessary play interrumption.
Add test-requirements.txt in order to make easier the tests launch. In additon, you could launch the tests with pipenv.
Expected behavior: [What you expect to happen]
Actual behavior: [What actually happens]
Reproduces how often:
1.4.0
Any additional information, configuration or data that might be necessary to reproduce the issue.
Templates with custom jinja delimiters instead of copy for rules
To use conditionals using jinja templates. E.g. different contents in rules file depending if the environment is production or staging
N/A
To solve the idempotency of abv-monitor-playbook it is necessary to match the path of the prometheus user shell as the rest of the roles on which it depends:
So the role is updated along all the roles
N/A
It would be great to pass the variables in a config file to make the start script more flexible
Currently, this role does not provide any mechanism to check if the Prometheus config files are correct. They can be checked in Molecule's verify with promtool, but this option does not provide enough information as the Prometheus service won't boot, failing the playbook in the converge stage.
It would be interesting to check those files with promtool before the copy.
In order to provide more descriptive information about bad configured alerts and etc
It would be interesting to try promruval
[Description of the issue]
Automatic removal of old scrape files that are not in the playbook anymore.
[A clear and concise description of why do you think this is needed]
If you want to remove an old scrape file from your prometheus server, you have to manually remove it in the server.
Removing it from your playbook and running it is not enough.
With this implementation, that process would be made by ansible by running your playbook.
[Any additional information, configuration or data.]
Prometheus 2 was released on November 2017 and could be interesting to discontinue our support to previous versions (in order to have the role cleaner and make the Travis tests faster). Plus, maybe we should update the role default version to the most updated one (2.6.1 at this moment) as well
Are there plans to make this role support yum / rpm based systems?
It would be great to add support for making tuning when you configure a remote write endpoint to storage data in a third-party long-term storage.
Basically, for memory usage tuning.
[* ] Put an X between the brackets on this line if you have done all of the following:
* Checked that your issue isn't already filled: https://github.com/issues?utf8=✓&q=is%3Aissue+user%3Aidealista
* Checked that there is not already provided the described functionality
Enable Prometheus Server 2.0 configuration.
Provide support for older versions is a must :)
Sorry for the catchy title. Sometimes the reload handler fails, but it actually succeeds reloading Prometheus. Problem is that, in big instances, sometimes it takes more than 30 seconds to respond. Rising the timeout will fix the problem.
The current version of this role uses vagrant for testing. We must move to docker in order to standarize this role. And, by the way, we'll upgrade molecule version and rename role in order be Galaxy compliant.
All.
Due to the ">" in https://github.com/idealista/prometheus_server-role/blob/master/templates/prometheus.service.j2#L11, every time Prometheus is restarted it overwrites prometheus.log
. It should be replaced with ">>" so it appends the new output to the previous log file.
prometheus.log
file.systemctl restart prometheus.service
prometheus.log
file.Expected behavior: See both restarts.
Actual behavior: Only last restart appears.
Reproduces how often: Always
All.
In some servers it gets stuck when reloading after a change in the rules. It can be solved by stop using the reload handler and only use the restart handler, which works well.
Expected behavior:
To work after changing the rules
Actual behavior:
Gets stuck reloading after change in rules
Reproduces how often:
Only on some servers
N/A
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.