{"id":19308684,"url":"https://github.com/mtulio/azion-exporter","last_synced_at":"2026-05-12T12:33:25.370Z","repository":{"id":64305277,"uuid":"165422132","full_name":"mtulio/azion-exporter","owner":"mtulio","description":"Azion Prometheus exporter metrics","archived":false,"fork":false,"pushed_at":"2023-02-15T01:51:25.000Z","size":47,"stargazers_count":3,"open_issues_count":1,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-24T03:17:42.637Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","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/mtulio.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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":"2019-01-12T18:32:34.000Z","updated_at":"2019-09-24T17:31:17.000Z","dependencies_parsed_at":"2024-06-20T09:30:33.254Z","dependency_job_id":"d1f7450c-d1db-4a32-9d1c-d2a7c3a06e5b","html_url":"https://github.com/mtulio/azion-exporter","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/mtulio/azion-exporter","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mtulio%2Fazion-exporter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mtulio%2Fazion-exporter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mtulio%2Fazion-exporter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mtulio%2Fazion-exporter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mtulio","download_url":"https://codeload.github.com/mtulio/azion-exporter/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mtulio%2Fazion-exporter/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32939459,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-12T09:19:52.626Z","status":"ssl_error","status_checked_at":"2026-05-12T09:17:33.438Z","response_time":102,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6: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-10T00:16:02.363Z","updated_at":"2026-05-12T12:33:25.352Z","avatar_url":"https://github.com/mtulio.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# azion-exporter\n\nAzion metrics exporter for Prometheus.\n\nThe [Azion](https://www.azion.com.br) Exporter [consumes data from Azion Analytics API](https://www.azion.com.br/developers/api-v2/) using internal GO library exposing it for [Prometheus](https://prometheus.io/).\n\n## BUILD\n\n`make build`\n\nThe binary will be created on `./bin` dir.\n\n## ARGUMENTS\n\n### REQUIRED\n\n`-azion.email` : Azion's Account Email\n\n`-azion.password` : Azion's Account Password\n\n### OPTIONAL\n\n`-metrics.filter` : List of metrics separated by comma\n\n* Supported metrics are:\n\n    \"cd_requests_saved\"\n    \"cd_requests_missed\"\n    \"cd_bandwidth_saved\"\n    \"cd_bandwidth_missed\"\n    \"cd_data_transferred_saved\"\n    \"cd_data_transferred_missed\"\n    \"cd_status_code_2xx\"\n    \"cd_status_code_200\"\n    \"cd_status_code_204\"\n    \"cd_status_code_206\"\n    \"cd_status_code_3xx\"\n    \"cd_status_code_301\"\n    \"cd_status_code_302\"\n    \"cd_status_code_304\"\n    \"cd_status_code_4xx\"\n    \"cd_status_code_400\"\n    \"cd_status_code_403\"\n    \"cd_status_code_404\"\n    \"cd_status_code_5xx\"\n    \"cd_status_code_500\"\n    \"cd_status_code_503\"\n    \"cd_status_code_503\"\n\n## USAGE\n\nShow Azion metrics from Analytics:\n\n```bash\n./bin/azion-exporter -azion.email=my@email.com -azion.password=myPass\n```\n\n\u003e Sample output for `$ curl localhost:9801/metrics`:\n\n```log\n# HELP azion_cd_data_transferred_mb Azion Analytics Content Delivery Data Transferred in MB\n# TYPE azion_cd_data_transferred_mb gauge\nazion_cd_data_transferred_mb{type=\"missed\"} 944.02355\nazion_cd_data_transferred_mb{type=\"saved\"} 1958.173775\n# HELP azion_cd_requests_count Azion Analytics Content Delivery Requests Count\n# TYPE azion_cd_requests_count gauge\nazion_cd_requests_count{type=\"missed\"} 21497.0\nazion_cd_requests_count{type=\"saved\"} 66719.0\n# HELP azion_cd_status_code_total Azion Analytics Content Delivery Status Code 5xx Total\n# TYPE azion_cd_status_code_total gauge\nazion_cd_status_code_total{code=\"200\"} 75114.0\nazion_cd_status_code_total{code=\"204\"} 0.0\nazion_cd_status_code_total{code=\"206\"} 85.0\nazion_cd_status_code_total{code=\"2xx\"} 8.0\nazion_cd_status_code_total{code=\"301\"} 1475.0\nazion_cd_status_code_total{code=\"302\"} 4.0\nazion_cd_status_code_total{code=\"304\"} 9426.0\nazion_cd_status_code_total{code=\"3xx\"} 1.0\nazion_cd_status_code_total{code=\"400\"} 27.0\nazion_cd_status_code_total{code=\"403\"} 145.0\nazion_cd_status_code_total{code=\"404\"} 1881.0\nazion_cd_status_code_total{code=\"4xx\"} 23.0\nazion_cd_status_code_total{code=\"500\"} 0.0\nazion_cd_status_code_total{code=\"503\"} 1.0\nazion_cd_status_code_total{code=\"5xx\"} 20.0\n# HELP azion_scrape_collector_duration_seconds azion_exporter: Duration of a collector scrape.\n# TYPE azion_scrape_collector_duration_seconds gauge\nazion_scrape_collector_duration_seconds{collector=\"analytics\"} 6.8305e-05\n# HELP azion_scrape_collector_success azion_exporter: Whether a collector succeeded.\n# TYPE azion_scrape_collector_success gauge\nazion_scrape_collector_success{collector=\"analytics\"} 1.0\n\n```\n\n## USAGE IN DOCKER\n\nShow Azion metrics running in docker\n\n```bash\ndocker run -p 9801:9801 -id mtulio/azion-exporter:latest \\\n    -azion.email=my@email.com -azion.password=myPass\n```\n\n* Docker Compose definition\n\n```YAML\n# Azion exporter - https://github.com/mtulio/azion-exporter\n  azion:\n    image: mtulio/azion-exporter:v0.1.1\n    command:\n        - -azion.email=my@email.com\n        - -azion.password=myPass\n    ports:\n      - 9801:9801\n    networks:\n      - net\n    deploy:\n      resources:\n        limits:\n          cpus: \"0.2\"\n          memory: 256M\n    healthcheck:\n      test: [\"CMD\", \"curl\", \"-f\", \"http://localhost:9801/\"]\n      interval: 5s\n      timeout: 2s\n      retries: 3\n```\n\n## CONTRIBUTOR\n\nYou are welcome. =)\n\nSome issues that we need you help:\n\n* Writing tests\n* Improving the Documentation\n* Split the API Library to an external repo\n* Improve CLI options to enable metrics dynamically\n* Open an issue\n\u003e [...]\n\nContribution guidelines:\n\n* See [License](./LICENSE)\n* Fork me\n* Open a PR with enhancements, bugfixes, etc\n* Request review from collaborators\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmtulio%2Fazion-exporter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmtulio%2Fazion-exporter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmtulio%2Fazion-exporter/lists"}