robustperception / demo_prometheus_ansible Goto Github PK
View Code? Open in Web Editor NEWAnsible config for live Prometheus demo
Home Page: http://demo.robustperception.io
License: Apache License 2.0
Ansible config for live Prometheus demo
Home Page: http://demo.robustperception.io
License: Apache License 2.0
I had a look through the main.yml file and had some questions with a few configuration aspects.
# Only 1GB of RAM
DAEMON_ARGS="$DAEMON_ARGS -storage.local.memory-chunks=51200"
DAEMON_ARGS="$DAEMON_ARGS -storage.local.max-chunks-to-persist=51200"
What is the relationship between memory chunks and RAM? Is there a fixed size to a chunk?
# Keep 6 months of data
DAEMON_ARGS="$DAEMON_ARGS -storage.local.retention=744h"
744h equals 31 days -- how does this result in keeping 6 months of data?
Hi,
I'm not sure if this is the right place to report repository issues, but anyway here goes.
I'm trying to use your repo and packages with ubuntu Xenial and found out that the names of packages differ. Would you consider changing packages names to match the names of official ubuntu packages eg.:
node-exporter -> prometheus-node-exporter
pushgateway -> prometheus-pushgateway
alertmanager -> prometheus-alertmanager
Currently, when your repo is enabled on xenial, the search for prometheus results in:
ring01:~# apt-cache search prometheus
cadvisor - analyze resource usage and performance characteristics of running containers
golang-github-google-cadvisor-dev - analyze resource usage and performance of running containers
golang-github-prometheus-common-dev - Common libraries for Prometheus components
golang-github-prometheus-log-dev - Logging library for Prometheus's Go-based components
golang-prometheus-client-dev - Prometheus instrumentation library for Go applications
prometheus-cli - Prometheus command line interface
prometheus-node-exporter - Prometheus exporter for machine metrics
prometheus-pushgateway - Prometheus exporter for ephemereal jobs
python-prometheus-client - Python 2 client for the Prometheus monitoring system
python3-prometheus-client - Python 3 client for the Prometheus monitoring system
prometheus-mysqld-exporter - Prometheus exporter for MySQL server.
alertmanager - Alertmanager for Prometheus monitoring system
node-exporter - Prometheus exporter agent for machine metrics
prometheus - Prometheus monitoring system and time series database
pushgateway - Pushgateway for Prometheus monitoring system
*/5 * * * * root du -sb /var/log /var/cache/apt /var/lib/prometheus | sed -ne 's/^\([0-9]\+\)\t\(.*\)$/node_directory_size_bytes{directory="\2"} \1/p' > /var/lib/node_exporter/textfile_collector/directory_size.prom.$$ && mv /var/lib/node_exporter/textfile_collector/directory_size.prom.$$ /var/lib/node_exporter/textfile_collector/directory_size.prom
@brian-brazil One issue here is that the '&&' will only fail if the 'sed' command fails, and not if the 'du' command fails... e.g.
prometheus1 ~ # du -sb /var/lib/prometheus | sed -ne 's/^\([0-9]\+\)\t\(.*\)$/node_textfile_directory_size_bytes{directory="\2"} \1/p' && echo WORKED
node_textfile_directory_size_bytes{directory="/var/lib/prometheus"} 80169933421
WORKED
prometheus1 ~ # du -sb /srv/prometheus_missing_dir | sed -ne 's/^\([0-9]\+\)\t\(.*\)$/node_textfile_directory_size_bytes{directory="\2"} \1/p' && echo WORKED
du: cannot access '/var/lib/prometheus_missing_dir': No such file or directory
WORKED ## this worked because the 'sed' command succeeded, even though the 'du' command failed
You might be able to resolve this by wrapping the commands into braces to invoke them together into a sub-shell? But, In cases like this, I think it would be better to recommend using a small 'wrapper' shell script for cron to execute, rather then trying to squeeze all the logic into one cronjob line?
If that sounds reasonable, I could work on a PR to update this playbook to correct this issue.
Hi,
For now, Prometheus console is only available in http, on port 9090.
I would like to use your Prometheus instance as a backend for the demonstrations of 2 JS library I'm working on:
Github pages are hosted with HTTPS URLs. Browser are not allowed to send requests to insecure HTTP endpoint.
Are you willing to add TLS to this nginx proxy ? Do you have a robustperception.io wildcard certificate ? Do you prefer LetsEncrypt ?
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.