迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称:InfluxDB开源软件地址:https://gitee.com/mirrors/InfluxDB_old1开源软件介绍:InfluxDB InfluxDB is an open source time series platform. This includes APIs for storing and querying data, processing it in the background for ETL or monitoring and alerting purposes, user dashboards, and visualizing and exploring the data and more. The master branch on this repo now represents the latest InfluxDB, which now includes functionality for Kapacitor (background processing) and Chronograf (the UI) all in a single binary. The list of InfluxDB Client Libraries that are compatible with the latest version can be found in our documentation. If you are looking for the 1.x line of releases, there are branches for each minor version as well as a InstallWe have nightly and versioned Docker images, Debian packages, RPM packages, and tarballs of InfluxDB available at the InfluxData downloads page. We also provide the If you are interested in building from source, see the building from source guide for contributors. Get StartedFor a complete getting started guide, please see our full online documentation site. To write and query data or use the API in any way, you'll need to first create a user, credentials, organization and bucket.Everything in InfluxDB is organized under a concept of an organization. The API is designed to be multi-tenant.Buckets represent where you store time series data.They're synonymous with what was previously in InfluxDB 1.x a database and retention policy. The simplest way to get set up is to point your browser to http://localhost:8086 and go through the prompts. You can also get set up from the CLI using the command $ bin/$(uname -s | tr '[:upper:]' '[:lower:]')/influx setupWelcome to InfluxDB 2.0!Please type your primary username: martyPlease type your password:Please type your password again:Please type your primary organization name.: InfluxDataPlease type your primary bucket name.: telegrafPlease type your retention period in hours.Or press ENTER for infinite.: 72You have entered: Username: marty Organization: InfluxData Bucket: telegraf Retention Period: 72 hrsConfirm? (y/n): yUserID Username Organization Bucket033a3f2c5ccaa000 marty InfluxData TelegrafYour token has been stored in /Users/marty/.influxdbv2/credentials You can run this command non-interactively using the $ bin/$(uname -s | tr '[:upper:]' '[:lower:]')/influx setup \--username marty \--password F1uxKapacit0r85 \--org InfluxData \--bucket telegraf \--retention 168 \--token where-were-going-we-dont-need-roads \--force Once setup is complete, a configuration profile is created to allow you to interact with your local InfluxDB without passing in credentials each time. You can list and manage those profiles using the $ bin/$(uname -s | tr '[:upper:]' '[:lower:]')/influx configActive Name URL Org* default http://localhost:8086 InfluxData Write DataWrite to measurement $ bin/$(uname -s | tr '[:upper:]' '[:lower:]')/influx write --bucket telegraf --precision s "m v=2 $(date +%s)" Since you have a default profile set up, you can omit the Organization and Token from the command. Write the same point using curl --header "Authorization: Token $(bin/$(uname -s | tr '[:upper:]' '[:lower:]')/influx auth list --json | jq -r '.[0].token')" \--data-raw "m v=2 $(date +%s)" \"http://localhost:8086/api/v2/write?org=InfluxData&bucket=telegraf&precision=s" Read that back with a simple Flux query: $ bin/$(uname -s | tr '[:upper:]' '[:lower:]')/influx query 'from(bucket:"telegraf") |> range(start:-1h)'Result: _resultTable: keys: [_start, _stop, _field, _measurement] _start:time _stop:time _field:string _measurement:string _time:time _value:float------------------------------ ------------------------------ ---------------------- ---------------------- ------------------------------ ----------------------------2019-12-30T22:19:39.043918000Z 2019-12-30T23:19:39.043918000Z v m 2019-12-30T23:17:02.000000000Z 2 Use the Script with FluxFlux (previously named IFQL) is an open source functional data scripting language designed for querying, analyzing, and acting on data. Flux supports multiple data source types, including:
The source for Flux is available on GitHub.To learn more about Flux, see the latest InfluxData Flux documentation and CTO Paul Dix's presentation. Contribute to the ProjectInfluxDB is an MIT licensed open source project and we love our community. The fastest way to get something fixed is to open a PR. Check out our contributing guide if you're interested in helping out. Also, join us on our Community Slack Workspace if you have questions or comments for our engineering teams. CI and Static AnalysisCIAll pull requests will run through CI, which is currently hosted by Circle.Community contributors should be able to see the outcome of this process by looking at the checks on their PR.Please fix any issues to ensure a prompt review from members of the team. The InfluxDB project is used internally in a number of proprietary InfluxData products, and as such, PRs and changes need to be tested internally.This can take some time, and is not really visible to community contributors. Static AnalysisThis project uses the following static analysis tools.Failure during the running of any of these tools results in a failed build.Generally, code must be adjusted to satisfy these tools, though there are exceptions.
staticcheckIf your PR fails tsdb/tsm1/encoding.gen.go:1445:24: func BooleanValues.assertOrdered is unused (U1000)tsdb/tsm1/encoding.go:172:7: receiver name should not be an underscore, omit the name if it is unused (ST1006) Next, go and take a look here for some clarification on the error code that you have received, e.g., Generated CodeSometimes generated code will contain unused code or occasionally that will fail a different check.
End-to-End TestsCI also runs end-to-end tests. These test the integration between the ![]() |
请发表评论