{"id":20875557,"url":"https://github.com/iamseth/azure_sql_exporter","last_synced_at":"2025-05-12T15:31:31.157Z","repository":{"id":47062737,"uuid":"56156723","full_name":"iamseth/azure_sql_exporter","owner":"iamseth","description":"Prometheus exporter for Azure SQL metrics.","archived":false,"fork":false,"pushed_at":"2021-09-15T07:18:40.000Z","size":703,"stargazers_count":7,"open_issues_count":4,"forks_count":9,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-01T07:25:46.142Z","etag":null,"topics":["azure","azure-sql-metrics","database","monitoring","prometheus","prometheus-exporter"],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/iamseth.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}},"created_at":"2016-04-13T14:01:01.000Z","updated_at":"2024-04-10T16:26:07.000Z","dependencies_parsed_at":"2022-09-26T21:40:53.662Z","dependency_job_id":null,"html_url":"https://github.com/iamseth/azure_sql_exporter","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iamseth%2Fazure_sql_exporter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iamseth%2Fazure_sql_exporter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iamseth%2Fazure_sql_exporter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iamseth%2Fazure_sql_exporter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/iamseth","download_url":"https://codeload.github.com/iamseth/azure_sql_exporter/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253765879,"owners_count":21960810,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["azure","azure-sql-metrics","database","monitoring","prometheus","prometheus-exporter"],"created_at":"2024-11-18T06:46:53.623Z","updated_at":"2025-05-12T15:31:29.586Z","avatar_url":"https://github.com/iamseth.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Azure SQL Exporter\n\n[![Build Status](https://travis-ci.org/iamseth/azure_sql_exporter.svg)](https://travis-ci.org/iamseth/azure_sql_exporter)\n[![GoDoc](https://godoc.org/github.com/iamseth/azure_sql_exporter?status.svg)](http://godoc.org/github.com/iamseth/azure_sql_exporter)\n[![Report card](https://goreportcard.com/badge/github.com/iamseth/azure_sql_exporter)](https://goreportcard.com/badge/github.com/iamseth/azure_sql_exporter)\n\n[Prometheus](https://prometheus.io/) exporter for Azure SQL metrics. See [this post](https://azure.microsoft.com/en-us/blog/azure-sql-database-introduces-new-near-real-time-performance-metrics/) for details.\n\nMetrics are collected from each database using SQL so this could easily be modified or extended to support SQL Server though it may have better metrics exporting natively than through SQL.\n\nDatabases are only queries when fetching /metrics from the exporter so that you may control the interval from your scrape_config section in Prometheus.\n\n## Install\n\n```bash\ngo get -u github.com/iamseth/azure_sql_exporter\n```\n\n## Usage\n```bash\nUsage of azure_sql_exporter:\n  -config.file string\n    \tSpecify the config file with the database credentials. (default \"./config.yaml\")\n  -log.level value\n    \tOnly log messages with the given severity or above. Valid levels: [debug, info, warn, error, fatal, panic]. (default info)\n  -web.listen-address string\n    \tAddress to listen on for web interface and telemetry. (default \":9139\")\n  -web.telemetry-path string\n    \tPath under which to expose metrics. (default \"/metrics\")\n```\n\n## Configuration\n\nThis exporter requires a configuration file. By default, it will look for the config.yaml file in the CWD and can be specified with the -config.file parameter.\n\nThe file is in YAML format and contains the information for connecting to the databases you want to export. This file will contain sensitive information so make sure your configuration management locks down access to this file (chmod [46]00) and it is encouraged to create an SQL user with the least amount of privilege.\n\n```yaml\ndatabases:\n  - name: Sales\n    user: prometheus\n    port: 1433\n    password: str0ngP@sswordG0esHere\n    server: salesdb.database.windows.net\n\n  - name: Inventory\n    user: prometheus\n    port: 1433\n    password: str0ngP@sswordG0esHere\n    server: inventorydb.database.windows.net\n```\n\n\n## Binary releases\n\nPre-compiled versions may be found in the [release section](https://github.com/iamseth/azure_sql_exporter/releases).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fiamseth%2Fazure_sql_exporter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fiamseth%2Fazure_sql_exporter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fiamseth%2Fazure_sql_exporter/lists"}