{"id":20779663,"url":"https://github.com/smartlogic/ansible-role-prometheus","last_synced_at":"2026-02-04T17:33:49.788Z","repository":{"id":66730685,"uuid":"116420459","full_name":"smartlogic/ansible-role-prometheus","owner":"smartlogic","description":null,"archived":false,"fork":false,"pushed_at":"2025-01-14T22:24:25.000Z","size":2957,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":4,"default_branch":"main","last_synced_at":"2026-01-19T16:46:27.650Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Jinja","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/smartlogic.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2018-01-05T19:40:43.000Z","updated_at":"2021-07-27T15:15:28.000Z","dependencies_parsed_at":"2025-07-03T01:41:40.864Z","dependency_job_id":null,"html_url":"https://github.com/smartlogic/ansible-role-prometheus","commit_stats":null,"previous_names":[],"tags_count":10,"template":false,"template_full_name":null,"purl":"pkg:github/smartlogic/ansible-role-prometheus","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/smartlogic%2Fansible-role-prometheus","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/smartlogic%2Fansible-role-prometheus/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/smartlogic%2Fansible-role-prometheus/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/smartlogic%2Fansible-role-prometheus/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/smartlogic","download_url":"https://codeload.github.com/smartlogic/ansible-role-prometheus/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/smartlogic%2Fansible-role-prometheus/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29091920,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-04T03:31:03.593Z","status":"ssl_error","status_checked_at":"2026-02-04T03:29:50.742Z","response_time":62,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-17T13:29:08.312Z","updated_at":"2026-02-04T17:33:49.772Z","avatar_url":"https://github.com/smartlogic.png","language":"Jinja","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Prometheus\n\nSet up common prometheus configurations\n\n## Install to requirements.yml\n\n```\n- src: git+git@github.com:smartlogic/ansible-role-prometheus\n  name: prometheus\n  version: 0.6.1\n```\n\n## Requirements\n\n### For prometheus-postgresql-adapter\n\n* PostgreSQL 10\n* A PostgreSQL user that has full permissions on the database prometheus will be using\n* This assumes a local connection\n\nIf enabled, this will set up two PostgreSQL extensions: [pg_prometheus][pg_prometheus] and [timescaledb][timescaledb]. [prometheus-postgresql-adapter][prometheus-postgresql-adapter] will also be set up as a service.\n\n## Role Variables\n\n- `prometheus_version` - Which version of prometheus to download\n- `prometheus_checksum` - The checksum for the version of prometheus\n- `prometheus_extra_flags` - Variable to place on the command line, after the config file load\n- `alertmanager_version` - Which version of alertmanager to download\n- `alertmanager_checksum` - The checksum for the version of alertmanager\n- `alertmanager_extra_flags` - Variable to place on the command line, after the config file load\n- `grafana_ini_file` - The file to use for `grafana.ini`\n  - Default: `grafana.ini`\n- `grafana_state` - The state of the apt package for grafana (present|latest)\n  - Default: `present`\n- `prometheus_config_file` - The file to use for `prometheus.yml`\n  - Default: `prometheus.yml.j2`\n- `prometheus_alert_file` - The file to use for `alertmanager.yml`\n  - Default: `alertmanager.yml`\n- `alertmanager_enabled` - boolean - True for enabling the alertmanager, via systemctl\n  - Default: `true`\n- `prometheus` - Configure scrape files, alert rules, and alert templates\n- `prometheus_postgresql_archive` - boolean - If true the postgresql adapter will be installed\n  - Default: `false`\n- `prometheus_postgresql_adapter_host` - The host that the adapter will be running on, how Prometheus will find it\n  - Default: `localhost`\n- `prometheus_postgresql_database` - Database that the adapter will use\n  - Default: `metrics`\n- `prometheus_postgresql_username` - User that the adapter will connect as\n  - Default: `prometheus`\n- `prometheus_postgresql_password` - Password that the adapter will connect with\n  - Default: `prometheus`\n\n## Dependencies\n\nNone\n\n## Example Configuration\n\n```yaml\ngrafana_ini_file: \"{{ playbook_dir }}/files/grafana.ini\"\nprometheus_config_file: \"{{ playbook_dir }}/files/prometheus.yml\"\nprometheus_alert_file: \"{{ playbook_dir }}/files/alertmanager.yml\"\n\nprometheus_postgresql_archive: true\nprometheus_postgresql_database: metrics\nprometheus_postgresql_username: prometheus\n\nprometheus:\n  jobs:\n    - \"{{ playbook_dir }}/file_config/project.json\"\n  alert:\n    rules:\n      - \"{{ playbook_dir }}/alert_rules/rules.yml\"\n    templates:\n      - \"{{ playbook_dir }}/alert_templates/templte.tmpl\"\n```\n\n## Example Playbook\n\nFull setup:\n\n```yaml\n- hosts: servers\n  roles:\n    - { role: prometheus, action: \"full\" }\n```\n\n## License\n\nMIT\n\n## Author Information\n\nSmartLogic. https://smartlogic.io\n\n[prometheus-postgresql-adapter]: https://github.com/timescale/prometheus-postgresql-adapter\n[pg_prometheus]: https://github.com/timescale/pg_prometheus\n[timescaledb]: https://github.com/timescale/timescaledb\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsmartlogic%2Fansible-role-prometheus","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsmartlogic%2Fansible-role-prometheus","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsmartlogic%2Fansible-role-prometheus/lists"}