{"id":21392184,"url":"https://github.com/sysdiglabs/prometheus-windows-ansible","last_synced_at":"2026-02-06T05:32:26.262Z","repository":{"id":98014514,"uuid":"557524345","full_name":"sysdiglabs/prometheus-windows-ansible","owner":"sysdiglabs","description":"Ansible role for installing Prometheus on Windows for use with Sysdig Monitor","archived":false,"fork":false,"pushed_at":"2023-07-14T02:33:14.000Z","size":26,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":7,"default_branch":"main","last_synced_at":"2025-12-24T18:03:42.692Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Jinja","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sysdiglabs.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","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}},"created_at":"2022-10-25T20:59:18.000Z","updated_at":"2023-04-18T23:43:51.000Z","dependencies_parsed_at":null,"dependency_job_id":"9502df28-ecb1-44e7-b5e3-6811a7b6f6dd","html_url":"https://github.com/sysdiglabs/prometheus-windows-ansible","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/sysdiglabs/prometheus-windows-ansible","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sysdiglabs%2Fprometheus-windows-ansible","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sysdiglabs%2Fprometheus-windows-ansible/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sysdiglabs%2Fprometheus-windows-ansible/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sysdiglabs%2Fprometheus-windows-ansible/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sysdiglabs","download_url":"https://codeload.github.com/sysdiglabs/prometheus-windows-ansible/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sysdiglabs%2Fprometheus-windows-ansible/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29152426,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-06T02:39:25.012Z","status":"ssl_error","status_checked_at":"2026-02-06T02:37:22.784Z","response_time":59,"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-22T13:39:32.112Z","updated_at":"2026-02-06T05:32:26.243Z","avatar_url":"https://github.com/sysdiglabs.png","language":"Jinja","funding_links":[],"categories":[],"sub_categories":[],"readme":"prometheus_windows\n=========\n\nA role to install the Prometheus [agent](https://prometheus.io/blog/2021/11/16/agent/) and windows_exporter on a Windows system\n\nRequirements\n------------\n\nAs with all Windows roles, the `pywinrm` Python package is required on the machine executing the playbook.\n\nRole Variables\n--------------\n\nIn most cases, the only two required variables for this role are the [remote write URL](https://docs.sysdig.com/en/docs/installation/prometheus-remote-write/#endpoints-and-regions) for your Sysdig backend and a valid Sysdig Monitor API token.\n```yaml\nprom_remote_write_url: https://us2.app.sysdig.com/prometheus/remote/write\nprom_remote_write_token: 00000000-1111-2222-3333-444444444444\n```\n\nThe log level and scrape interval for the Prometheus agent can be customized:\n```yaml\nprom_scrape_interval: 10s\nprom_server_log_level: warn\n```\n\nThe Windows exporters is scraped by default, but additional scrape targets can be configured using the [Prometheus scrape config](https://prometheus.io/docs/prometheus/latest/configuration/configuration/#scrape_config) format:\n```yaml\nprom_extra_scrape_configs:\n- job_name: my_exporter\n  static_configs:\n    - targets: [\"localhost:9100\"]\n```\n\nAdditional labels can be added to each metric:\n```yaml\nprom_global_labels:\n  env: lab\n  region: us-east-1\n```\n\nArtifacts are downloaded from the internet. Files can be internally mirrored if needed, or updated to new versions by changing these vars:\n```yaml\nprom_windows_exporter_installer: https://github.com/prometheus-community/windows_exporter/releases/download/v0.20.0/windows_exporter-0.20.0-amd64.msi\n\nprom_server_package: https://github.com/prometheus/prometheus/releases/download/v2.39.1/prometheus-2.39.1.windows-amd64.zip\nprom_server_package_checksum: 7e2524bb498e29d607be949d070a95e6da283973f363ad87c40a8de29c219220\nprom_server_version: \"2.39.1\"\nprom_server_arch: amd64\n\nprom_nssm_package: https://nssm.cc/ci/nssm-2.24-101-g897c7ad.zip\nprom_nssm_package_checksum: 99f5045fffbffb745d67fe3a065a953c4a3d9c253b868892d9b685b0ee7d07b8\nprom_nssm_version: 2.24-101-g897c7ad\nprom_nssm_arch: win64\n```\n\nThis role also allows customization of the program and data directories used by Prometheus: (the temp directory is only used during installation to download artifacts)\n```yaml\nprom_temp_dir: \"%TEMP%\"\nprom_app_dir: C:\\Program Files\\prometheus\nprom_data_dir: \"%ProgramData%\\\\prometheus\"\nprom_config_file: \"{{ prom_data_dir }}\\\\prometheus.yml\"\n```\n\nExample Playbook\n----------------\n\nBelow is an example playbook using the bare minimal remote write credentials and some additional labels.\n\n```yaml\n- name: install and configure Prometheus for Sysdig Monitor\n  hosts: win\n  vars:\n    prom_remote_write_url: https://us2.app.sysdig.com/prometheus/remote/write\n    prom_remote_write_token: 00000000-1111-2222-3333-444444444444\n    prom_global_labels:\n      env: lab\n      region: us-east-1\n  roles:\n    - prometheus_windows\n```\n\nLicense\n-------\n\nApache 2.0\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsysdiglabs%2Fprometheus-windows-ansible","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsysdiglabs%2Fprometheus-windows-ansible","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsysdiglabs%2Fprometheus-windows-ansible/lists"}