Skip to content

Commit

Permalink
Merge pull request #1 from kaizendorks/v2
Browse files Browse the repository at this point in the history
Add Multi Org capabilities.
  • Loading branch information
iorubs authored Feb 18, 2021
2 parents c1ec88c + 4f332f2 commit d3f89a7
Show file tree
Hide file tree
Showing 12 changed files with 436 additions and 56 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@


## Sample Dashboard
| ![Sample Dashboard](workspace-dasbhoard.png?raw=true "Sample Dashboard") |
| ![Sample Dashboard](sample-dasbhoard.png?raw=true "Sample Dashboard") |
|:--:|
| *Source code:* `grafana/dashboards/general.json` |

Expand All @@ -31,7 +31,7 @@
### Full list of Flags

-h, --help Show context-sensitive help.
-o, --organization=STRING Name of the Organization to scrape from ($TF_ORGANIZATION).
-o, --organizations=ORG1,ORG2,... List of the Organization names to scrape from ($TF_ORGANIZATIONS).
-t, --api-token=STRING User token for autheticating with the API ($TF_API_TOKEN).
--api-token-file=/path/to/file File containing user token for autheticating with the API.
--api-address=https://app.terraform.io/ Terraform API address to scrape metrics from.
Expand All @@ -45,7 +45,7 @@
1. Create a `.env` file with your token:

TF_API_TOKEN=<Your.atlasv1.Token>
TF_ORGANIZATION=<YourOrg>
TF_ORGANIZATIONS=<YourOrg1,...>
TF_API_ADDRESS=<YourApiAddress - Optional: Only required for Terraform enterprise.>
1. Run the Exporter, in one of two modes:
1. Standalone exporter: `docker-compose run --rm --service-ports --entrypoint sh exporter`
Expand Down
4 changes: 2 additions & 2 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@ services:
command:
# - --api-insecure-skip-verify
# - --api-address ${TF_API_ADDRESS}
# - -o ${TF_ORGANIZATION}
# - -o ${TF_ORGANIZATIONS}
- --log-level debug
environment:
- TF_API_TOKEN
- TF_ORGANIZATION
- TF_ORGANIZATIONS
ports:
- 9100:9100
volumes:
Expand Down
Loading

0 comments on commit d3f89a7

Please sign in to comment.